Hi folks,
I'm using Jmol embedded in a Java application I'm developing, but have
some troubles while loading a PDB file (any PDB file) with the
instruction viewer.openFile("FILENAME");

Here is what I get:
FileManager opening /archivio2/rionda/uni/3d/1grz.pdb
Exception in thread "Thread-2" java.lang.NullPointerException
at org.jmol.viewer.Viewer.getModelCount(Viewer.java:2077)
at org.jmol.viewer.Eval.load(Eval.java:4135)
at org.jmol.viewer.Eval.instructionDispatchLoop(Eval.java:944)
at org.jmol.viewer.Eval.runEval(Eval.java:275)
at org.jmol.viewer.Viewer.evalStringWaitStatus(Viewer.java:3376)
at org.jmol.viewer.ScriptManager.runScript(ScriptManager.java:135)
at org.jmol.viewer.ScriptManager.runNextScript(ScriptManager.java:124)
at org.jmol.viewer.ScriptManager$ScriptQueueRunnable.run(ScriptManager.java:152)
at java.lang.Thread.run(Thread.java:595)

Any suggestion ?
Thanks in advance and
best regards
-- 
Matteo Riondato
FreeBSD Committer (http://www.FreeBSD.org)
FreeSBIE Developer (http://www.FreeSBIE.org)
GUFI Staff Member (http://www.GUFI.org)

Attachment: pgpCHuuHiXSxo.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to