Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Error trying to set new file into editor
Error trying to set new file into editor [message #142259] Wed, 24 October 2007 01:36 Go to next message
Eclipse UserFriend
Originally posted by: andreiberi.look.ca

I am trying to run VE 1.3.0 build on Eclipse 3.3.1 and I am getting the
following error while trying to open a visual class:

"Error trying to set new file into editor. Reason:
java.lang.NullPointerException".

I googled it and it turns out that other people experienced the same
problem on earlier versions of VE.

Anybody has any ideas how to get around this problem?

Thanks,
Andrei
Re: Error trying to set new file into editor [message #142269 is a reply to message #142259] Wed, 24 October 2007 10:03 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
Please give more information such as stacktrace or a test-case ! It is hard
to guess what is wrong.

Best regards
Yves YANG
-----
eFace: XAML for java (http://www.soyatec.com)

"Andrei Beri" <andreiberi@look.ca> wrote in message
news:ffm7ia$c8r$1@build.eclipse.org...
>I am trying to run VE 1.3.0 build on Eclipse 3.3.1 and I am getting the
>following error while trying to open a visual class:
>
> "Error trying to set new file into editor. Reason:
> java.lang.NullPointerException".
>
> I googled it and it turns out that other people experienced the same
> problem on earlier versions of VE.
>
> Anybody has any ideas how to get around this problem?
>
> Thanks,
> Andrei
Re: Error trying to set new file into editor [message #142279 is a reply to message #142269] Thu, 25 October 2007 03:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andreiberi.look.ca

I cleaned all projects and the problem went away. However it is
reoccurring intermittently.

What are the current plans for releasing official 1.3 version of VE?

Here is the stack trace of the exception:

!ENTRY org.eclipse.ve.java.core 2 0 2007-10-24 22:09:09.609
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.ve.internal.java.codegen.java.AbstractContainerA ddDecoderHelper.getIndexedEntries(AbstractContainerAddDecode rHelper.java:410)
at
org.eclipse.ve.internal.swt.codegen.CompositeAddDecoderHelpe r.getIndexPriority(CompositeAddDecoderHelper.java:502)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionDecoderH elper.getPriorityOfExpression(ExpressionDecoderHelper.java:1 38)
at
org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.determinePriority(AbstractExpressionDecoder.java:67)
at
org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .getPriority(CodeExpressionRef.java:182)
at
org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.add ExpressionToSortedList(CodeMethodRef.java:604)
at
org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.sor tExpressions(CodeMethodRef.java:702)
at
org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.upd ateExpressionOrder(CodeMethodRef.java:710)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:109)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createInitExpression(ExpressionRefFactory.java:74)
at
org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.createInitExpression(AbstractMethodTextGenerator.j ava:300)
at
org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.generateInLine(AbstractMethodTextGenerator.java:31 7)
at
org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.ge nerateLocalVariable(BeanPartFactory.java:78)
at
org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.cr eateFromJVEModel(BeanPartFactory.java:670)
at
org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.laz yCreateBeanInstance(BeanDeclModel.java:305)
at
org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.get ABean(BeanDeclModel.java:324)
at
org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.getCurrentAddedPart(ChildRelationshipDecoderHel per.java:251)
at
org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.generate(ChildRelationshipDecoderHelper.java:50 1)
at
org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.generate(AbstractExpressionDecoder.java:194)
at
org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .generateSource(CodeExpressionRef.java:361)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:102)
at
org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .setElement(BeanDecoderAdapter.java:245)
at
org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .notifyChanged(BeanDecoderAdapter.java:458)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:247)
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSe ttingDelegateSingleEObject.dynamicSet(EStructuralFeatureImpl .java:2425)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(Basi cEObjectImpl.java:1116)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1090)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1061)
at
org.eclipse.ve.internal.cde.commands.ApplyAttributeSettingCo mmand.execute(ApplyAttributeSettingCommand.java:70)
at
org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
at
org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack$1.run(JavaVisualEditorCommandStack.java:55)
at
org.eclipse.ve.internal.cde.core.ModelChangeController.doMod elChanges(ModelChangeController.java:245)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack.execute(JavaVisualEditorCommandStack.java:5 2)
at
org.eclipse.ve.internal.swt.GridLayoutComponentPage.execute( GridLayoutComponentPage.java:866)
at
org.eclipse.ve.internal.swt.GridLayoutComponentPage$GrabActi on.run(GridLayoutComponentPage.java:470)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$4.handleEven t(ActionContributionItem.java:375)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)


