error in integration

User 8170b160d9

29-08-2008 00:26:33

.net 3.5


jdk 1.5 update 11


marvin 5.1





error message


System.Exception was unhandled


Message=".NET-side stack trace:\n\n at com.jnbridge.jnbproxy.ExceptionFactory.throwException(JNBException e, Hashtable objMap)\r\n at chemaxon.marvin.jnbadapters.MSketchAdapter..ctor()\r\n at InventoryWorkstation.MSketchControl.getMSketch() in F:\\App Dev\\InventoryWorkstation\\InventoryWorkstation\\MSketchControl.cs:line 105\r\n at InventoryWorkstation.MSketchControl.OnPaint(PaintEventArgs e) in F:\\App Dev\\InventoryWorkstation\\InventoryWorkstation\\MSketchControl.cs:line 89\n\nJava-side stack trace:\n\njava.lang.ClassNotFoundException: chemaxon.marvin.jnbadapters.MSketchAdapter\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:200)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:188)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:306)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:251)\r\n\tat java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Class.java:242)\r\n\tat com.jnbridge.jnbcore.ClassRegistry.getClass(Unknown Source)\r\n\tat com.jnbridge.jnbcore.JNBDispatcher.construct(Unknown Source)\r\n\tat com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)\r\n\tat com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.a(Unknown Source)\r\n\tat com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)\r\n"


Source="InventoryWorkstation"


StackTrace:


at InventoryWorkstation.MSketchControl.OnPaint(PaintEventArgs e) in F:\App Dev\InventoryWorkstation\InventoryWorkstation\MSketchControl.cs:line 94


at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)


at System.Windows.Forms.Control.WmPaint(Message& m)


at System.Windows.Forms.Control.WndProc(Message& m)


at System.Windows.Forms.ScrollableControl.WndProc(Message& m)


at System.Windows.Forms.ContainerControl.WndProc(Message& m)


at System.Windows.Forms.UserControl.WndProc(Message& m)


at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)


at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)


at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)


at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)


at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)


at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)


at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)


at System.Windows.Forms.Form.ShowDialog()


at InventoryWorkstation.FormNewChemicals.structureButton_Click(Object sender, EventArgs e) in F:\App Dev\InventoryWorkstation\InventoryWorkstation\FormNewChemicals.cs:line 145


at System.Windows.Forms.Control.OnClick(EventArgs e)


at Infragistics.Win.UltraControlBase.OnClick(EventArgs e)


at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e)


at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e)


at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)


at System.Windows.Forms.Control.WndProc(Message& m)


at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)


at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)


at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)


at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)


at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)


at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)


at System.Windows.Forms.Application.Run(Form mainForm)


at InventoryWorkstation.Program.Main() in F:\App Dev\InventoryWorkstation\InventoryWorkstation\Program.cs:line 18


at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)


at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)


at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()


at System.Threading.ThreadHelper.ThreadStart_Context(Object state)


at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)


at System.Threading.ThreadHelper.ThreadStart()


InnerException:

User 8170b160d9

29-08-2008 22:14:27

.net 3.5


jdk 1.5 update 11


marvin 5.1





....








Can anyone help me with that? it's strange. cause I have successfully compiled before. and I don't know what's wrong with the configulation?

ChemAxon aa7c50abf8

31-08-2008 19:37:12

The stack trace in your first posting ends with InnerException:. I'd expect there to be some description of the inner exception, plus (at least) an extra line with the type and message of the InnerException. Please, could you post them as well?

User 8170b160d9

01-09-2008 13:10:24

pkovacs wrote:
The stack trace in your first posting ends with InnerException:. I'd expect there to be some description of the inner exception, plus (at least) an extra line with the type and message of the InnerException. Please, could you post them as well?
I found some info like "Could not find schema information for the element 'jnbridge'." in app.config, but I don't know why?

ChemAxon aa7c50abf8

02-09-2008 09:55:40

I suggest to review the following forum topic as the poster there had an identical error message about missing jnbridge schema definition:


http://www.chemaxon.com/forum/ftopic2729.html

User 8170b160d9

04-09-2008 15:46:19

pkovacs wrote:
I suggest to review the following forum topic as the poster there had an identical error message about missing jnbridge schema definition:


http://www.chemaxon.com/forum/ftopic2729.html
I forgot to copy 3 .jar to .exe directory. if I did so, it's ok.





Many thanks!

User 3c1c1af6fb

30-09-2008 15:03:51

I did copy the all .jar in .exe folder and re-build the whole solution, but I am still getting this error. What I am missing??





System.IO.FileNotFoundException was unhandled


Message="Could not load file or assembly 'marvin5.1.1_JnbProxies_2.0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."


Source="Windows1"


FileName="marvin5.1.1_JnbProxies_2.0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"


FusionLog="=== Pre-bind state information ===\r\nLOG: User = PSYCHOGENICS\\ssrivastav\r\nLOG: DisplayName = marvin5.1.1_JnbProxies_2.0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Projects/Windows1/Windows1/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : Windows1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: Using application configuration file: C:\\Projects\\Windows1\\Windows1\\bin\\Debug\\Windows1.vshost.exe.config\r\nLOG: Using machine configuration file from C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nLOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).\r\nLOG: Attempting download of new URL file:///C:/Projects/Windows1/Windows1/bin/Debug/marvin5.1.1_JnbProxies_2.0.DLL.\r\nLOG: Attempting download of new URL file:///C:/Projects/Windows1/Windows1/bin/Debug/marvin5.1.1_JnbProxies_2.0/marvin5.1.1_JnbProxies_2.0.DLL.\r\nLOG: Attempting download of new URL file:///C:/Projects/Windows1/Windows1/bin/Debug/marvin5.1.1_JnbProxies_2.0.EXE.\r\nLOG: Attempting download of new URL file:///C:/Projects/Windows1/Windows1/bin/Debug/marvin5.1.1_JnbProxies_2.0/marvin5.1.1_JnbProxies_2.0.EXE.\r\n"


StackTrace:


at Windows1.Program.Main()


at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)


at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)


at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()


at System.Threading.ThreadHelper.ThreadStart_Context(Object state)


at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)


at System.Threading.ThreadHelper.ThreadStart()


InnerException:

ChemAxon 0e37943a96

30-09-2008 15:17:53

You should also copy marvin5.1.1_JnbProxies_2.0.dll there.


From the exception it seems that it is missing that.





Tamas.

User 3c1c1af6fb

30-09-2008 16:53:58

tpelcz wrote:
You should also copy marvin5.1.1_JnbProxies_2.0.dll there.


From the exception it seems that it is missing that.





Tamas.
thanks, that's helps. I did have the file, but its default name was


marvin5[1].1.1_JnbProxies_2.0.dll instead of marvin5.1.1_JnbProxies_2.0.dll, once I rename it, its works. I get some other error, but I found the solutions in your earlier post.





Thank you so much.