server trunk code problem
When I use my compiled tigase-server.jar from trunk server code, it always gets the following error.
2009-07-01 01:27:39 SocketReadThread$ResultsListener.run() WARNING: Protocol execution exception.java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: tigase.xml.Element.addChild(Ltigase/xml/Element;)V
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at tigase.net.SocketReadThread$ResultsListener.run(SocketReadThread.java:394)
Caused by: java.lang.NoSuchMethodError: tigase.xml.Element.addChild(Ltigase/xml/Element;)V
at tigase.server.Command.createCommandEl(Command.java:278)
at tigase.server.Command.createIqCommand(Command.java:295)
at tigase.server.Command.getPacket(Command.java:231)
I see in the xmltools trunk code that there is only addChild(XMLNodeIfc child) instead of addChild(Element child) in Element.java
https://svn.tigase.org/reps/tigase-xmltools/trunk/src/main/java/tigase/x...
However, in the server trunk code, all the addChild() functions still use Element as input parameter.
For example, in
https://svn.tigase.org/reps/tigase-server/trunk/src/main/java/tigase/ser...
Am I looking at the wrong place for the server code?
- 498 reads
Printer-friendly version- Send to friend






I cleaned all my class files
I cleaned all my class files and rebuild it again, and it works now. Thank you.
You are looking in a correct
You are looking in a correct place. Class Element implements XMLNodeIfc now. It wasn't like that in the past. I am pretty sure you are using incompatible version of the xmltools with the Tigase server source code.
Make sure you use the trunk xmltools with the trunk server sources and there are no old version of libraries laying around.
Post new comment