Thanks,
Andrei

Yves YANG wrote:
> Please give more information such as stacktrace or a test-case ! It is hard
> to guess what is wrong.
>
> Best regards
> Yves YANG
> -----
> eFace: XAML for java (http://www.soyatec.com)
>
> "Andrei Beri" <andreiberi@look.ca> wrote in message
> news:ffm7ia$c8r$1@build.eclipse.org...
>> I am trying to run VE 1.3.0 build on Eclipse 3.3.1 and I am getting the
>> following error while trying to open a visual class:
>>
>> "Error trying to set new file into editor. Reason:
>> java.lang.NullPointerException".
>>
>> I googled it and it turns out that other people experienced the same
>> problem on earlier versions of VE.
>>
>> Anybody has any ideas how to get around this problem?
>>
>> Thanks,
>> Andrei
>
>
Re: Error trying to set new file into editor [message #142334 is a reply to message #142279] Thu, 25 October 2007 17:49 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
Thru the stacktrace, I cannot figure out how this case occurs. I will be
helpful if you can post a testcase.

Yves YANG
-----
http://www.soyatec.com
"Andrei Beri" <andreiberi@look.ca> wrote in message
news:ffp2ci$rk3$1@build.eclipse.org...
>I cleaned all projects and the problem went away. However it is reoccurring
>intermittently.
>
> What are the current plans for releasing official 1.3 version of VE?
>
> Here is the stack trace of the exception:
>
> !ENTRY org.eclipse.ve.java.core 2 0 2007-10-24 22:09:09.609
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractContainerA ddDecoderHelper.getIndexedEntries(AbstractContainerAddDecode rHelper.java:410)
> at
> org.eclipse.ve.internal.swt.codegen.CompositeAddDecoderHelpe r.getIndexPriority(CompositeAddDecoderHelper.java:502)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionDecoderH elper.getPriorityOfExpression(ExpressionDecoderHelper.java:1 38)
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.determinePriority(AbstractExpressionDecoder.java:67)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .getPriority(CodeExpressionRef.java:182)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.add ExpressionToSortedList(CodeMethodRef.java:604)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.sor tExpressions(CodeMethodRef.java:702)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.upd ateExpressionOrder(CodeMethodRef.java:710)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:109)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createInitExpression(ExpressionRefFactory.java:74)
> at
> org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.createInitExpression(AbstractMethodTextGenerator.j ava:300)
> at
> org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.generateInLine(AbstractMethodTextGenerator.java:31 7)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.ge nerateLocalVariable(BeanPartFactory.java:78)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.cr eateFromJVEModel(BeanPartFactory.java:670)
> at
> org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.laz yCreateBeanInstance(BeanDeclModel.java:305)
> at
> org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.get ABean(BeanDeclModel.java:324)
> at
> org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.getCurrentAddedPart(ChildRelationshipDecoderHel per.java:251)
> at
> org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.generate(ChildRelationshipDecoderHelper.java:50 1)
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.generate(AbstractExpressionDecoder.java:194)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .generateSource(CodeExpressionRef.java:361)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:102)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .setElement(BeanDecoderAdapter.java:245)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .notifyChanged(BeanDecoderAdapter.java:458)
> at
> org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:247)
> at
> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSe ttingDelegateSingleEObject.dynamicSet(EStructuralFeatureImpl .java:2425)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(Basi cEObjectImpl.java:1116)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1090)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1061)
> at
> org.eclipse.ve.internal.cde.commands.ApplyAttributeSettingCo mmand.execute(ApplyAttributeSettingCommand.java:70)
> at
> org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
> at
> org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack$1.run(JavaVisualEditorCommandStack.java:55)
> at
> org.eclipse.ve.internal.cde.core.ModelChangeController.doMod elChanges(ModelChangeController.java:245)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack.execute(JavaVisualEditorCommandStack.java:5 2)
> at
> org.eclipse.ve.internal.swt.GridLayoutComponentPage.execute( GridLayoutComponentPage.java:866)
> at
> org.eclipse.ve.internal.swt.GridLayoutComponentPage$GrabActi on.run(GridLayoutComponentPage.java:470)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
> at
> org.eclipse.jface.action.ActionContributionItem$4.handleEven t(ActionContributionItem.java:375)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> 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.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>
>
> Thanks,
> Andrei
>
> Yves YANG wrote:
>> Please give more information such as stacktrace or a test-case ! It is
>> hard to guess what is wrong.
>>
>> Best regards
>> Yves YANG
>> -----
>> eFace: XAML for java (http://www.soyatec.com)
>>
>> "Andrei Beri" <andreiberi@look.ca> wrote in message
>> news:ffm7ia$c8r$1@build.eclipse.org...
>>> I am trying to run VE 1.3.0 build on Eclipse 3.3.1 and I am getting the
>>> following error while trying to open a visual class:
>>>
>>> "Error trying to set new file into editor. Reason:
>>> java.lang.NullPointerException".
>>>
>>> I googled it and it turns out that other people experienced the same
>>> problem on earlier versions of VE.
>>>
>>> Anybody has any ideas how to get around this problem?
>>>
>>> Thanks,
>>> Andrei
>>
Re: Error trying to set new file into editor [message #616800 is a reply to message #142259] Wed, 24 October 2007 10:03 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
Please give more information such as stacktrace or a test-case ! It is hard
to guess what is wrong.

Best regards
Yves YANG
-----
eFace: XAML for java (http://www.soyatec.com)

"Andrei Beri" <andreiberi@look.ca> wrote in message
news:ffm7ia$c8r$1@build.eclipse.org...
>I am trying to run VE 1.3.0 build on Eclipse 3.3.1 and I am getting the
>following error while trying to open a visual class:
>
> "Error trying to set new file into editor. Reason:
> java.lang.NullPointerException".
>
> I googled it and it turns out that other people experienced the same
> problem on earlier versions of VE.
>
> Anybody has any ideas how to get around this problem?
>
> Thanks,
> Andrei
Re: Error trying to set new file into editor [message #616801 is a reply to message #142269] Thu, 25 October 2007 03:26 Go to previous message
Eclipse UserFriend
Originally posted by: andreiberi.look.ca

I cleaned all projects and the problem went away. However it is
reoccurring intermittently.

What are the current plans for releasing official 1.3 version of VE?

Here is the stack trace of the exception:

!ENTRY org.eclipse.ve.java.core 2 0 2007-10-24 22:09:09.609
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.ve.internal.java.codegen.java.AbstractContainerA ddDecoderHelper.getIndexedEntries(AbstractContainerAddDecode rHelper.java:410)
at
org.eclipse.ve.internal.swt.codegen.CompositeAddDecoderHelpe r.getIndexPriority(CompositeAddDecoderHelper.java:502)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionDecoderH elper.getPriorityOfExpression(ExpressionDecoderHelper.java:1 38)
at
org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.determinePriority(AbstractExpressionDecoder.java:67)
at
org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .getPriority(CodeExpressionRef.java:182)
at
org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.add ExpressionToSortedList(CodeMethodRef.java:604)
at
org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.sor tExpressions(CodeMethodRef.java:702)
at
org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.upd ateExpressionOrder(CodeMethodRef.java:710)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:109)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createInitExpression(ExpressionRefFactory.java:74)
at
org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.createInitExpression(AbstractMethodTextGenerator.j ava:300)
at
org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.generateInLine(AbstractMethodTextGenerator.java:31 7)
at
org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.ge nerateLocalVariable(BeanPartFactory.java:78)
at
org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.cr eateFromJVEModel(BeanPartFactory.java:670)
at
org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.laz yCreateBeanInstance(BeanDeclModel.java:305)
at
org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.get ABean(BeanDeclModel.java:324)
at
org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.getCurrentAddedPart(ChildRelationshipDecoderHel per.java:251)
at
org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.generate(ChildRelationshipDecoderHelper.java:50 1)
at
org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.generate(AbstractExpressionDecoder.java:194)
at
org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .generateSource(CodeExpressionRef.java:361)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:102)
at
org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .setElement(BeanDecoderAdapter.java:245)
at
org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .notifyChanged(BeanDecoderAdapter.java:458)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:247)
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSe ttingDelegateSingleEObject.dynamicSet(EStructuralFeatureImpl .java:2425)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(Basi cEObjectImpl.java:1116)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1090)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1061)
at
org.eclipse.ve.internal.cde.commands.ApplyAttributeSettingCo mmand.execute(ApplyAttributeSettingCommand.java:70)
at
org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
at
org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack$1.run(JavaVisualEditorCommandStack.java:55)
at
org.eclipse.ve.internal.cde.core.ModelChangeController.doMod elChanges(ModelChangeController.java:245)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack.execute(JavaVisualEditorCommandStack.java:5 2)
at
org.eclipse.ve.internal.swt.GridLayoutComponentPage.execute( GridLayoutComponentPage.java:866)
at
org.eclipse.ve.internal.swt.GridLayoutComponentPage$GrabActi on.run(GridLayoutComponentPage.java:470)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$4.handleEven t(ActionContributionItem.java:375)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)


