Select bean, component is red-marked in "Java Beans" pane. [message #89402] |
Tue, 03 May 2005 10:12  |
Eclipse User |
|
|
|
Originally posted by: vladis.gemtek.lt
Hi,
I want to add my panel to cardlayout panel. I click choose bean, find my
bean and click container pane in "Java Beans". Now it generates code
alright, even makes a getter. But somehow it always marks my bean with
little red icon (white cross in red background). Now did I miss something?
Something got wrong with the code? What does this icon mean?
My best regards,
Vladas
|
|
|
|
|
|
|
|
Re: Select bean, component is red-marked in "Java Beans" pane. [message #89910 is a reply to message #89859] |
Thu, 05 May 2005 13:59  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The problem is right here:
> +++ Warning +++: Thu May 05 15:53:40 EEST 2005 Could not instantiate lt.gemtek.config.editor.ve.bridge.PortPropertyPane with initialization string=null
>
> !ENTRY org.eclipse.ve.java.core 2 0 May 05, 2005 15:53:40.93
> !MESSAGE Exception thrown.
> !STACK 0
> IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
> java.lang.NullPointerException
> at lt.gemtek.config.editor.dom2.QuerySelectedSetting.getSetting (QuerySelectedSetting.java:84)
> at lt.gemtek.config.editor.dom2.QuerySelectedSetting.getValue(Q uerySelectedSetting.java:52)
> at lt.gemtek.config.editor.dom2.SettingTextField.getValue(Setti ngTextField.java:25)
> at lt.gemtek.config.editor.dom2.MutableEditField.<init>(MutableEditField.java:23)
> at lt.gemtek.config.editor.ve.bridge.PortPropertyPane.getDevnam e(PortPropertyPane.java:91)
> at lt.gemtek.config.editor.ve.bridge.PortPropertyPane.initializ e(PortPropertyPane.java:63)
> at lt.gemtek.config.editor.ve.bridge.PortPropertyPane.<init>(PortPropertyPane.java:34)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
You're code in QuerySelectedSetting.getSetting() is throwing the
NullPointerException. Because of that we can't instantiate your
PortPropertyPane. That is why there is red-X on the PortPropertyPane, we
couldn't create one of them.
--
Thanks,
Rich Kulp
|
|
|
|
|
|
Re: Select bean, component is red-marked in "Java Beans" pane. [message #607334 is a reply to message #89618] |
Wed, 04 May 2005 11:26  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Ok, first please append as a file the class that fails. Maybe we can see
if there is some syntax kind of error that we should be handling?
Second, attach the config info from Help->About Eclipse->Configuration.
This will tell us what you configuration is.
--
Thanks,
Rich Kulp
|
|
|
Re: Select bean, component is red-marked in "Java Beans" pane. [message #607347 is a reply to message #89675] |
Thu, 05 May 2005 11:55  |
Eclipse User |
|
|
|
Originally posted by: vladis.gemtek.lt
Sorry if code is messed up. This is under development. BridgePage tries to
put BridgePropertyPane and PortPropertyPane into cardlayout JPanel.
Hmm this is strange. "Java Beans" show switchPane has children
"(portPropertyPane)" and "bridgePropertyPane". Both marked with red icon. If
I add this line into source:
switchPane.add(new JPanel(), "test");
"Java Beans" does not show it as child.
Thanks!
Vladas
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:d5aptj$f8a$2@news.eclipse.org...
> Ok, first please append as a file the class that fails. Maybe we can see
> if there is some syntax kind of error that we should be handling?
>
> Second, attach the config info from Help->About Eclipse->Configuration.
> This will tell us what you configuration is.
>
> --
> Thanks,
> Rich Kulp
|
|
|
Re: Select bean, component is red-marked in "Java Beans" pane. [message #607350 is a reply to message #89859] |
Thu, 05 May 2005 13:59  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The problem is right here:
> +++ Warning +++: Thu May 05 15:53:40 EEST 2005 Could not instantiate lt.gemtek.config.editor.ve.bridge.PortPropertyPane with initialization string=null
>
> !ENTRY org.eclipse.ve.java.core 2 0 May 05, 2005 15:53:40.93
> !MESSAGE Exception thrown.
> !STACK 0
> IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
> java.lang.NullPointerException
> at lt.gemtek.config.editor.dom2.QuerySelectedSetting.getSetting (QuerySelectedSetting.java:84)
> at lt.gemtek.config.editor.dom2.QuerySelectedSetting.getValue(Q uerySelectedSetting.java:52)
> at lt.gemtek.config.editor.dom2.SettingTextField.getValue(Setti ngTextField.java:25)
> at lt.gemtek.config.editor.dom2.MutableEditField.<init>(MutableEditField.java:23)
> at lt.gemtek.config.editor.ve.bridge.PortPropertyPane.getDevnam e(PortPropertyPane.java:91)
> at lt.gemtek.config.editor.ve.bridge.PortPropertyPane.initializ e(PortPropertyPane.java:63)
> at lt.gemtek.config.editor.ve.bridge.PortPropertyPane.<init>(PortPropertyPane.java:34)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
You're code in QuerySelectedSetting.getSetting() is throwing the
NullPointerException. Because of that we can't instantiate your
PortPropertyPane. That is why there is red-X on the PortPropertyPane, we
couldn't create one of them.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.39768 seconds