Thread: Error help please?

Results 1 to 4 of 4
  1. #1 Error help please? 
    Registered Member
    Join Date
    May 2017
    Age
    25
    Posts
    222
    Thanks given
    2
    Thanks received
    5
    Rep Power
    0
    I'm confused on why this error is occurring


    Code:
    Loading cache from C:\Users\dalto\tojadspringcache\.
    Code:
    com.thoughtworks.xstream.security.ForbiddenClassException: com.client.ItemBonusDefinition
    	at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)
    	at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)
    	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
    	at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
    	at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
    	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readBareItem(AbstractCollectionConverter.java:131)
    	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:117)
    	at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:99)
    	at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:92)
    	at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:86)
    	at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:81)
    	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)
    	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
    	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)
    	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)
    	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
    	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
    	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)
    	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)
    	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1293)
    	at com.client.Client.loadItemBonusDefinitions(Client.java:7515)
    	at com.client.Client.startUp(Client.java:10990)
    	at com.client.RSApplet.run(RSApplet.java:218)
    	at com.client.Client.run(Client.java:6136)
    	at java.base/java.lang.Thread.run(Thread.java:833)
    Error: loaderror Tojad - Unzipping... 35



    Anyone have any solutions?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Aug 2015
    Posts
    78
    Thanks given
    35
    Thanks received
    25
    Rep Power
    110
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2017
    Age
    25
    Posts
    222
    Thanks given
    2
    Thanks received
    5
    Rep Power
    0
    I don't understand still even after reading that articale?
    Reply With Quote  
     

  4. #4  
    Extreme Donator

    JayArrowz's Avatar
    Join Date
    Sep 2008
    Posts
    104
    Thanks given
    99
    Thanks received
    107
    Rep Power
    810
    Quote Originally Posted by RuneRivals View Post
    I don't understand still even after reading that articale?
    As the article states you are getting a
    Code:
    com.thoughtworks.xstream.security.ForbiddenClassException: com.client.ItemBonusDefinition
    because you do not have com.client.ItemBonusDefinition as an allowed type.

    What you need to do is find where you instaniate the XStream object
    Code:
    XStream xstream = new XStream()
    Then you need to use under it:

    Code:
    xstream.allowTypes(new Class[] {com.client.ItemBonusDefinition.class});
    This should fix your forbidden error.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Error help please
    By Balmora in forum Help
    Replies: 3
    Last Post: 04-12-2009, 09:55 PM
  2. Client error help please :)
    By junior rider in forum Help
    Replies: 2
    Last Post: 03-14-2009, 05:59 AM
  3. 508 webclient error, help please!
    By arman in forum Help
    Replies: 3
    Last Post: 03-04-2009, 05:57 AM
  4. 2 errors?.. help please.
    By blacksh00t in forum Help
    Replies: 9
    Last Post: 02-22-2009, 08:24 PM
  5. Err! error.. help please?
    By Ryan™ in forum Help
    Replies: 6
    Last Post: 02-05-2009, 12:22 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •