Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » xml editor cannot open empty files
xml editor cannot open empty files [message #182358] Wed, 08 November 2006 13:32 Go to next message
teknokrat is currently offline teknokratFriend
Messages: 73
Registered: July 2009
Member
has anyone seen this or is it a new bug. I am on eclipse 3.2.1 and WTP
1.5.2. I create an empty xml file and when I try to open it I get

java.lang.NullPointerException
at
org.eclipse.wst.sse.ui.StructuredTextEditor.update(Structure dTextEditor.java:3047)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.addSourcePage(XMLMultiPageEditorPart.java:338)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.createPages(XMLMultiPageEditorPart.java:505)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:276)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:596)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:372)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:214)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2595)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPag e.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2500)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2485)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:275)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:139)
at
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(Open ActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 0)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 4)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:267)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:243)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:306)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 4.open(PackageExplorerPart.java:653)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:817)
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.StructuredViewer.fireOpen(Structur edViewer.java:815)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1069)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:249)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:243)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:283)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
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:597)
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)
Re: xml editor cannot open empty files [message #182396 is a reply to message #182358] Thu, 09 November 2006 04:36 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

teknokrat wrote:
> has anyone seen this or is it a new bug. I am on eclipse 3.2.1 and WTP
> 1.5.2. I create an empty xml file and when I try to open it I get
>
> java.lang.NullPointerException
> at
> org.eclipse.wst.sse.ui.StructuredTextEditor.update(Structure dTextEditor.java:3047)
>
> at
> org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.addSourcePage(XMLMultiPageEditorPart.java:338)
....

It works fine when I try it, did you install any additional XML
plugins that might be interfering? Is the empty file named .xml or
with a file extension listed on the Content Types preference page?


--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: xml editor cannot open empty files [message #182455 is a reply to message #182396] Fri, 10 November 2006 09:56 Go to previous messageGo to next message
teknokrat is currently offline teknokratFriend
Messages: 73
Registered: July 2009
Member
Nitin Dahyabhai wrote:
> teknokrat wrote:
>> has anyone seen this or is it a new bug. I am on eclipse 3.2.1 and WTP
>> 1.5.2. I create an empty xml file and when I try to open it I get
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.wst.sse.ui.StructuredTextEditor.update(Structure dTextEditor.java:3047)
>>
>> at
>> org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.addSourcePage(XMLMultiPageEditorPart.java:338)
>
> ...
>
> It works fine when I try it, did you install any additional XML plugins
> that might be interfering? Is the empty file named .xml or with a file
> extension listed on the Content Types preference page?
>
>
> --
> Nitin Dahyabhai
> Structured Source Editor

I tried installing WTP 1.5.2 from scratch and it still happens. the
problem is with xml files that do not have the header <?xml... ?> at the
top. They all throw that exception. My content types and file
associations all seem ok too.
Re: xml editor cannot open empty files [message #182462 is a reply to message #182396] Fri, 10 November 2006 10:40 Go to previous messageGo to next message
teknokrat is currently offline teknokratFriend
Messages: 73
Registered: July 2009
Member
Nitin Dahyabhai wrote:
> teknokrat wrote:
>> has anyone seen this or is it a new bug. I am on eclipse 3.2.1 and WTP
>> 1.5.2. I create an empty xml file and when I try to open it I get
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.wst.sse.ui.StructuredTextEditor.update(Structure dTextEditor.java:3047)
>>
>> at
>> org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.addSourcePage(XMLMultiPageEditorPart.java:338)
>
> ...
>
> It works fine when I try it, did you install any additional XML plugins
> that might be interfering? Is the empty file named .xml or with a file
> extension listed on the Content Types preference page?
>
>
> --
> Nitin Dahyabhai
> Structured Source Editor

Ok, I have just switched on checking for unsupported content types. Now
when I create and empty xml file, test.xml, I get a popup stating that I
have an unsupported content type in the editor. I then go to the content
type preferences page but the xml content type is defined and locked there??
Re: xml editor cannot open empty files [message #182554 is a reply to message #182462] Mon, 13 November 2006 01:31 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

teknokrat wrote:
> Ok, I have just switched on checking for unsupported content types. Now
> when I create and empty xml file, test.xml, I get a popup stating that I
> have an unsupported content type in the editor. I then go to the content
> type preferences page but the xml content type is defined and locked
> there??


Switched on? You mean enabled it somewhere?


--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: xml editor cannot open empty files [message #182658 is a reply to message #182554] Tue, 14 November 2006 10:18 Go to previous messageGo to next message
teknokrat is currently offline teknokratFriend
Messages: 73
Registered: July 2009
Member
Nitin Dahyabhai wrote:
> teknokrat wrote:
>> Ok, I have just switched on checking for unsupported content types.
>> Now when I create and empty xml file, test.xml, I get a popup stating
>> that I have an unsupported content type in the editor. I then go to
>> the content type preferences page but the xml content type is defined
>> and locked there??
>
>
> Switched on? You mean enabled it somewhere?
>
>
> --
> Nitin Dahyabhai
> Structured Source Editor

yes, its available in the structured text editor preferences
Re: xml editor cannot open empty files [message #183508 is a reply to message #182658] Wed, 29 November 2006 21:43 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Is there any more detail you can provide about your configuration?
This works fine every time I try it.

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Weblogic 5.1 Service Pack 9
Next Topic:org.eclipse.wst.rdb.models.sql.editor?
Goto Forum:
  


Current Time: Fri Mar 29 12:24:42 GMT 2024

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

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

Back to the top