Components Palette

Hello,

I was using Sun Java Studio Creator 2 Update 1 yesterday and everything was working fine. I turned on my machine today and noticed after a while that the components (with the label, text field, etc) tab on the palette bar was missing. I dont know where its gone or how to get it back?

Any help getting it back.. please?

On start up of the program i get this error message:

java.lang.NullPointerException

at com.sun.rave.complib.ComponentLibraryManager.getComponentInfos(ComponentLibraryManager.java:868)

at com.sun.rave.complib.ui.ComponentsPanel.initComponentListJtable(ComponentsPanel.java:205)

at com.sun.rave.complib.ui.ComponentsPanel.<init>(ComponentsPanel.java:187)

at com.sun.rave.complib.ui.MainDetailPanel.<init>(MainDetailPanel.java:35)

at com.sun.rave.complib.ui.CompLibManagerPanel.treeCompLibValueChanged(CompLibManagerPanel.java:399)

at com.sun.rave.complib.ui.CompLibManagerPanel.access$800(CompLibManagerPanel.java:43)

at com.sun.rave.complib.ui.CompLibManagerPanel$1.valueChanged(CompLibManagerPanel.java:290)

at javax.swing.JTree.fireValueChanged(JTree.java:2399)

at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:2770)

at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)

at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078)

at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287)

at javax.swing.JTree.setSelectionPaths(JTree.java:1187)

at javax.swing.JTree.setSelectionRows(JTree.java:1260)

at javax.swing.JTree.setSelectionRow(JTree.java:1235)

at com.sun.rave.complib.ui.CompLibManagerPanel.<init>(CompLibManagerPanel.java:179)

at com.sun.rave.toolbox.actions.ComponentLibraryManagerAction.performAction(ComponentLibraryManagerAction.java:34)

at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78)

at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)

at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

at javax.swing.AbstractButton.doClick(AbstractButton.java:302)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)

at java.awt.Component.processMouseEvent(Component.java:5488)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)

at java.awt.Component.processEvent(Component.java:5253)

at java.awt.Container.processEvent(Container.java:1966)

at java.awt.Component.dispatchEventImpl(Component.java:3955)

at java.awt.Container.dispatchEventImpl(Container.java:2024)

at java.awt.Component.dispatchEvent(Component.java:3803)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)

at java.awt.Container.dispatchEventImpl(Container.java:2010)

at java.awt.Window.dispatchEventImpl(Window.java:1774)

at java.awt.Component.dispatchEvent(Component.java:3803)

[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

[4262 byte] By [chuck_norris] at [2007-11-26 8:56:38]
# 1

To reinstate the default palette, you can recreate a default userdirectory. Move out the old one by renaming (don't delete) since we don't know how much customization you may have. If windows, it's at:

c:\documents and settings\<accountname>\.Creator\2_1

Restart Creator normally and it will recreate a new 2_1 user directory and you should see the palette with all components.

hth,

/krys

Creator team

3431603 at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...
# 2

Hi,

I have had exactly the same problem - my palette just disappeared. I also got the Null Pointer error.

I use a Mac and tried renaming the user/Creator folder. It recreated it but my palette is still missing. Is there something else I could try?

Thanks very much in advance,

Emma

EmmaWykes at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...
# 3

Hi EmmaWykes,

I apologize that you're seeing that bizarre problem. :-( If the NPE is different from the one mentioned earlier, please provide us with the details.

Can you also provide your system specs? (os version/ram/jdk version/etc.,)

If I may suggest, can you please nuke the userdir and see if what you were doing earlier is causing the palette to vanish again?

I'll bring the exception to one of our developers attention and see how we can escalate it, if it is indeed a problem with the IDE.

Thank you!

Sandeep J

--Creator Team

skj at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...
# 4
Hi, I wonder if I'm deleting the wrong thing as my data sources are all still there when I reopen creator after deleting the user/Creator directory....?Maybe if I could reset it properly it would reinstate the palette?Thanks, Emma
EmmaWykes at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...
# 5

Hi,

I had to get one so I just exported my data sources, saved my projects elsewhere, removed everything to do with Creator and reinstalled the IDE and am pleased to say that I now have my components back!

Just for your info though. I think the NPE was the same, although I can't be sure.

I'm using Mac OSX Tiger 10.4.7 and JDK 1.5. I have 1.5 GB of RAM on an iMac 1.6GHz G5 processor.

Hope this can be of some help to you and sorry I can't give you more information,

Emma

EmmaWykes at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...
# 6

Hi Emma,

Refer to the following FAQ about the userdir question from your earlier post.

http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/configura tion/user_directory.html

You can also find where it is from Help > About Java Studio Creator > Detail menu.

Anyway, please let me know if this problem happens again.

Thanks!

Sandeep

--Creator Team

skj at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...
# 7

I have given myself another problem.

Someone else originally set up my machine with the org.gjt.mm.mysql.Driver and now that I have reinstalled it can't find it.

I have the mysql-connector-java-3.1.12-bin folder structure unzipped and ready to put somewhere.

Where do I put it to allow Creator to find it?

Thanks!

Emma

EmmaWykes at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...
# 8

It's sorted!

I found that I should create a new data source (although I had already imported my previously exported data sources).

For the benefit of anyone else with the same problem...

Process:

-Import your data source if you have previously exported it.

-Right click Data sources - "Add data source"

-Server type - "Add server type"

-New...locate JDBC jar file (should be in Creator2_1/SunAppServer8/Lib I think)

-Fill in connection details.

-I gave my datasource the same name as my imported datasource and creator knew to update it rather than add a new one.

- Close the wondow (don't cancel)...

That was it.

Thanks!

EmmaWykes at 2007-7-6 22:55:53 > top of Java-index,Development Tools,Java Tools...