Thanks,
Andrei

Yves YANG wrote:
> Please give more information such as stacktrace or a test-case ! It is hard
> to guess what is wrong.
>
> Best regards
> Yves YANG
> -----
> eFace: XAML for java (http://www.soyatec.com)
>
> "Andrei Beri" <andreiberi@look.ca> wrote in message
> news:ffm7ia$c8r$1@build.eclipse.org...
>> I am trying to run VE 1.3.0 build on Eclipse 3.3.1 and I am getting the
>> following error while trying to open a visual class:
>>
>> "Error trying to set new file into editor. Reason:
>> java.lang.NullPointerException".
>>
>> I googled it and it turns out that other people experienced the same
>> problem on earlier versions of VE.
>>
>> Anybody has any ideas how to get around this problem?
>>
>> Thanks,
>> Andrei
>
>
Re: Error trying to set new file into editor [message #616806 is a reply to message #142279] Thu, 25 October 2007 17:49 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
Thru the stacktrace, I cannot figure out how this case occurs. I will be
helpful if you can post a testcase.

Yves YANG
-----
http://www.soyatec.com
"Andrei Beri" <andreiberi@look.ca> wrote in message
news:ffp2ci$rk3$1@build.eclipse.org...
>I cleaned all projects and the problem went away. However it is reoccurring
>intermittently.
>
> What are the current plans for releasing official 1.3 version of VE?
>
> Here is the stack trace of the exception:
>
> !ENTRY org.eclipse.ve.java.core 2 0 2007-10-24 22:09:09.609
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractContainerA ddDecoderHelper.getIndexedEntries(AbstractContainerAddDecode rHelper.java:410)
> at
> org.eclipse.ve.internal.swt.codegen.CompositeAddDecoderHelpe r.getIndexPriority(CompositeAddDecoderHelper.java:502)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionDecoderH elper.getPriorityOfExpression(ExpressionDecoderHelper.java:1 38)
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.determinePriority(AbstractExpressionDecoder.java:67)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .getPriority(CodeExpressionRef.java:182)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.add ExpressionToSortedList(CodeMethodRef.java:604)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.sor tExpressions(CodeMethodRef.java:702)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeMethodRef.upd ateExpressionOrder(CodeMethodRef.java:710)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:109)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createInitExpression(ExpressionRefFactory.java:74)
> at
> org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.createInitExpression(AbstractMethodTextGenerator.j ava:300)
> at
> org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.generateInLine(AbstractMethodTextGenerator.java:31 7)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.ge nerateLocalVariable(BeanPartFactory.java:78)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.cr eateFromJVEModel(BeanPartFactory.java:670)
> at
> org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.laz yCreateBeanInstance(BeanDeclModel.java:305)
> at
> org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.get ABean(BeanDeclModel.java:324)
> at
> org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.getCurrentAddedPart(ChildRelationshipDecoderHel per.java:251)
> at
> org.eclipse.ve.internal.java.codegen.java.ChildRelationshipD ecoderHelper.generate(ChildRelationshipDecoderHelper.java:50 1)
> at
> org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.generate(AbstractExpressionDecoder.java:194)
> at
> org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .generateSource(CodeExpressionRef.java:361)
> at
> org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:102)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .setElement(BeanDecoderAdapter.java:245)
> at
> org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .notifyChanged(BeanDecoderAdapter.java:458)
> at
> org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:247)
> at
> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSe ttingDelegateSingleEObject.dynamicSet(EStructuralFeatureImpl .java:2425)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(Basi cEObjectImpl.java:1116)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1090)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1061)
> at
> org.eclipse.ve.internal.cde.commands.ApplyAttributeSettingCo mmand.execute(ApplyAttributeSettingCommand.java:70)
> at
> org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
> at
> org.eclipse.ve.internal.propertysheet.common.commands.Compou ndCommand.execute(CompoundCommand.java:224)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack$1.run(JavaVisualEditorCommandStack.java:55)
> at
> org.eclipse.ve.internal.cde.core.ModelChangeController.doMod elChanges(ModelChangeController.java:245)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack.execute(JavaVisualEditorCommandStack.java:5 2)
> at
> org.eclipse.ve.internal.swt.GridLayoutComponentPage.execute( GridLayoutComponentPage.java:866)
> at
> org.eclipse.ve.internal.swt.GridLayoutComponentPage$GrabActi on.run(GridLayoutComponentPage.java:470)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
> at
> org.eclipse.jface.action.ActionContributionItem$4.handleEven t(ActionContributionItem.java:375)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> 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.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>
>
> Thanks,
> Andrei
>
> Yves YANG wrote:
>> Please give more information such as stacktrace or a test-case ! It is
>> hard to guess what is wrong.
>>
>> Best regards
>> Yves YANG
>> -----
>> eFace: XAML for java (http://www.soyatec.com)
>>
>> "Andrei Beri" <andreiberi@look.ca> wrote in message
>> news:ffm7ia$c8r$1@build.eclipse.org...
>>> I am trying to run VE 1.3.0 build on Eclipse 3.3.1 and I am getting the
>>> following error while trying to open a visual class:
>>>
>>> "Error trying to set new file into editor. Reason:
>>> java.lang.NullPointerException".
>>>
>>> I googled it and it turns out that other people experienced the same
>>> problem on earlier versions of VE.
>>>
>>> Anybody has any ideas how to get around this problem?
>>>
>>> Thanks,
>>> Andrei
>>
Previous Topic:Visual Editor 1.2 not usable in Eclipse 3.2.2
Next Topic:Read this code VE why not support it?
Goto Forum:
  


Current Time: Mon Dec 22 13:29:42 GMT 2014

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

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