wjw465150 / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

NullPointerException while selecting "Jetty Webapp" section of "Run Configuration" or "Debug Configuration" dialogs #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?

I expect to see a configuration dialog for RunJettyRun.

Instead I see an error window: (log attached to this issue)

Multiple problems have occurred
java.lang.NullPointerException
An error has occurred. See error log for more details.
Update LCD
Update LCD
Update LCD
Update LCD

Details:
An error has occurred. See error log for more details.
java.lang.NullPointerException

What steps will reproduce the problem?
1. Import a project from git, and check out its submodules
2. Click "Run > Run Configurations > Jetty Webapp +NAME_OF_PROJECT"
3. Observe the error occurring

What Eclipse version are you using ?

Version: 3.7.2
Build id: M20120208-0800

What Run-Jetty-Run version are you using?

1.3.2

What OS are you using ? 32bit or 64 bit?

64 bit, Mac OS X Lion 10.7 (11A2061)

Please provide any additional information below.

Excerpt from the error log:
!ENTRY org.eclipse.jface 4 2 2012-03-15 16:49:28.808
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
    at runjettyrun.tabs.AbstractClasspathTab.isValid(AbstractClasspathTab.java:655)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.refresh(LaunchConfigurationTabGroupViewer.java:463)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.updateButtons(LaunchConfigurationsDialog.java:1516)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:948)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$3.selectionChanged(LaunchConfigurationsDialog.java:560)
    at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:888)
...

Original issue reported on code.google.com by nho...@gmail.com on 15 Mar 2012 at 8:59

Attachments:

GoogleCodeExporter commented 9 years ago
It's covered with Issue 116.

Original comment by tonylovejava on 16 Mar 2012 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 16 Mar 2012 at 2:17

GoogleCodeExporter commented 9 years ago
That means there's a exception when we create the model,which is a special case 
we haven't find.

Would you mind to take a full screenshot for me ?

Also , try to create a new run configuration to check if problem still there.

I just build a new nightly version that only return a error message instead of 
Exception, and you should now able to see the real error message in the view.

I am sorry about the inconvenience, if you don't mind , please try our latest 
nightly again.

http://run-jetty-run.googlecode.com/svn/trunk/updatesite-nightly

Original comment by tonylovejava on 17 Mar 2012 at 12:42

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 17 Mar 2012 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 18 Mar 2012 at 7:09

GoogleCodeExporter commented 9 years ago
FWIW, I was seeing this same error with 1.3.3 from the release update site and 
since switching to the latest 1.3.3.201203170835 from the updatesite-nightly it 
works as expected now.

Original comment by dree...@gmail.com on 9 Apr 2012 at 10:26

GoogleCodeExporter commented 9 years ago
I have the same problem while clicking "My proj"->run as ->run configuration. 
it opened a blank content with left menu "Jetty" - "My Proj" shown and the 
following popup

Items model shouldn't be null
An error has occurred. See error log for more details.
Update LCD
Update LCD
Update LCD
Update LCD

my installed version of "Run Jetty Run Feature (Required)" is 
1.3.3.201203161919.
I would like updating it to latest 1.3.3.201203170835 as the above tonylove... 
suggested, but there is no update available. 

Please advise. thx a lot.

Original comment by testmcu...@gmail.com on 17 Apr 2012 at 8:50

GoogleCodeExporter commented 9 years ago
FYI, I use win XP and Eclipse Java EE IDE for Web Developers (Version: Indigo 
Service Release 2
Build id: 20120216-1857)

Original comment by testmcu...@gmail.com on 17 Apr 2012 at 8:50

GoogleCodeExporter commented 9 years ago
For solving this issue for workaround ,
you could try to remove the run configuration and create a new one.

It might happen when RJR got exception from resolving the classpath items,
I will look into this for more details.

Original comment by tonylovejava on 17 Apr 2012 at 10:19

GoogleCodeExporter commented 9 years ago
You could also find the version 1.3.3.201203161919 in the nightly update-site.
http://run-jetty-run.googlecode.com/svn/trunk/updatesite-nightly

Original comment by tonylovejava on 17 Apr 2012 at 10:22

GoogleCodeExporter commented 9 years ago
I also have this problem. I'm using version:

  Run Jetty Run Feature (Require)   1.3.3.201203161919  runjettyrun_feature.feature.group   http://code.google.com/p/run-jetty-run/

In my case it only happens if a project for which a RJR target is added is 
closed when opening the "Debug configurations". If I open the project before 
opening the "Debug configurations" I no longer get the "Update LCD..." errors.

Original comment by dji...@gmail.com on 29 Jun 2012 at 5:41

GoogleCodeExporter commented 9 years ago
Can you update the main updatesite to at least version "1.3.3.201203170835" 
suggested by testmcu* above, so people don't get this error when installing the 
default?

Original comment by nho...@gmail.com on 4 Dec 2012 at 12:40

GoogleCodeExporter commented 9 years ago
so I also meet this problem, how should I fix this?

Original comment by csu...@gmail.com on 12 Jun 2013 at 2:43

GoogleCodeExporter commented 9 years ago
Either open all the projects you specified inside your run-jetty-run 
configurations or update to the nightly build mentioned before

Original comment by gruener....@gmail.com on 13 Jun 2013 at 5:37

GoogleCodeExporter commented 9 years ago
Thanks !!
nightly worked for me

Original comment by sunny.ma...@gmail.com on 29 Oct 2013 at 5:10