I just had the same error IllegalAccessError on WeakMap.cleanup() Debian Etch
and OO 2.0.4
that appeared "suddenly" (it was working before, but I dont really know the
changes on the system)

As advised by former participant in this forum, I copied ridl.jar from
windows OO 2.0.3 to Debian 
in usr/share/java/openoffice/ - but it did not worked at once.
So I shutdown WebSphere and started it again, and then it worked each time I
used it (at least 
to-day)
WebSphere was running since a very long time (and Debian never shuts down)
so I imagine that 
some older classes had been loaded formerly, incompatible with new ones
brought by some change in the system ? Conclusion : I dont know which was
most necessary : restart WebSphere, or replace ridl.jar, or both... and
after a day of trying this and that, I will stay like this.


Mirko Nasato wrote:
> 
> Hi,
> 
> After upgrading the Java/Uno JARs (juh, jurt, ridl and unoil) to the 
> versions shipped with OOo 2.0.4, I started getting some weird 
> IllegalAccessErrors when running some tests that connects to OOo, for 
> example
> 
> testAutoConnect(net.sf.jooreports.openoffice.connection.SocketOpenOfficeConnectionTest)
>   
> Time elapsed: 0.053 sec  <<< ERROR!
> java.lang.IllegalAccessError: tried to access field 
> com.sun.star.lib.util.WeakMap$Entry.key from class 
> com.sun.star.lib.util.WeakMap
>         at com.sun.star.lib.util.WeakMap.cleanUp(WeakMap.java)
>         at com.sun.star.lib.util.WeakMap.put(WeakMap.java)
>         at com.sun.star.uno.UnoRuntime.getBridge(UnoRuntime.java)
>         at com.sun.star.uno.UnoRuntime.getBridgeByName(UnoRuntime.java)
>         at 
> com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java)
>         at 
> net.sf.jooreports.openoffice.connection.AbstractOpenOfficeConnection.connect(AbstractOpenOfficeConnection.java:64)
>         at 
> net.sf.jooreports.openoffice.connection.AbstractOpenOfficeConnection.getService(AbstractOpenOfficeConnection.java:111)
>         at 
> net.sf.jooreports.openoffice.connection.AbstractOpenOfficeConnection.getDesktop(AbstractOpenOfficeConnection.java:120)
>         at 
> net.sf.jooreports.openoffice.connection.SocketOpenOfficeConnectionTest.testAutoConnect(SocketOpenOfficeConnectionTest.java:31)
> 
> they seem to happen when I try to reconnect to OOo right after 
> disconnecting, like if there is a dirty object reference somewhere from 
> the previous connection or something like that.
> 
> If I revert the JARs back to 2.0.3 (even though I'm connecting to OOo 
> 2.0.4) everything works fine again.
> 
> Class WeakMap doesn't seem to have changed in a long time
> 
>   
> http://udk.openoffice.org/source/browse/udk/ridljar/com/sun/star/lib/util/WeakMap.java
> 
> While I'm still trying to isolate the problem, if this error rings a 
> bell to anybody help would be greatly appreciated.
> 
> Thanks
> 
> Mirko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-udk-dev--IllegalAccessError-in-WeakMap-tp7451826p20581516.html
Sent from the openoffice - udk dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to