473,509 Members | 3,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java security Exception

Hi, I'm writing a program for PPC and I use IBM's Websphere Device
Developper PPRO1.0 java VM. This vm is much smaller and simple than standard
vm as it has to run on small devices as handhelds. And lot of java standard
base classes are not present. I needed package java.nio.* to run stax (a xml
utility) so I copied-pasted from rt.jar the package java.nio.* and imported
it in the classpath of my project. But when I ran my class I got this error:

Exception in thread "main" java.lang.SecurityException:
java.nio.charset.Charset - protected system package 'java.nio.charset'
at java.lang.ClassLoader.checkClassName(ClassLoader.j ava:167)
at java.lang.ClassLoader.defineClass(ClassLoader.java :208)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:109)
at java.net.URLClassLoader.findClassImpl(URLClassLoad er.java:1026)
at java.net.URLClassLoader$4.run(URLClassLoader.java: 557)
at java.security.AccessController.doPrivileged(Access Controller.java:167)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:555)
at
com.ibm.oti.vm.URLSystemClassLoader.findClass(URLS ystemClassLoader.java:32)
at java.lang.ClassLoader.loadClass(ClassLoader.java:6 02)
at
com.ibm.oti.vm.URLSystemClassLoader.loadClass(URLS ystemClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:5 61)
at com.bea.xml.stream.XMLWriterBase.setWriter(XMLWrit erBase.java:54)
at com.bea.xml.stream.XMLWriterBase.<init>(XMLWriterB ase.java:46)
at
com.bea.xml.stream.XMLOutputFactoryBase.createXMLS treamWriter(XMLOutputFactoryBase.java:28)
at
com.bea.xml.stream.XMLOutputFactoryBase.createXMLS treamWriter(XMLOutputFactoryBase.java:37)
at unused.LoadXML.main(LoadXML.java:40)

How can I solve it? Is it concerned with java.policy and java.security
files?
Thanks
Faabio
Jul 17 '05 #1
0 3175

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5418
by: Lorenzo | last post by:
hi you all, first of all apologies for having cross-posted this message but really i did not know where to post it. please let me know what ng you consider the most suitable for the described...
13
4423
by: Ash | last post by:
Hey. Im new to Java, and am having a prroblem with the netbeans IDE. every time i try to import java.awt.* , I can't use any of the methods(like they don't exist). I can compile it fine, but when I...
0
5640
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
2
13504
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with...
2
6927
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
4441
by: henrymania | last post by:
Am writing a code for database backup....by backupservlet is as given below i get the following exception
2
4519
by: cloudy | last post by:
First at all, i'm sorry, i not good in writing english. i want to retrieve a string from my applet via Javascript. I use a method named ReadAll. public String ReadAll(String StrOut, String...
4
14703
by: jmitch89 | last post by:
I don't why I get this error: Exception in thread "main" java.lang.NoClassDefFoundError The statement below works just fine: java -cp...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.