And somewhat related, I can't seem to get the jsvLoadInline method to
work.. has that been fully implemented yet? When I use:
Jmol.jsvLoadInline(jsvApplet, "##TITLE = Predicted 1H NMR spectrum in
metanol (CD3OD)\n##JCAMP-DX= 5.00.....
I get the following stacktrace in my browser console:
>>>
JSVGraphSet 1 nSpectra = 1
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
sun.applet.PluginAppletSecurityContext$4.run(PluginAppletSecurityContext.java:670)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.applet.PluginAppletSecurityContext.handleMessage(PluginAppletSecurityContext.java:667)
at
sun.applet.AppletSecurityContextManager.handleMessage(AppletSecurityContextManager.java:70)
at
sun.applet.PluginStreamHandler.handleMessage(PluginStreamHandler.java:235)
at
sun.applet.PluginMessageHandlerWorker.run(PluginMessageHandlerWorker.java:78)
Caused by: java.lang.NullPointerException
at jspecview.util.FileManager.isURL(FileManager.java:123)
at jspecview.util.FileManager.getName(FileManager.java:239)
at jspecview.common.JSVTree.createTree(JSVTree.java:183)
at jspecview.common.JSVTree.splitSpectra(JSVTree.java:377)
at jspecview.common.JSVTree.openDataOrFile(JSVTree.java:338)
at
jspecview.applet.JSVAppletPrivate.openDataOrFile(JSVAppletPrivate.java:774)
at jspecview.applet.JSVAppletPrivate.loadInline(JSVAppletPrivate.java:303)
at jspecview.applet.JSVApplet.loadInline(JSVApplet.java:163)
... 10 more
JSVPanel NMR Predicted 1H NMR spectrum in metanol (CD3OD) finalized
Error on Java side: null
Browsing the JspecView code I can't pinpoint exactly what's happening, but
it starts with this call in JSVAppletPrivate#loadInline:
openDataOrFile(data, null, null, null, -1, -1, true);
Can someone help me setup the inline loading of JDX files from JavaScript
using the new Jmol JavaScript files to tie Jmol and JSpecView together?
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users