Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » NPE when capturing Launch context
NPE when capturing Launch context [message #1769875] Fri, 04 August 2017 12:00 Go to next message
Ralf Sieger is currently offline Ralf SiegerFriend
Messages: 5
Registered: August 2017
Junior Member
I'm using RCPTT 2.2 (windows 64 bit).
The AUT is an java 7 32 bit RCP application
When capturing the launch configuration I get an NPE.
See attached logfile
  • Attachment: .log
    (Size: 125.74KB, Downloaded 29 times)
Re: NPE when capturing Launch context [message #1769996 is a reply to message #1769875] Mon, 07 August 2017 12:09 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Ralf,

Please, provide AUT's workspace log. Seems like not all RCPTT bundles have been resolved.
Re: NPE when capturing Launch context [message #1770332 is a reply to message #1769996] Thu, 10 August 2017 06:45 Go to previous messageGo to next message
Ralf Sieger is currently offline Ralf SiegerFriend
Messages: 5
Registered: August 2017
Junior Member
Thanks for the reply.
I've attached the .log of the AUT.
  • Attachment: .log
    (Size: 19.91KB, Downloaded 26 times)
Re: NPE when capturing Launch context [message #1770559 is a reply to message #1770332] Mon, 14 August 2017 12:30 Go to previous messageGo to next message
Ralf Sieger is currently offline Ralf SiegerFriend
Messages: 5
Registered: August 2017
Junior Member
Hi Victoria,

I've looked at the AUT log file and there, too is a NPE:
java.lang.NullPointerException
at org.eclipse.rcptt.core.ContextTypeManager.createContext(ContextTypeManager.java:109)
at org.eclipse.rcptt.core.internal.ecl.core.commands.CreateContextService.service(CreateContextService.java:29)
at org.eclipse.rcptt.ecl.internal.core.AbstractSession.internalDoExecute(AbstractSession.java:83)
at org.eclipse.rcptt.ecl.internal.core.Session$1.run(Session.java:48)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Our AUT is based on eclipse 3.7 might this be a problem?

[Updated on: Mon, 14 August 2017 12:30]

Report message to a moderator

Re: NPE when capturing Launch context [message #1770707 is a reply to message #1770559] Wed, 16 August 2017 11:27 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Ralf,
No, it is not a problem, RCPTT supports all platforms starting with 3.6.

I haven't found any info about not resolved bundles in the AUT log. I expect to see lines like "org.osgi.framework.BundleException: Could not resolve module..."
Could you attach a log for freshly-added AUT? You have to add AUT into RCPTT again, start it and save the log file.
Re: NPE when capturing Launch context [message #1770714 is a reply to message #1770707] Wed, 16 August 2017 12:15 Go to previous messageGo to next message
Ralf Sieger is currently offline Ralf SiegerFriend
Messages: 5
Registered: August 2017
Junior Member
Hi Viktoria,

yes, this time there are some missing bundle entries in the AUT log.

regards,

Ralf
  • Attachment: aut.log
    (Size: 30.76KB, Downloaded 26 times)
  • Attachment: rcptt.log
    (Size: 143.40KB, Downloaded 25 times)
Re: NPE when capturing Launch context [message #1771668 is a reply to message #1770714] Tue, 29 August 2017 11:49 Go to previous messageGo to next message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Ralf,

Seems like your AUT doesn't contain 'org.eclipse.debug.ui' plugin required for launch context:
!SUBENTRY 1 org.eclipse.osgi 2 0 2017-08-16 14:09:21.104
!MESSAGE Bundle org.eclipse.rcptt.ctx.debug.impl_2.2.0.201606280551 [373] was not resolved.
!SUBENTRY 2 org.eclipse.rcptt.ctx.debug.impl 2 0 2017-08-16 14:09:21.104
!MESSAGE Missing imported package org.eclipse.debug.ui_0.0.0.

Could you check if the plugins are added in your AUT and add them if it is needed?
Re: NPE when capturing Launch context [message #1772063 is a reply to message #1771668] Tue, 05 September 2017 07:10 Go to previous message
Ralf Sieger is currently offline Ralf SiegerFriend
Messages: 5
Registered: August 2017
Junior Member
Hi Victoria,

after adding
- org.eclipse.debug.core
- org.eclipse.debug.ui
- org.eclipse.ui.console
- org.eclipse.ui.editors

The NPE was gone.

Thanks for your support.
Previous Topic:RCPTT Test Runner not finishing its job
Next Topic:"get-item -path" reqular expressions not working
Goto Forum:
  


Current Time: Thu Jun 21 20:33:43 GMT 2018

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

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

Back to the top