To be clear, you're on a Mac/Unix OS, correct? If so, which version, etc?
|
So I set-up my Dementhium based source on my VPS and I get this huge error and I really have no clue.
edit: Using, Linux, CentOS 6
Code:[root@server Serverfiles]# #!/bin/bash [root@server Serverfiles]# screen -S RSPS java -server -Xmx512m -cp bin:lib/* org.dementhium.RS2ServerBootstrap f^H[Cache] Loading cache... -^H[Cache] Loaded cache! [MapXTEA] Loaded 2213 map XTEA key(s) [PacketManager] Loading packet handlers... [PacketManager] Loaded 60 packet handlers. [World] Loading World... [ClanManager] Loading clans.... com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor class : java.util.HashMap required-type : org.dementhium.content.clans.Clan path : /map/entry/org.dementhium.content.clans.Clan line number : 4 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:77) at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:79) at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845) at org.dementhium.io.XMLHandler.fromXML(XMLHandler.java:57) at org.dementhium.content.clans.ClanManager.<init>(ClanManager.java:23) at org.dementhium.model.World.load(World.java:114) at org.dementhium.RS2ServerBootstrap.main(RS2ServerBootstrap.java:42) Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:279) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:149) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) ... 19 more [ClanManager] Loaded 0 clans. [AreaManager] Loading areas... com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.de menthium.content.areas.impl.CircularArea as it does not have a no-args construct or : Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor class : java.util.ArrayList required-type : org.dementhium.content.areas.impl.CircularArea path : /list/circle line number : 4 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:77) at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:68) at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845) at org.dementhium.io.XMLHandler.fromXML(XMLHandler.java:57) at org.dementhium.content.areas.AreaManager.<init>(AreaManager.java:21) at org.dementhium.model.World.load(World.java:115) at org.dementhium.RS2ServerBootstrap.main(RS2ServerBootstrap.java:42) Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:279) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:149) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) ... 19 more Exception in thread "main" java.lang.NullPointerException at org.dementhium.content.areas.AreaManager.<init>(AreaManager.java:25) at org.dementhium.model.World.load(World.java:115) at org.dementhium.RS2ServerBootstrap.main(RS2ServerBootstrap.java:42) [screen is terminating] [root@server Serverfiles]# free -m total used free shared buffers cached Mem: 497 428 69 0 24 359 -/+ buffers/cache: 44 453 Swap: 1023 0 1023 [root@server Serverfiles]# #!/bin/bash [root@server Serverfiles]# java -server -classpath bin:lib/* org.dementhium.RS2ServerBootstrap [Cache] Loading cache... [Cache] Loaded cache! [MapXTEA] Loaded 2213 map XTEA key(s) [PacketManager] Loading packet handlers... [PacketManager] Loaded 60 packet handlers. [World] Loading World... [ClanManager] Loading clans.... com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor class : java.util.HashMap required-type : org.dementhium.content.clans.Clan path : /map/entry/org.dementhium.content.clans.Clan line number : 4 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:77) at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:79) at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845) at org.dementhium.io.XMLHandler.fromXML(XMLHandler.java:57) at org.dementhium.content.clans.ClanManager.<init>(ClanManager.java:23) at org.dementhium.model.World.load(World.java:114) at org.dementhium.RS2ServerBootstrap.main(RS2ServerBootstrap.java:42) Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:279) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:149) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) ... 19 more [ClanManager] Loaded 0 clans. [AreaManager] Loading areas... com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor : Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor class : java.util.ArrayList required-type : org.dementhium.content.areas.impl.CircularArea path : /list/circle line number : 4 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:77) at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:68) at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:907) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:893) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845) at org.dementhium.io.XMLHandler.fromXML(XMLHandler.java:57) at org.dementhium.content.areas.AreaManager.<init>(AreaManager.java:21) at org.dementhium.model.World.load(World.java:115) at org.dementhium.RS2ServerBootstrap.main(RS2ServerBootstrap.java:42) Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.dementhium.content.areas.impl.CircularArea as it does not have a no-args constructor at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:279) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:149) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) ... 19 more Exception in thread "main" java.lang.NullPointerException at org.dementhium.content.areas.AreaManager.<init>(AreaManager.java:25) at org.dementhium.model.World.load(World.java:115) at org.dementhium.RS2ServerBootstrap.main(RS2ServerBootstrap.java:42)
To be clear, you're on a Mac/Unix OS, correct? If so, which version, etc?
Go through the code and open up the places that are giving these errors in Eclipse (for example):
Good luck man...Code:com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct org.dementhium.content.clans.Clan as it does not have a no-args constructor class : java.util.HashMap required-type : org.dementhium.content.clans.Clan path : /map/entry/org.dementhium.content.clans.Clan <--- This kind of shit right here line number : 4 -------------------------------
Yeah this is a problem cause the server was made with an older version of Java.
Go into the class that gives the error and put this for the object;
for example it says your clan class now so you should put in that classCode:public Object() { }
Code:public Clan() { }
My clan class being this ;
where would it go? ;sÊþº¾ 3 à
6 ƒ 5 „ 5 … 5 † 5 ‡ 5 ˆ 5 ‰
5 Š
5 ‹ 5 Œ
ƒ 5 Ž
ƒ 5
‘
’
“ ”
•
– —
˜
+ ™
š ›
+ œ ž
Ÿ * ¡
¢ 6î€ £
+ ¤
¥ 5 ¦ § ¨ © ª « ¬ « * ®
¯ °
¯ ± 5 ² ³ ´ µ ¶
·
5 ¸ ¹ º roomName Ljava/lang/String; roomOwner joinReq I talkReq kickReq lootReq ranks Ljava/util/HashMap; Signature 7Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Byte;>; banned 7Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Long;>; members Ljava/util/List; 6Ljava/util/List<Lorg/dementhium/model/player/Player;>; lootsharing Z coinSharing <init> '(Ljava/lang/String;Ljava/lang/StringV Code LineNumberTable setTransient ()V
StackMapTable getName ()Ljava/lang/String; getOwner rankUser (Ljava/lang/String;I)V getRank (Ljava/lang/StringI 6(Lorg/dementhium/model/player/PlayerLjava/lang/Byte; canJoin '(Lorg/dementhium/model/player/PlayerZ canTalk toggleLootshare ¹ » ¼ ® toggleCoinsharing addMember '(Lorg/dementhium/model/player/PlayerV setName (Ljava/lang/StringV
getMembers ()Ljava/util/List; 8()Ljava/util/List<Lorg/dementhium/model/player/Player;>; removeMember getRanks ()Ljava/util/HashMap; 9()Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Byte;>; setLootsharing (Z)V
isLootsharing ()Z
setTalkReq (I)V
getTalkReq ()I
setJoinReq
getJoinReq
getKickReq
isCoinSharing banMember handleOption (II)V
setLootReq
getLootReq canShareLoot canBan
SourceFile Clan.java K P : ; < ; = ; > ; 7 8 9 8 O P n o E F java/util/ArrayList ? @ java/util/HashMap C @ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç java/lang/Byte È É Ê S » Ë Å Ì u Í Î Å Ï Ð Ñ java/lang/Long Ò Ñ 'You have been banned from this channel. Ó f Ô Ç H I Lootshare has been enabled. Lootshare has been disabled. Õ Ö ¼ × q Ø Ù "org/dementhium/model/player/Player Ú Ó Û Ü Ý J I Coinshare has been enabled. Coinshare has been disabled. Þ Å Ô Å ½ ß W Y !org/dementhium/content/clans/Clan java/lang/Object java/lang/String java/util/Iterator valueOf (B)Ljava/lang/Byte; put 8(Ljava/lang/Object;Ljava/lang/ObjectLjava/lang/Object; org/dementhium/util/Misc formatPlayerNameForProtocol &(Ljava/lang/StringLjava/lang/String; containsKey (Ljava/lang/ObjectZ get &(Ljava/lang/ObjectLjava/lang/Object; byteValue ()B getUsername equals getRights java/util/List contains java/lang/System currentTimeMillis ()J longValue sendMessage remove iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; org/dementhium/net/ActionSender 9(Lorg/dementhium/model/player/Player;Ljava/lang/StringV
sendConfig )(Lorg/dementhium/model/player/Player;II)V add (J)Ljava/lang/Long; ! 5 6 7 8 9 8 : ; < ; = ; > ; ? @ A B C @ A D ‚ E F A G ‚ H I J I K L M ` (*· *µ *µ *µ *µ *,µ *+µ *¶ ± N & # ' O P M ‘ I*¶ *´ š *µ *´
Ç *» Y· µ
*´
Ç *» Y· µ
*´ Ç *» Y· µ ± N *
# $ % ' ( $ * + + 6 - = . H 0 Q R S M *´ ° N 3 T S M *´ ° N 7 U V M + *´
+‘¸ ¶ W± N
; < W X M N !+¸ L*´
+¶ ™ *´
+¶ À ¶ ¬¬ N E F G I Q W Y M ‚ G+¶ ¸ *´ ¶ ™ ¸ °+¶ * ¸ °*´
+¶ ¶ ™ *´
+¶ ¶ À °¸ ° N M N O P % Q 3 R B T Q
Z [ M Ø ‚=*´
+¹ ™ ¬*´ +¶ ¶ ™ 3¸ *´ +¶ ¶ À ¶ e ”œ +!¶ "¬*´ +¶ ¶ #W*´
+¶ ¶ ™ &*´
+¶ ¶ À ¶ `‘=*´ ¡ § ¬¬ N 2 X Y Z \ ] ; ^ A _ C a O d ] e r f € h Q ü 1.@ \ [ M f 3=*´
+¶ ¶ ™ *´
+¶ ¶ À ¶ `‘=*´ ¡ § ¬ N l m n % p Q ü %@ ] P M ñ \**´ $š § µ $%L*´ $™ &L§ 'L*´
¹ ( M,¹ ) ™ (,¹ * À +N-+¸ ,-;*´ $™ § ¸ -§ÿÕ± N *
t u v w y # { @ | E } X ~ [ Q S L ^ÿ ^ ^ü _ü `ÿ & ^ _ ` a aÿ ^ _ ` a aù b P M « I**´ .š § µ .%L*´ .™ /L§ 0L*´
¹ ( M,¹ ) ™ ,¹ * À +N-+¸ ,§ÿè± N & ‚ ƒ „ … ‡ # ‰ @ Š E ‹ H Œ Q $ L ^ÿ ^ ^ü _ü `ú c d M ( *´
+¹ 1 W± N
e f M " *+µ ± N
“ ” g h M *´
° N — A i j d M ( *´
+¹ 2 W± N
› œ k l M *´
° N Ÿ A m n o M " *µ $± N
£ ¤ p q M *´ $¬ N § r s M " *µ ± N
« ¬ t u M *´ ¬ N ¯ v s M " *µ ± N
³ ´ w u M *´ ¬ N · x u M *´ ¬ N » y q M *´ .¬ N ¿ z f M , *´ +¸ ¸ 3¶ W± N
à Š{ | M n 5ª 3 . ) $ *µ *µ *µ *µ ± N È Ê % Ì * Î / Ð 4 Ó Q } s M " *µ ± N
× Ø ~ u M *´ ¬ N Û [ M < *+¶ 4¶ *´ ¡ ¬¬ N ß à â Q € [ M 8 *+¶ 4¶ *´ ¤ § ¬ N æ Q @ ‚
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |