Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » tptp 4.3.1 throws NullPointerException
tptp 4.3.1 throws NullPointerException [message #98906] Mon, 21 May 2007 16:55 Go to next message
Eclipse UserFriend
Originally posted by: shlomisign.gmail.com

Hello,
Iam new to tptp, and I tried upgrading to version 4.3.1 (upgrade from
4.2.0, and reinstall using the new version gave me same results).
I followed the installation manual, and managed to run the agent (did the
workaround for bugzilla 88639).
Then I installed the tptp eclipse plugin (I got the
tptp.runtime-TPTP-4.3.1.zip), and made a little program to test it.
When I start the program using Profiling, my progress bar (launching....)
stops at like 57%, and I get this message on the console that I ran
eclipse on:

Exception in thread
"org.eclipse.hyades.execution.core.task.ReusableThread@f4f222"
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:414)
at
org.eclipse.hyades.execution.core.task.ReusableThread.run(Re usableThread.java:131)
at java.lang.Thread.run(Thread.java:595)


I checked, and I have only one JRE installed (jdk1.5.0_06) and set up
within the eclipse env.

I looked in the eclipse log file, and this is the relevant log that I
found:

eclipse.buildId=M20060629-1905
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.tptp.platform.common 1 0 2007-05-20 12:20:28.733
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.hyades.internal.execution.local.control.ProcessI mpl.getConsole(ProcessImpl.java:380)
at
org.eclipse.tptp.trace.ui.internal.launcher.deleg.applicatio n.PIDelegateHelper.verifyValidJVMVersion(PIDelegateHelper.ja va:440)
at
org.eclipse.tptp.trace.ui.internal.launcher.deleg.applicatio n.PIJavaLauncherDelegate.preLaunch(PIJavaLauncherDelegate.ja va:38)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1163)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:188)
at java.lang.Thread.run(Thread.java:595)

Please, this is quite important, is there any way of making this version
work? did I miss something while I rtfm'ed? Should I stay with the older
version for now? (4.2.0)?

Best regards,
Shlomi
Re: tptp 4.3.1 throws NullPointerException [message #98921 is a reply to message #98906] Mon, 21 May 2007 22:02 Go to previous messageGo to next message
Joe Toomey is currently offline Joe ToomeyFriend
Messages: 79
Registered: July 2009
Member
Hi Shlomi,

Is it possible that you are using a very old agent controller? bugzilla
88639 was fixed over two years ago -- there is no need to apply that
workaround. The exception you are getting may indicate that the agent
controller on your machine is older than TPTP 4.0 (which was an API
breaking release from Hyades 3.3).

Please verify that you have installed the TPTP 4.3.1 Agent Controller
from the TPTP download page, and that it is the one that you are
running. Also, please verify that you don't have some old environment
variables pointing to older Agent Controller installations (like
RASERVER_HOME, for example.)

Based on the exception you posted, TPTP is trying to determine the
version of the Agent Controller that you are running. It is doing this
by trying to retrieve the version property of the
org.eclipse.hyades.execution plugin, which should be installed in the
following directory:
TPTP_AC_HOME/plugins/org.eclipse.hyades.execution_4.3.X.vXXX XXXXXXXXX.
(Where X is some part of the version number or build date.) In that
directory, there should be a folder called config containing a file
called pluginconfig.xml. That xml file should contain an entry like:

<Option name="org.eclipse.hyades.execution" type="version"
value="4.3.X.vXXXXXXXXXXXX" />

The exception you report indicates that not only could this option not
be found, but neither could the option that was previously populated by
older versions of TPTP.

Hopefully this will help you determine the problem with your
installation. Please post back with what you have found.

Thanks,
--Joe
Re: tptp 4.3.1 throws NullPointerException [message #99264 is a reply to message #98921] Sun, 27 May 2007 08:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shlomisign.gmail.com

Hello,
Thank you for your reply. I downloaded and tried to install the New
technology Agent Controller for linux 4.3.x..
I will try to re download it all again, and perform the installation again
in the next few days.

Thank you very much for your detailed reply, I will try to make it work
and post out here what actually happened.

Shlomi
Re: tptp 4.3.1 throws NullPointerException [message #99923 is a reply to message #99264] Sun, 03 June 2007 13:03 Go to previous message
Eclipse UserFriend
Originally posted by: shlomisign.gmail.com

Hey,
well, I have re downloaded, and followed the installation guide very
carefully.

I installed the new technology Agent Controller, I get the following
message:

Exception in thread "Thread-0" java.lang.NoClassDefFoundError:
org/eclipse/hyades/internal/execution/file/FileServer
ACServer started successfully.

which seemed to be solved by bug 88639 (and 89383), and apparently has
been closed for a while, which makes no sense. should I resubmit it?

performing ACServer -v returns 4.3.1.0

anyhow, the server actually runs, and I manage to profile a simple test
program.

The real problem hits when I try to run my real application, then I get
an odd error. In eclipse, a dialog pops up containing the following message:

org.eclipse.jdt.core.JavaModelException
I/O exception

java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.zip.ZipFile.<init>(ZipFile.java:234)
at
org.eclipse.jdt.internal.core.JavaModelManager.getZipFile(Ja vaModelManager.java:1751)
at
org.eclipse.jdt.internal.core.JarPackageFragmentRoot.getJar( JarPackageFragmentRoot.java:181)
at
org.eclipse.jdt.internal.core.JarPackageFragmentRoot.compute Children(JarPackageFragmentRoot.java:78)
at
org.eclipse.jdt.internal.core.PackageFragmentRoot.buildStruc ture(PackageFragmentRoot.java:170)
at
org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl e.java:229)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav aElement.java:505)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:249)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:235)
at
org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaEl ement.java:190)
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.addPackageFragmentRootFilters(WorkspaceFiltersExtrac tor.java:129)
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.addJavaElementFilter(WorkspaceFiltersExtractor.java: 107)
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.addFileFilters(WorkspaceFiltersExtractor.java:95)
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.addResourceFilters(WorkspaceFiltersExtractor.java:77 )
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.addFolderFilters(WorkspaceFiltersExtractor.java:86)
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.addResourceFilters(WorkspaceFiltersExtractor.java:79 )
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.addProjectFilters(WorkspaceFiltersExtractor.java:68)
at
org.eclipse.hyades.trace.ui.internal.util.WorkspaceFiltersEx tractor.extractFilters(WorkspaceFiltersExtractor.java:40)
at
org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProce ssLauncher.getLaunchTypeWorkspaceFilters(AbstractProcessLaun cher.java:407)
at
org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProce ssLauncher.preLaunch(AbstractProcessLauncher.java:118)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1163)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:188)
at java.lang.Thread.run(Thread.java:595)



