ranjith520 / remote-linux-monitor

Automatically exported from code.google.com/p/remote-linux-monitor
0 stars 0 forks source link

illegal variable name #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run java -jar remote-linux-monitor.jar
2. Provide username@machine-name, password
3. Hit OK

What is the expected output? What do you see instead?

It should connect to target and show the values and graphs. I see an error 
message as shown in the picture. 

What version of the product are you using? On what operating system?

remote-linux-monitor-v1.0.03.jar

Please provide any additional information below.

Original issue reported on code.google.com by deevis...@gmail.com on 24 Jul 2014 at 11:33

Attachments:

GoogleCodeExporter commented 9 years ago
Which OS's are you running on the client and the server?

Original comment by dbothwell.home@gmail.com on 28 Jul 2014 at 10:37

GoogleCodeExporter commented 9 years ago
Hi

I was running application on windows 7 machine and the target was
Linux with Ubuntu 12.04 LTS.

I was able to access Linux machine through putty in ssh mode from
windows machine.

Original comment by deevis...@gmail.com on 28 Jul 2014 at 11:25

GoogleCodeExporter commented 9 years ago
I just tested the remote-linux-monitor-v1.0.03.jar on a Windows 7 box against a 
Ubuntu 12.10 Linux server. I was not able to reproduce the problem.  Are you 
sure you downloaded the version 1.0.03 jar? I noticed in "What steps will 
reproduce the problem?" you are using an older version of the jar.

Original comment by dbothwell.home@gmail.com on 29 Jul 2014 at 4:24

GoogleCodeExporter commented 9 years ago
That was just a typo, I just tried again, used the below:
c:\> java -jar c:\temp\remote-linux-monitor-v1.03.jar
I even tried with "remote-linux-monitor-v1.04_test.jar" that was part of one of 
the issues. 

Here is the console output if it can help:

>>
U:\>java -jar c:\temp\remote-linux-monitor-v1.03.jar
java.lang.Exception: [Illegal variable name.]
        at db.remoteLinuxMonitor.SSHSession.getStandardOutput(SSHSession.java:170)
        at db.remoteLinuxMonitor.SystemInfo.factory(SystemInfo.java:55)
        at db.remoteLinuxMonitor.RemoteMain.start(RemoteMain.java:649)
        at db.remoteLinuxMonitor.RemoteMain.login(RemoteMain.java:558)
        at db.remoteLinuxMonitor.RemoteMain.access$7(RemoteMain.java:545)
        at db.remoteLinuxMonitor.RemoteMain$21.actionPerformed(RemoteMain.java:498)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:25
2)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at java.awt.Component.processMouseEvent(Component.java:6505)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
        at java.awt.Component.processEvent(Component.java:6270)
        at java.awt.Container.processEvent(Container.java:2229)
        at java.awt.Component.dispatchEventImpl(Component.java:4861)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
        at java.awt.Container.dispatchEventImpl(Container.java:2273)
        at java.awt.Window.dispatchEventImpl(Window.java:2719)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:688)
        at java.awt.EventQueue$3.run(EventQueue.java:686)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:702)
        at java.awt.EventQueue$4.run(EventQueue.java:700)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.Exception: [Illegal variable name.]
        at db.remoteLinuxMonitor.SSHSession.getStandardOutput(SSHSession.java:170)
        at db.remoteLinuxMonitor.SystemInfo.factory(SystemInfo.java:55)
        at db.remoteLinuxMonitor.RemoteMain.start(RemoteMain.java:649)
        at db.remoteLinuxMonitor.RemoteMain.login(RemoteMain.java:558)
        at db.remoteLinuxMonitor.RemoteMain.access$7(RemoteMain.java:545)
        at db.remoteLinuxMonitor.RemoteMain$21.actionPerformed(RemoteMain.java:498)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:25
2)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at java.awt.Component.processMouseEvent(Component.java:6505)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
        at java.awt.Component.processEvent(Component.java:6270)
        at java.awt.Container.processEvent(Container.java:2229)
        at java.awt.Component.dispatchEventImpl(Component.java:4861)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
        at java.awt.Container.dispatchEventImpl(Container.java:2273)
        at java.awt.Window.dispatchEventImpl(Window.java:2719)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:688)
        at java.awt.EventQueue$3.run(EventQueue.java:686)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:702)
        at java.awt.EventQueue$4.run(EventQueue.java:700)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.Exception: [Illegal variable name.]
        at db.remoteLinuxMonitor.SSHSession.getStandardOutput(SSHSession.java:170)
        at db.remoteLinuxMonitor.SystemInfo.factory(SystemInfo.java:55)
        at db.remoteLinuxMonitor.RemoteMain.start(RemoteMain.java:649)
        at db.remoteLinuxMonitor.RemoteMain.login(RemoteMain.java:558)
        at db.remoteLinuxMonitor.RemoteMain.access$7(RemoteMain.java:545)
        at db.remoteLinuxMonitor.RemoteMain$21.actionPerformed(RemoteMain.java:498)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:25
