Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » java.lang.NullPointerException(Cannot fetch data collectors)
java.lang.NullPointerException [message #492642] Wed, 21 October 2009 08:48 Go to next message
Mikael Petterson is currently offline Mikael Petterson
Messages: 152
Registered: July 2009
Senior Member
I changed to using jdk 1.5 since I read that support for 1.4 seems to be removed ( that might be the reson for my problems in previous post).

I am still doing the profiling locally.

GUI: Fetching children of data collector ... 0%

It hangs there forever and log is filled with ( see below).


br,

//miakel

Exception in thread "org.eclipse.hyades.execution.core.task.ReusableThread@b3f220" java.lang.NullPointerException
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
at org.eclipse.hyades.execution.local.file.FileManagerFactory$3 .run(FileManagerFactory.java:413)
at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re usableThread.java:131)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "org.eclipse.hyades.execution.core.task.ReusableThread@337ff4" java.lang.NullPointerException
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
at org.eclipse.hyades.execution.local.file.FileManagerFactory$3 .run(FileManagerFactory.java:413)
at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re usableThread.java:131)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "org.eclipse.hyades.execution.core.task.ReusableThread@d5a66a" java.lang.NullPointerException
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
at org.eclipse.hyades.execution.local.file.FileManagerFactory$3 .run(FileManagerFactory.java:413)
at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re usableThread.java:131)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "org.eclipse.hyades.execution.core.task.ReusableThread@12ab673" java.lang.NullPointerException
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
at org.eclipse.hyades.execution.local.file.FileManagerFactory$3 .run(FileManagerFactory.java:413)
at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re usableThread.java:131)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "org.eclipse.hyades.execution.core.task.ReusableThread@10f144e" java.lang.NullPointerException
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
at org.eclipse.hyades.execution.local.file.FileManagerFactory$3 .run(FileManagerFactory.java:413)
at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re usableThread.java:131)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "org.eclipse.hyades.execution.core.task.ReusableThread@985bf9" java.lang.NullPointerException
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
at org.eclipse.hyades.execution.local.util.AgentControllerDescr iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
at org.eclipse.hyades.execution.local.file.FileManagerFactory$3 .run(FileManagerFactory.java:413)
at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re usableThread.java:131)
at java.lang.Thread.run(Thread.java:619)
Re: java.lang.NullPointerException [message #495057 is a reply to message #492642] Tue, 03 November 2009 16:27 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene Chan
Messages: 287
Registered: July 2009
Senior Member
Hi,

I could not reproduce the problem you reported here.
Did you change the jdk version of the Eclipse workbench or the Agent
Controller setting under Preferences.
Could you open a defect on TPTP bugzilla system and list the step and setup
you have to help the developer reproduce the problem and investigate?

Eugene

"Mikael Petterson" <mikaelpetterson@hotmail.com> wrote in message
news:hbmhth$69a$1@build.eclipse.org...
>I changed to using jdk 1.5 since I read that support for 1.4 seems to be
>removed ( that might be the reson for my problems in previous post).
> I am still doing the profiling locally.
>
> GUI: Fetching children of data collector ... 0%
> It hangs there forever and log is filled with ( see below).
>
>
> br,
>
> //miakel
>
> Exception in thread
> "mailto:org.eclipse.hyades.execution.core.task.ReusableThread@b3f220"
> java.lang.NullPointerException
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
> at org.eclipse.hyades.execution.local.file.FileManagerFactory$3
> .run(FileManagerFactory.java:413)
> at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re
> usableThread.java:131)
> at java.lang.Thread.run(Thread.java:619)
> Exception in thread
> "mailto:org.eclipse.hyades.execution.core.task.ReusableThread@337ff4"
> java.lang.NullPointerException
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
> at org.eclipse.hyades.execution.local.file.FileManagerFactory$3
> .run(FileManagerFactory.java:413)
> at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re
> usableThread.java:131)
> at java.lang.Thread.run(Thread.java:619)
> Exception in thread
> "mailto:org.eclipse.hyades.execution.core.task.ReusableThread@d5a66a"
> java.lang.NullPointerException
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
> at org.eclipse.hyades.execution.local.file.FileManagerFactory$3
> .run(FileManagerFactory.java:413)
> at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re
> usableThread.java:131)
> at java.lang.Thread.run(Thread.java:619)
> Exception in thread
> "mailto:org.eclipse.hyades.execution.core.task.ReusableThread@12ab673"
> java.lang.NullPointerException
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
> at org.eclipse.hyades.execution.local.file.FileManagerFactory$3
> .run(FileManagerFactory.java:413)
> at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re
> usableThread.java:131)
> at java.lang.Thread.run(Thread.java:619)
> Exception in thread
> "mailto:org.eclipse.hyades.execution.core.task.ReusableThread@10f144e"
> java.lang.NullPointerException
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
> at org.eclipse.hyades.execution.local.file.FileManagerFactory$3
> .run(FileManagerFactory.java:413)
> at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re
> usableThread.java:131)
> at java.lang.Thread.run(Thread.java:619)
> Exception in thread
> "mailto:org.eclipse.hyades.execution.core.task.ReusableThread@985bf9"
> java.lang.NullPointerException
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.versionIsAtLeast(AgentControllerDescriptor.java:67)
> at org.eclipse.hyades.execution.local.util.AgentControllerDescr
> iptor.isVersionAtLeast(AgentControllerDescriptor.java:194)
> at org.eclipse.hyades.execution.local.file.FileManagerFactory$3
> .run(FileManagerFactory.java:413)
> at org.eclipse.hyades.execution.core.task.ReusableThread.run(Re
> usableThread.java:131)
> at java.lang.Thread.run(Thread.java:619)
>
Re: java.lang.NullPointerException [message #555517 is a reply to message #492642] Thu, 26 August 2010 21:59 Go to previous messageGo to next message
Matt  is currently offline Matt
Messages: 2
Registered: August 2010
Junior Member
I installed TPTP 4.6.2 today. It worked initially without problems, and then started hanging at the Monitor window. The exceptions I saw in the logs were same as described above.

The problem turned out to be simple. Integrated Agent Controller runs on port 10002 by default. Somehow, though I shut down Eclipse, Agent Controller didn't die, it was still running, listening on 10002. Try this to see if it's running

telnet localhost 10002

Once I killed that process, I started up Eclipse, and TPTP worked again.

TPTP is great. Suggestions to TPTP guys:

1. There appear to be cases where Eclipse can exit, but the Controller lingers on. Should be fixed.

2. If there was anything like "TPTP controller is unable to establish connection on port 10002" in the logs, I would've figured this out in 5 minutes instead of half a day.

-Matt
Re: java.lang.NullPointerException [message #555520 is a reply to message #495057] Thu, 26 August 2010 22:02 Go to previous message
Matt  is currently offline Matt
Messages: 2
Registered: August 2010
Junior Member
I installed TPTP 4.6.2 today. It worked initially without problems, and then started hanging at the Monitor window. The exceptions I saw in the logs were same as described above.

The problem turned out to be simple. Integrated Agent Controller runs on port 10002 by default. Somehow, though I shut down Eclipse, Agent Controller didn't die, it was still running, listening on 10002. Try this to see if it's running

telnet localhost 10002

Once I killed that process, I started up Eclipse, and TPTP worked again.

TPTP is great. Suggestions to TPTP guys:

1. There appear to be cases where Eclipse can exit, but the Controller lingers on. Should be fixed.

2. If there was anything like "TPTP controller is unable to establish connection on port 10002" in the logs, I would've figured this out in 5 minutes instead of half a day.

-Matt
Previous Topic:TPTP 4.5 Profiling crash (Sun, Vista)
Next Topic:Java Object reference analysis views
Goto Forum:
  


Current Time: Mon Sep 22 14:22:19 GMT 2014

Powered by FUDForum. Page generated in 0.05188 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software