-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Hibernate and Java Web Start problem (cglib)
PostPosted: Fri Jan 23, 2004 5:06 am 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
Sending Hibernate Objects to a Java Web Start client, I've the following error :

Code:
Caused by: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)

   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source)
   at net.sf.cglib.CodeGenerator.defineClass(CodeGenerator.java:195)
   at net.sf.cglib.CodeGenerator.define(CodeGenerator.java:175)
   at net.sf.cglib.MethodProxy.create(MethodProxy.java:124)


Visibly a problem with cglib proxy ? Any idea ?

Philippe


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 23, 2004 6:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Have you set your application to request all privileges in the JNLP File?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 23, 2004 6:48 am 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
All jars are signed.

In JNLP, I've this :

Code:
   <security>
      <all-permissions/>
   </security>


Philippe


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 23, 2004 6:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well this is clearly a missing reflection permission as you can see here:

Code:
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source)

You have to dig into Security Managers, however i think all-premissions should be sufficient ...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 23, 2004 7:00 am 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
I found some interesting things about JWS at :

http://lopica.sourceforge.net/faq.html


I added this in my static main :
Code:
System.setSecurityManager(null);

now it's ok...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.