Project

General

Profile

exception about muc exception

Raylin lin
Added almost 5 years ago

    I built tigase server(5.2) and  muc(2.2) myself, and test muc with spark to start a chatting room,the server return error, and  i checked some log info like this: 

2014-02-14 11:52:32 ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "in_0-muc" exception

java.lang.NoSuchMethodError: tigase.server.Packet.getAttributeStaticStr(Ljava/lang/String;)Ljava/lang/String;

at tigase.muc.modules.DiscoInfoModule.process(DiscoInfoModule.java:129)

at tigase.component.modules.ModulesManager.process(ModulesManager.java:63)

at tigase.component.AbstractComponent.processStanzaPacket(AbstractComponent.java:234)

at tigase.muc.MUCComponent.processStanzaPacket(MUCComponent.java:390)

at tigase.component.AbstractComponent.processPacket(AbstractComponent.java:222)

at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1337)


 my init.properties is:

config-type=--gen-config-def

--admins=admin@192.168.1.120

--virt-hosts = 192.168.1.120

--debug=server,xmpp.XMPPIOService,db

--user-db=mysql

--user-db-uri=jdbc:mysql://192.168.1.120:3306/tigasedb?user=admin&password=helloworld&useUnicode=true&characterEncoding=UTF-8

--cluster-connect-all=true

--cluster-mode=true

--cluster-nodes=im.server1,im.imserver2

--cl-conn-repo-class=tigase.cluster.repo.ClConConfigRepository

--cross-domain-policy-file=/etc/tigase/cross-domain-policy.xml

--bosh-extra-headers-file=/etc/tigase/bosh-extra-headers-file.txt

--bosh-ports=5280

#muc/muc-lock-new-room[B]=false

--comp-class-1 = tigase.muc.MUCComponent

--comp-name-1 = muc

--monitoring=jmx:9050,http:9080,snmp:9060

also show tables on tigasedb, and got:

+--------------------+

| Tables_in_tigasedb |
+--------------------+

| msg_history |
| muc_history |
| short_news |
| tig_nodes |
| tig_pairs |
| tig_users |
| user_jid |
| xmpp_stanza |


Replies (4)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 5 years ago

You must be running a new MUC code with an old Tigase server code. Please make sure you updated Tigase server jar in your installation directory and make sure there is no old library laying around.

Added by Raylin lin almost 5 years ago

hi ,Artur Hefczyc:

thank you  for your reply , i got the newest version from this site, run  "mvn assembly:assembly" in the root dir,

and got this error info:

[INFO] Skipping javadoc generation

[INFO]

[INFO] <<< maven-assembly-plugin:2.3:assembly (default-cli) @ tigase-server <<<

[INFO]

[INFO] --- maven-assembly-plugin:2.3:assembly (default-cli) @ tigase-server ---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 43.891s

[INFO] Finished at: Fri Feb 14 16:15:45 CST 2014

[INFO] Final Memory: 36M/373M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:assembly (default-cli) on project tigase-server: Error reading assemblies: No assembly descriptors found. -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Added by Raylin lin almost 5 years ago

Artur Hefczyc wrote:

You must be running a new MUC code with an old Tigase server code. Please make sure you updated Tigase server jar in your installation directory and make sure there is no old library laying around.

my question is exactly like bug description 4 in this thread: https://projects.tigase.org/issues/1574

user:

server needs other dependencies. not sure how to get them. i tried maven, and it looks like it almost worked. mvn assembly:assembly failed at the end with: "Error reading assemblies: No assembly descriptors found." but i did get a tigase-server.jar

and I use Apache Maven (version 3.1.1).

I searched "maven-assembly-plugin". and found this from modules\master\pom.xml:

                    <plugin>

            <artifactId>maven-assembly-plugin</artifactId>

            <version>2.3</version>

            <executions>

                <execution>

                    <id>prod</id>

                    <phase>none</phase>

                </execution>

            </executions>

        </plugin>

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

There is a nice guide Tigase XMPP Server 5.2.0 and later - compilation and generating distribution packages describing in detail how to build Tigase Server and get all dependencies.

Bottomline, instead of using (in main server directory) assembly like

$mvn assembly:assembly

use:

mvn -f modules/master/pom.xml clean package

Main tigase-server module doesn't contain any assembly descriptor nor any non crucial dependencies.

    (1-4/4)