Community
Participate
Working Groups
add a subclass of JPanel to the JPanel as JPanel, caused VE can't load and throw nullpoint exception, perhaps it is not a bug, (it should be a enhancement:)) following is the error message, thanks! !ENTRY org.eclipse.ve.java.core 4 0 Jun 24, 2005 11:45:03.624 !MESSAGE Exception thrown. !STACK 0 java.lang.NullPointerException at org.eclipse.ve.internal.java.codegen.java.ExpressionDecoderFactory.getExpDecode r(Unknown Source) at org.eclipse.ve.internal.java.codegen.model.BeanPart.setEObject (Unknown Source) at org.eclipse.ve.internal.java.codegen.model.BeanPart.createEObject (Unknown Source) at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslator.createJavaInstan ces(Unknown Source) at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslator.buildComposition Model(Unknown Source) at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslator.decodeDocument (Unknown Source) at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslator.loadModel (Unknown Source) at org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEditorPart$Setup.run (Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
Please provide more information: - what VE driver are you using? - are you using the correct VE pre-reqs (Eclipse, EMF, GEF) that are listed on each VE download page? - what JRE are you using? VE works with JRE 1.4.2 but doesn't support JRE 1.5 yet With regard to the scenario you tried, I don't fully understand it. Did you create a class extending JPanel, save it, and drop that onto another visual class that had a JPanel? Please provide more details so I can try to re-create this problem. Thanks... Peter Walker