Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTidy and java.lang.IllegalAccessError

 
Tony Mandatori
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tony Mandatori
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
amit-walia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic