Thread: RuneSource [Azure] Running Error

Results 1 to 5 of 5
  1. #1 RuneSource [Azure] Running Error 
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    425
    Thanks given
    46
    Thanks received
    17
    Rep Power
    95
    Base:RuneSource [Azure]
    Problem: I get this when running
    Errors(Compiling Errors):
    Spoiler for Option:

    Starting Azure on localhost/127.0.0.1:43594...
    Loading packets...
    Loaded 42 packets.
    Loading item definitions...
    Loading 11791 item definitions.
    Loading equipment definitions...
    Loaded 941 equipment definitions
    Loading npc definitions...
    Loaded 5 npc definitions.
    Loading npc spawns...
    Loaded 5 npc spawns
    Loading shops...
    Loaded 1 shop definitions.
    Loading teleports...
    Loaded 9 teleport definitions
    Loading dialogues...
    Loaded 9 dialogue definitions.
    Loading options...
    com.thoughtworks.xstream.converters.ConversionExce ption: No enum const class com
    .rs2.model.content.DialogueManager$Options$Action. GIVE_SLAYERTASK : No enum cons
    t class com.rs2.model.content.DialogueManager$Options$Acti on.GIVE_SLAYERTASK
    ---- Debugging information ----
    message : No enum const class com.rs2.model.content.DialogueManager$
    Options$Action.GIVE_SLAYERTASK
    cause-exception : java.lang.IllegalArgumentException
    cause-message : No enum const class com.rs2.model.content.DialogueManager$
    Options$Action.GIVE_SLAYERTASK
    class : java.util.ArrayList
    required-type : com.rs2.model.content.DialogueManager$Options$Acti on
    path : /list/option[3]/action
    line number : 31
    -------------------------------
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vert(TreeUnmarshall
    er.java:89)
    at com.thoughtworks.xstream.core.AbstractReferenceUnm arshaller.convert(A
    bstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
    arshaller.java:76)
    at com.thoughtworks.xstream.converters.reflection.Abs tractReflectionConv
    erter.unmarshallField(AbstractReflectionConverter. java:246)
    at com.thoughtworks.xstream.converters.reflection.Abs tractReflectionConv
    erter.doUnmarshal(AbstractReflectionConverter.java :218)
    at com.thoughtworks.xstream.converters.reflection.Abs tractReflectionConv
    erter.unmarshal(AbstractReflectionConverter.java:1 62)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vert(TreeUnmarshall
    er.java:82)
    at com.thoughtworks.xstream.core.AbstractReferenceUnm arshaller.convert(A
    bstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
    arshaller.java:76)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
    arshaller.java:60)
    at com.thoughtworks.xstream.converters.collections.Ab stractCollectionCon
    verter.readItem(AbstractCollectionConverter.java:7 1)
    at com.thoughtworks.xstream.converters.collections.Co llectionConverter.p
    opulateCollection(CollectionConverter.java:68)
    at com.thoughtworks.xstream.converters.collections.Co llectionConverter.u
    nmarshal(CollectionConverter.java:61)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vert(TreeUnmarshall
    er.java:82)
    at com.thoughtworks.xstream.core.AbstractReferenceUnm arshaller.convert(A
    bstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
    arshaller.java:76)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
    arshaller.java:60)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.sta rt(TreeUnmarshaller
    .java:137)
    at com.thoughtworks.xstream.core.AbstractTreeMarshall ingStrategy.unmarsh
    al(AbstractTreeMarshallingStrategy.java:33)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:923)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:909)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.j ava:861)
    at com.rs2.model.content.DialogueManager.loadOptions( DialogueManager.jav
    a:43)
    at com.rs2.util.XStreamUtil.loadAllFiles(XStreamUtil. java:69)
    at com.rs2.Server.run(Server.java:107)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalArgumentException: No enum const class com.rs2.model
    .content.DialogueManager$Options$Action.GIVE_SLAYE RTASK
    at java.lang.Enum.valueOf(Unknown Source)
    at com.thoughtworks.xstream.converters.enums.EnumConv erter.unmarshal(Enu
    mConverter.java:47)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.con vert(TreeUnmarshall
    er.java:82)
    ... 25 more
    Press any key to continue . . .

    Other Information/Media(Pictures, etc):
    None yet
    Reply With Quote  
     

  2. #2  
    Renown Programmer

    Join Date
    Dec 2010
    Posts
    2,876
    Thanks given
    508
    Thanks received
    1,898
    Rep Power
    5000
    The enum "Action" doesn't contain GIVE_SLAYERTASK obviously resulting in an exception.

    Self-explanatory.
    never talk to me or my wife's son ever again
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    425
    Thanks given
    46
    Thanks received
    17
    Rep Power
    95
    Quote Originally Posted by Nihil View Post
    The enum "Action" doesn't contain GIVE_SLAYERTASK obviously resulting in an exception.

    Self-explanatory.
    Whats the fix?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jan 2008
    Age
    31
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    You will see this in DialogueManager class:

    Code:
    public enum Action {
    			TELEPORT, OPEN_SHOP, OPEN_BANK, NEXT_OPTION, CLOSE, SHOW_DIALOGUE, YES_NO,
    			ADD_ITEM
    		}
    after ADD_ITEM do this:

    Code:
    , GIVE_SLAYER_TASK
    So now:

    Code:
    public enum Action {
    			TELEPORT, OPEN_SHOP, OPEN_BANK, NEXT_OPTION, CLOSE, SHOW_DIALOGUE, YES_NO,
    			ADD_ITEM, GIVE_SLAYER_TASK
    		}
    Also if that is already added make sure the spelling of the enum variable is spelled correctly in the xml file.

    Also it shouldn't be GIVE_SLAYERTASK more like GIVE_SLAYER_TASK so the naming looks neater.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    425
    Thanks given
    46
    Thanks received
    17
    Rep Power
    95
    ^ Didn't work..

    & the XML file is just right also. Can you teamview & see if you can fix?
    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. Azure/Runesource Tutorials/Snippets List
    By Akeid in forum Tutorials
    Replies: 37
    Last Post: 01-03-2013, 07:27 AM
  2. RuneSource/Azure bug fixes.
    By Ashen Sky in forum Snippets
    Replies: 12
    Last Post: 08-01-2012, 09:28 PM
  3. [RuneSource]: How to compile and run Azure 317
    By blakeman8192 in forum Tutorials
    Replies: 14
    Last Post: 12-17-2011, 07:53 PM
  4. [RuneSource] Azure
    By Ashen Sky in forum Downloads
    Replies: 92
    Last Post: 09-13-2011, 05:40 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
  •