and the eclipse log file shows:


!SESSION 2007-06-03 15:26:44.245
-----------------------------------------------
eclipse.buildId=M20060921-0945
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -data /etrog/workspaces/adi/mmi_DEV -os linux
-ws gtk -arch x86

!ENTRY org.eclipse.core.expressions 4 4 2007-06-03 15:28:08.586
!MESSAGE Unknown expression element objectClass

!ENTRY org.eclipse.hyades.trace.ui 4 0 2007-06-03 15:31:05.109
!MESSAGE An error occurred while attempting to resolve the data
collectors selected
!STACK 1
org.eclipse.core.runtime.CoreException: An error occurred while
attempting to resolve the data collectors selected
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:133)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:141)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:151)
at java.lang.Thread.run(Thread.java:595)
!SUBENTRY 1 org.eclipse.hyades.trace.ui 4 0 2007-06-03 15:31:05.109
!MESSAGE An error occurred while attempting to resolve the data
collectors selected

!ENTRY org.eclipse.jface 2 0 2007-06-03 15:31:20.237
!MESSAGE The image could not be loaded:
URLImageDescriptor(bundleentry://1315/icons/full/dlcl16/message_options.gif)
!STACK 0
org.eclipse.jface.resource.DeviceResourceException: Unable to create
resource
URLImageDescriptor(bundleentry://1315/icons/full/dlcl16/message_options.gif)
at
org.eclipse.jface.resource.ImageDescriptor.createResource(Im ageDescriptor.java:173)
at
org.eclipse.jface.resource.DeviceResourceManager.allocate(De viceResourceManager.java:56)
at
org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractResourceManager.java:87)
at
org.eclipse.jface.resource.LocalResourceManager.allocate(Loc alResourceManager.java:83)
at
org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractResourceManager.java:87)
at
org.eclipse.jface.resource.ResourceManager.createImageWithDe fault(ResourceManager.java:114)
at
org.eclipse.jface.action.ActionContributionItem.updateImages (ActionContributionItem.java:936)
at
org.eclipse.jface.action.ActionContributionItem.update(Actio nContributionItem.java:709)
at
org.eclipse.jface.action.ActionContributionItem.fill(ActionC ontributionItem.java:330)
at org.eclipse.jface.action.ToolBarManager.update(ToolBarManage r.java:317)
at
org.eclipse.tptp.trace.ui.internal.control.provider.ControlU tility.addContributedItems(ControlUtility.java:105)
at
org.eclipse.hyades.trace.internal.ui.PDProjectExplorer.selec tionChanged(PDProjectExplorer.java:650)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:1976)
at
org.eclipse.jface.viewers.StructuredViewer.setSelection(Stru cturedViewer.java:1577)
at
org.eclipse.hyades.trace.internal.ui.PDProjectViewer.select( PDProjectViewer.java:240)
at
org.eclipse.hyades.trace.internal.ui.PDProjectViewer.selectO bject(PDProjectViewer.java:222)
at
org.eclipse.hyades.trace.internal.ui.PDProjectExplorer.handl eProfileEvent(PDProjectExplorer.java:493)
at
org.eclipse.tptp.platform.common.ui.trace.internal.helpers.T raceUIManager.notifyProfileEventListener(TraceUIManager.java :163)
at
org.eclipse.hyades.trace.ui.UIPlugin.notifyProfileEventListe ner(UIPlugin.java:561)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity$3.run(LauncherUtility.java:964)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3143)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2845)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.tptp.platform.common.ui.trace 2007-06-03 15:31:22.097
!MESSAGE Processed: 27329 bytes, bytes/second: 27329, events processed:
273, events/second: 273, elapsed time: 1 seconds

So this actually tracks down to a missing gif file in the jface jar (if
I am not mistaking..),
is there a workaround? should a program terminate this way due to a
missing gif? or is this more complex than that?

Please help me to figure out what should I do now..

Thank you,
Shlomi




Shlomi wrote:
> Hello, Thank you for your reply. I downloaded and tried to install the
> New technology Agent Controller for linux 4.3.x.. I will try to re
> download it all again, and perform the installation again in the next
> few days.
>
> Thank you very much for your detailed reply, I will try to make it work
> and post out here what actually happened.
>
> Shlomi
>
Previous Topic:JVMTI agent discovery not working
Next Topic:Please help my by Agent Controller
Goto Forum:
  


Current Time: Thu Apr 18 23:56:53 GMT 2024

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

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

Back to the top