Bridge.RegisterAssembly()

135 views
Skip to first unread message

Alain Durand

unread,
Jan 9, 2015, 8:52:18 AM1/9/15
to jni...@googlegroups.com
Hi!

I'd like to know what is supposed to do "Bridge.RegisterAssembly(objType.Assembly).

I developped an application in C# using some Java code thanks to JNI4Net, but when i try to do the same thing in an other project it doesn't work.
This is an eCopy Sharescan connector project. (I create a connector to implement it in Sharescan)

The program stops  with Bridge.RegisterAssembly(objType.Assembly) and i don't understand why.
ShareScan Manager return the "error":  "com.ecervo.connection.docushare.Connection"  which is the class developped in java but it is in the project (connection.generated.cs)

I used it in a Windows application project and it worked fine, i don't know how to correct this error.
How could i get logs?

Have you an idea?

Thanks a lot
2015-01-09_14h42_29.png
2015-01-09_14h46_16.png

Alain Durand

unread,
Jan 9, 2015, 10:57:49 AM1/9/15
to jni...@googlegroups.com
I found the Sharescan logs.
The problem is "can't load java class"
Nevertheless the files are in good paths. To be sure of that, i've just try to creta a new project (windows ap) with the same config and it worked well.
What could be different with the project sharescan?
Is the 2 processes could be a problem ?

Thanks for your answer



2015-01-09_16h53_43.png

Pavel Šavara

unread,
Jan 9, 2015, 11:02:07 AM1/9/15
to jni...@googlegroups.com
Please provide jni4net log to the console (verbose, debug).
Also check this list

--
--
You received this message because you are subscribed to jni...@googlegroups.com
http://groups.google.com/group/jni4net?hl=en-GB?hl=en-GB
http://jni4net.sf.net/

---
You received this message because you are subscribed to the Google Groups "jni4net" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jni4net+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alain Durand

unread,
Jan 12, 2015, 4:38:09 AM1/12/15
to jni...@googlegroups.com
Here is the error in the logs.
 I don't have more since i can't debug from the IDE.
Have you ever seen this case?

Thanks
2015-01-12_10h20_03.png

Alain Durand

unread,
Jan 12, 2015, 4:55:07 AM1/12/15
to jni...@googlegroups.com
Here are sharescan logs
sharescan_logs.txt

Pavel Šavara

unread,
Jan 12, 2015, 5:05:40 AM1/12/15
to jni...@googlegroups.com
That's not the log we are looking for. It would be written into console of the process. 
I guess that's not ideal for your scenario.

In any case I suspect that your JVM is loading jars from wrong directory or that the jars have native dependencies (DLLs) which could not be found on path of the process.

On Mon, Jan 12, 2015 at 10:55 AM, Alain Durand <alaindura...@gmail.com> wrote:
Here are sharescan logs

Margaux Cartier

unread,
Jan 12, 2015, 5:34:45 AM1/12/15
to jni...@googlegroups.com
Yeah, that's what i thought too. But i've pasted my libs and jars "everywhere".
Have you another idea? Could the classLoader be the problem?
 
What was the solution to his problem?
 
Reply all
Reply to author
Forward
0 new messages