Jump to content
We've recently updated our Privacy Statement, available here ×

HELP! AccessControlException using WebStart


2005 IR Help

Recommended Posts

By: Rich Johnson - rwj999

HELP! AccessControlException using WebStart

2004-05-05 12:09

Hi All,

 

If anyone could give me some insight on this I would greatly appreciate it.

 

Our server code generates a JasperPrint object and then serializes it to XML using JasperExportManager.exportReportToXmlStream(..)

 

The client receives the XML and rebuilds the JasperPrint object so it can be displayed in a preview window on the client.

 

...

String reportXML = URLDecoder.decode(node.getText(), "UTF-8");

byte[] xmlstuff = reportXML.getBytes();

InputStream is = new ByteArrayInputStream(xmlstuff);

JasperPrint jp = JRPrintXmlLoader.load(is);

...

 

When JRPrintXmlLoader.load(is) is called, I get an AccessControlException:

access denied (java.util.PropertyPermission jasper.reports.export.xml.validation read)

 

I did a little digging and I found that the JRPrintXmlLoader.load(is) method will eventually call prepareDigester() which has the following line of code:

String validation = System.getProperty("jasper.reports.export.xml.validation");

 

I *THINK* this is what I'm getting the exception from. I'm assuming my jnlp doesn't have security to get this property.

 

My question is:

What do I need to set to get this working?

 

I figure it's some sort of security setting. I tried signing the jasperreports jar file and setting

security>

<all-permissions/>

</security>

but that didn't work.

 

Please note that I have no trouble generating and displaying reports in the development environment. It's only when we deploy to a jnlp when we get problems.

 

Any help would be greatly appreciated. I'm starting to pull my hair out.

 

 

 

 

 

By: Druta - druta

RE: HELP! AccessControlException using WebStart

2004-05-31 06:39

Hi Rich,

I had also some security problems with JavaWebStart, and i try to set the requested properties in the java.policy-File from JavaWebStart.

Best regards, Eugen.

P.S Sometimes our customer is not very happy changing the security level.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...