Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For registration and login issues contact website support.

Support Ticket System is replacing forum

This forum was converted into a searchable archive. You cannot add posts here any more. For support please use our new Ticket System.

Create your first ticket
Java.lang.Nullpointerexception error saving files
To watch this topic for replies  Register (enables digests) or give email address:
This topic is locked: you cannot edit posts or make replies.
Display posts from previous:   
    View previous topic :: View next topic    
Author Message
Thilagavathi

Joined: 27 May 2008
Posts: 1

View user's profile

Back to top
Link to postPosted: Fri Nov 28, 2008 7:39 amPost subject: Java.lang.Nullpointerexception error saving files Reply with quote

Thilagavathi Ramasamy wrote:
Hi,
I am using Instant Jchem for removing the duplicates from the large
database. When i tried to save the file it gave the following error

A java.lang.NullPointerException exception has occurred.
Click Show Details or see the messages.log file located in
your /home/thilagavathi/.instantjchem/ws_www.chemaxon.com_stable/var/log
folder.

When i clicked show details following message appears

------------------------------------------------------------
java.lang.NullPointerException
at
com.im.ijc.io.impl.exporter.SingleFieldExporter.isStructureDataTree(SingleFieldExporter.java:142)
at
com.im.ijc.io.impl.exporter.InchiExporter.supports
(InchiExporter.java:41)
at
com.im.ijc.io.export.ExportToFileVisualPanel2.getFileChooser(ExportToFileVisualPanel2.java:87)
at
com.im.ijc.io.export.ExportToFileVisualPanel2.setData(ExportToFileVisualPanel2.java:56)
at
com.im.ijc.io.export.ExportToFileWizardPanel2.readSettings(ExportToFileWizardPanel2.java:113)
at
org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:745)
at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:720)
at org.openide.WizardDescriptor.initialize(WizardDescriptor.java:428)
at org.openide.NotifyDescriptor.getterCalled(NotifyDescriptor.java:260)
at org.openide.DialogDescriptor.isModal(DialogDescriptor.java:319)
at org.netbeans.core.windows.services.NbDialog.<init>(NbDialog.java:64)
at org.netbeans.core.windows.services.DialogDisplayerImpl
$1.run(DialogDisplayerImpl.java:130)
at org.netbeans.core.windows.services.DialogDisplayerImpl
$1.run(DialogDisplayerImpl.java:106)
[catch] at org.openide.util.Mutex$1AWTWorker.run(Mutex.java:1238)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
---------------------------------------------------------------------
I am not able to save any of the files. Could you please help me how to
debug this problem?
Thanks, Thilagavathi
Tim
ChemAxon personnel
Joined: 05 Oct 2004
Posts: 1703

View user's profile

Back to top
Link to postPosted: Fri Nov 28, 2008 9:28 amPost subject: Reply with quote

Sorry, I am unable to reproduce this.
Could you explain a bit more what you are doing.

I assume you have imported data into a JChem structure entity (table) with the duplicate filtering option turned on and are now trying to export those imported structures to a file in InChi format?

Is so I have just tried doing this export in the latest IJC and it works OK.
Could you explain if your are doing anything different?

Also, could you confirm what version of IJC you are using.
Use the Help -> About box and copy and paste the information from there.

Many thanks

Tim
Tim
ChemAxon personnel
Joined: 05 Oct 2004
Posts: 1703

View user's profile

Back to top
Link to postPosted: Fri Nov 28, 2008 10:28 amPost subject: Reply with quote

On further investigation we have identified how this can happen.
It looks like you are exporting from the entity in the schema editor, and there is the bug you describe if you do this. We will fix this.

There is a simple workaround.
You can export from the data tree in the project explorer instead.
This was almost certainly created when you imported your data, bu tit if is nott there you can create it usign the New Data Tree option from the right click menu of the schema node, adn then select the appropriate entity.

Once you have the data tree use the Export to file.. option from its right click menu.

Thanks

Tim
Tim
ChemAxon personnel
Joined: 05 Oct 2004
Posts: 1703

View user's profile

Back to top
Link to postPosted: Fri Dec 26, 2008 10:39 amPost subject: Reply with quote

This problem is now fixed in IJC 2.4.1. Export can be used from the schema editor as well as from the various elements in the project explorer, or from any form or grid view.

Tim
This topic is locked: you cannot edit posts or make replies.
Page 1 of 1


To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum