Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jarsen
Post subject: JSP Editor causes NPE Exception  PostPosted: Mar 16, 2006 - 01:25 AM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

Hi,

I'm working through the Working With Web Projects - Quickstart tutorial. When I get to the part where I create a new JSP I get an error that says: "Unable to create this part due to an internal error. Reason for the failure: An unexpected exception was thrown." Any ideas about what is causing this or how to correct?

Thanks.

--Joe

Here's the stack trace:

java.lang.NullPointerException
at com.jniwrapper.win32.ie.ak.addStatusListener(SourceFile:59)
at com.jniwrapper.win32.ie.ai.<init>(SourceFile:140)
at com.jniwrapper.win32.ie.ai.<init>(SourceFile:93)
at com.jniwrapper.win32.ie.ai.<init>(SourceFile:88)
at com.jniwrapper.win32.ie.Browser.a(SourceFile:73)
at com.jniwrapper.win32.ie.Browser.<init>(SourceFile:53)
at com.jniwrapper.win32.ie.Browser.<init>(SourceFile:45)
at com.genuitec.eclipse.webdesigner2.designeditor.MSHTMLViewer.createControl(MSHTMLViewer.java:307)
at com.genuitec.eclipse.webdesigner2.designeditor.MSHTMLViewer.<init>(MSHTMLViewer.java:257)
at com.genuitec.eclipse.webdesigner2.designeditor.MSHTMLViewer.<init>(MSHTMLViewer.java:229)
at com.genuitec.eclipse.webdesigner2.designeditor.DesignEditSubsystem.createDesignViewer(DesignEditSubsystem.java:183)
at com.genuitec.eclipse.webdesigner2.WebDesigner2.createDesignViewer(WebDesigner2.java:135)
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createDesignerControls(HTMLMultiPageEditorPart.java:504)
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createDesignPage(HTMLMultiPageEditorPart.java:480)
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:260)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:251)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:131)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:169)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:153)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:222)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:198)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

Here's my configuation information:

Windows XP SP2
Eclipse SDK 3.1.1 Build id: M20050929-0840
MyEclipse Version: 4.1.1 Build id: 20060228-4.1.1-GA
Eclipse and MyEclipse were already installed. I ran the update manager to upgrade to ME 4.1.1 from 4.0.8

<SNIP>
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Mar 16, 2006 - 03:58 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

What version of IE do you have o nyour machine? MyEclipse relies on version 6.x, if you have version 5 or version 7 beta that is most likely the problem.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jarsen
Post subject: RE: JSP Editor  PostPosted: Mar 17, 2006 - 12:48 PM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

I have Internet Explorer 6.0.x installed. I'm going to try a clean reinstall of Eclipse and MyEclipse this weekend. I'll let you know what happens.

Thanks.

--Joe
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Mar 17, 2006 - 02:50 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1615

Joe,

Do you have any versions of MS Office or MS Visual Studio installed? For office did you install Frontpage as well?

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jarsen
Post subject: JSP Editor causes NPE Exception  PostPosted: Mar 19, 2006 - 05:51 PM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

Yes, I have Microsoft Word 2000 (9.0.2720) installed.

--Joe
 
 View user's profile Send private message  
Reply with quote Back to top
jarsen
Post subject: JSP Editor causes NPE Exception  PostPosted: Mar 19, 2006 - 05:53 PM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

Sorry, too quick with the Enter key.

I have the whole dang MS Office Professional 2000 suite installed including MS Access. I don't have MS Visual Studio or FrontPage installed.

--Joe
 
 View user's profile Send private message  
Reply with quote Back to top
jarsen
Post subject: JSP Editor causes NPE Exception  PostPosted: Mar 19, 2006 - 07:07 PM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

OK, I just did a clean reinstall of Eclipse 3.1.2 and MyEclipse 4.1.1. Here's the new configuration info:

*** Date: Sun Mar 19 14:05:33 EST 2006

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M20060118-1600
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Development\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
b0_6c
-vm
C:\WINDOWS\system32\javaw.exe
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1142794915609
eclipse.vm=C:\WINDOWS\system32\javaw.exe
eclipse.vmargs=-Duser.language=en
-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128M
-Dosgi.splashLocation=C:\Development\eclipse\MyEclipseSplash.bmp
-jar
C:\Development\eclipse\startup.jar
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Development\eclipse\startup.jar
java.class.version=49.0
java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_06\lib\endorsed
java.ext.dirs=C:\Program Files\Java\jre1.5.0_06\lib\ext
java.home=C:\Program Files\Java\jre1.5.0_06
java.io.tmpdir=C:\DOCUME~1\Joe\LOCALS~1\Temp\
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_06-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_06
java.vm.info=mixed mode, sharing
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_06-b05
jnw.lic.type=Runtime
line.separator=

<SNIP>
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Mar 19, 2006 - 07:15 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Did you try a clean workspace as well? (File > Switch Workspace > C:\tempworkspace, hit OK) NOw create a new web project with a HTML file and try and open it, did it wokr? Now try a JSP file, did it work?

Right click on the file and go to Open With and make sure they are associated with the "MyEclipse HTML Designer" and "MyEclipse JSP Designer" respectively.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jarsen
Post subject: JSP Editor causes NPE Exception  PostPosted: Mar 19, 2006 - 08:42 PM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

Thanks for replying on a Sunday.

I just tried a clean workspace, as you suggested. I got the same error when I tried to create a new HTML file. And again when I tried to create a new JSP. Here's something new though. If I right-click on either the HTML file or the JSP and select open with->MyEclipse 'Classic' HTML Editor or MyEclipse 'Classic' JSP Editor, then the files open up just fine. Looks like the problem is in the engine that runs the MyEclipse HTML or JSP Designer editor.

--Joe
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Mar 19, 2006 - 09:04 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Joe,
This does sound like there is something on your system (we have seen Office, Visual Studio and IE Beta all break the new designer) that is making it mad. Can you run with the "Classic" editor in the mean time while we look into this?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jarsen
Post subject: JSP Editor causes NPE Exception  PostPosted: Mar 19, 2006 - 11:35 PM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

Riyad,

It's no problem at all for me to use the Classic editors. I know that MS Office Pro 2000 is pretty old, but I just hate handing Bill Gates another big wad of cash if I can avoid it. Thanks again for your help.

--Joe
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Mar 20, 2006 - 01:14 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

I don't blame you Joe, have you tried Open Office? I've been able to switch all my work to Open Office 2.0 without anyone else noticing... it's my own little way of saying "Thanks, but I'd rather keep my $500".

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jarsen
Post subject: JSP Editor causes NPE Exception  PostPosted: Mar 26, 2006 - 02:08 PM
Veteran Member
Veteran Member


Joined: Jun 20, 2005
Posts: 10

I just wanted to give you an update. I uninstalled MS Office 2000 Professional and installed OpenOffice. I started MyEclipse, created a new workspace, new Web project, new JSP, and got the same error as before. I can still use the classic JSP editor, but not the new JSP designer. Hope this helps narrow down the problem.

--Joe
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Mar 26, 2006 - 05:03 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Joe,
I had a good opportunity to talk with management about this and the designer team and they are investigating a much more robust designer architecture right now and making good headway that will hopefully do away with the designer being so sensative to platform changes. Thank you for the feedback, we collect all of it for the developers.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
revoltingdigits
Post subject:   PostPosted: Apr 04, 2006 - 10:05 PM
Registered Member
Registered Member


Joined: Jul 05, 2005
Posts: 13

and what is the response ? I've had a broken visual editor for at least 4 weeks now ? Is there a timeline for fixing this ?
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits