Forums Register Login

JTidy and java.lang.IllegalAccessError

+Pie Number of slices to send: Send
When I rin my application as a standard Java application things work fine. However, when I run it in Java Web Start, I get the following error:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.casebank.spotlight.app.spotlightAction.ActionFactory.createAction(ActionFactory.java:49)
at com.casebank.spotlight.gui.SpotlightFrame$1.construct(SpotlightFrame.java:78)
at com.casebank.spotlight.gui.SwingWorker$2.run(SwingWorker.java:109)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalAccessError: try to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML
at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
at org.w3c.tidy.Tidy.parse(Tidy.java)
at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
Any ideas?
+Pie Number of slices to send: Send
It might help if you could poste the code at this line. (I suppose this is one of your classes?!)


com.casebank.spotlight.app.spotlightAction.ActionFactory.createAction(ActionFactory.java:49)


JWS has more security restrictions than a "normally" started Java app. Probably you are accessing resources that underly these restrictions.
Chantal
+Pie Number of slices to send: Send
I force the user to agree to allowing all permissions on initial startup.
I simply had to recompile the jar file and things work well now.
Thanks.
+Pie Number of slices to send: Send
hi thr
how canu force the user to agree upon all the permissions . well i am new to java so plz tell how can i do it
thanx
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1236 times.
Similar Threads
can't run jar file in win xp
Facing problem while running Java Applets
RAD V7 problem with portlets
sequencer = MidiSystem.getSequencer();
java.lang.IndexOutOfBoundsException on one of our two presentation servers after getColumnClass()
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:47:51.