VE and Java Web Start (or: does JARing VE work?) [message #614709] |
Wed, 11 October 2006 17:51 |
Eclipse User |
|
|
|
Originally posted by: f-l.gmx.net
Hello guys,
we're deploying an RCP application also containing the VE via JWS. The VE
plugins get JARed for this reason.
When running the application locally (i.e. without JWS deployment),
everything is fine.
When running the deployed application, we run in the NPE shown below. It
happens when adding widgets to the base component. The generated Java source
code is then lacking the usual "get" method for this widget.
Question: code inspection makes me understand that java.io.File is used to
load JET templates in code related and called by the exception source (have
a look at TemplateObjectFactory.getTemplate(...) ). Most probably method
template files are read from the "templates" folder in the
"org.eclipse.ve.java.core" plugin. As far as I know, accessing files in JARs
is not that easy...? Or do you know the reason of this exception?
Thank you in advance,
Fedor
Stacktrace:
********************************************************
java.lang.NullPointerException
at
org.eclipse.ve.internal.java.codegen.util.AbstractMethodText Generator.generateMethod(AbstractMethodTextGenerator.java:11 9)
at
org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.ge nerateInitMethod(BeanPartFactory.java:239)
at
org.eclipse.ve.internal.java.codegen.java.BeanPartFactory.cr eateFromJVEModel(BeanPartFactory.java:603)
at
org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.laz yCreateBeanInstance(BeanDeclModel.java:279)
at
org.eclipse.ve.internal.java.codegen.model.BeanDeclModel.get ABean(BeanDeclModel.java:298)
at
org.eclipse.ve.internal.jfc.codegen.ContainerAddDecoderHelpe r.generate(ContainerAddDecoderHelper.java:901)
at
org.eclipse.ve.internal.java.codegen.java.AbstractExpression Decoder.generate(AbstractExpressionDecoder.java:196)
at
org.eclipse.ve.internal.java.codegen.model.CodeExpressionRef .generateSource(CodeExpressionRef.java:359)
at
org.eclipse.ve.internal.java.codegen.java.ExpressionRefFacto ry.createFromJVEModel(ExpressionRefFactory.java:102)
at
org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .addElement(BeanDecoderAdapter.java:398)
at
org.eclipse.ve.internal.java.codegen.java.BeanDecoderAdapter .notifyChanged(BeanDecoderAdapter.java:455)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:229)
|
|
|
Powered by
FUDForum. Page generated in 0.02537 seconds