2)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at java.awt.Component.processMouseEvent(Component.java:6505)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
        at java.awt.Component.processEvent(Component.java:6270)
        at java.awt.Container.processEvent(Container.java:2229)
        at java.awt.Component.dispatchEventImpl(Component.java:4861)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
        at java.awt.Container.dispatchEventImpl(Container.java:2273)
        at java.awt.Window.dispatchEventImpl(Window.java:2719)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:688)
        at java.awt.EventQueue$3.run(EventQueue.java:686)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:702)
        at java.awt.EventQueue$4.run(EventQueue.java:700)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

U:\>
<<

Thanks

Original comment by deevis...@gmail.com on 29 Jul 2014 at 4:55

GoogleCodeExporter commented 9 years ago
Run these commands on the Ubuntu command line and show me what the output says.

uname -srm; uname -n; df -h | grep -m 1 " /"$; grep "MemTotal" /proc/meminfo; 
grep "^processor\|^model name"  /proc/cpuinfo

Original comment by dbothwell.home@gmail.com on 29 Jul 2014 at 5:06

GoogleCodeExporter commented 9 years ago
Here is the output of what you asked for:

sxxxx@adp-2-linux:/local/mnt/workspace$ uname -srm; uname -n; df -h | grep
-m 1 " /"$; grep "MemTotal" /proc/meminfo; grep "^processor\|^model name"
 /proc/cpuinfo
Linux 3.2.0-61-generic x86_64
adp-2-linux
/dev/mapper/vg00-rootvol            9.9G  3.6G  5.8G  39% /
MemTotal:       16226648 kB
processor       : 0
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor       : 1
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor       : 2
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor       : 3
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor       : 4
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor       : 5
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor       : 6
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
processor       : 7
model name      : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
sxxxx@adp-2-linux:/local/mnt/workspace$

On Tue, Jul 29, 2014 at 10:07 AM, <remote-linux-monitor@googlecode.com>
wrote:

Original comment by deevis...@gmail.com on 29 Jul 2014 at 5:12

GoogleCodeExporter commented 9 years ago
The bad news is output is correct.  The exception you sent says that the server 
is throwing an error when one of those commands runs.  As it appears you are 
running the commands through an SSH session, you got me stumped.

Original comment by dbothwell.home@gmail.com on 29 Jul 2014 at 5:41

GoogleCodeExporter commented 9 years ago
Am I missing anything else? Looks like ssh connection seems to be OK through 
the app. 

Original comment by deevis...@gmail.com on 29 Jul 2014 at 6:51

GoogleCodeExporter commented 9 years ago
Are you using the same user id with the putty connection that your using with 
the remote-linux-monitor?

Original comment by dbothwell.home@gmail.com on 29 Jul 2014 at 7:08

GoogleCodeExporter commented 9 years ago
Is user on the Ubuntu box defaulting to a bash shell?

Original comment by dbothwell.home@gmail.com on 29 Jul 2014 at 7:15

GoogleCodeExporter commented 9 years ago
It defaults to tcsh:

adp-2-linux{52}> ps -p $$
  PID TTY          TIME CMD
 1408 pts/4    00:00:00 tcsh
adp-2-linux{53}>

On Tue, Jul 29, 2014 at 12:15 PM, <remote-linux-monitor@googlecode.com>
wrote:

Original comment by deevis...@gmail.com on 29 Jul 2014 at 7:51

GoogleCodeExporter commented 9 years ago
Try adding a user which defaults to bash and connect to that user.

Original comment by dbothwell.home@gmail.com on 29 Jul 2014 at 8:19

GoogleCodeExporter commented 9 years ago
Added the following line to .cshrc file
exec bash

which makes it move to bash shell from putty SSH terminal. But with remote
linux monitor, it just hangs there.

On Tue, Jul 29, 2014 at 1:20 PM, <remote-linux-monitor@googlecode.com>
wrote:

Original comment by deevis...@gmail.com on 29 Jul 2014 at 8:46