Bug 101609 - add a subclass of JPanel to the JPanel as JPanel, caused VE can't load and throw nullpoint exception
Summary: add a subclass of JPanel to the JPanel as JPanel, caused VE can't load and th...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 05:57 EDT by ze jun CLA
Modified: 2011-06-13 11:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ze jun CLA 2005-06-24 05:57:55 EDT
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)
Comment 1 Peter Walker CLA 2005-06-27 11:49:05 EDT
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