Projects tigase _server server-core Issues #242
Load Tigase-Http-API Component Fail While Launch Tigase in Idea During Dev (#242)
Closed
Angelo Chen opened 1 decade ago

There's error while I launch the tigase server which configured the tigase-http-api comp from Idea dev.

Error messages:

groovy.lang.MissingMethodException: No signature of method: static tigase.http.HttpServer.setService() is applicable for argument types: (tigase.http.rest.RestMessageReceiver) values: [tigase.http.rest.RestMessageReceiver@68e84a9e]

at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1373)

at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1359)

at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:50)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

In my maven project there're dependencies like :

    <dependency>

        <groupId>tigase</groupId>

        <artifactId>tigase-server</artifactId>

        <version>${tigase-server.version}</version>

        <scope>compile</scope>

    </dependency>

    <dependency>

        <groupId>tigase</groupId>

        <artifactId>tigase-http-api</artifactId>

        <version>${tigase-http-api.version}</version>

        <scope>compile</scope>

        <exclusions>

            <exclusion>

                <groupId>tigase</groupId>

                <artifactId>tigase-server</artifactId>

            </exclusion>

        </exclusions>

    </dependency>

After I investigate the tigase server source code, found there're two empty class:

tigase/http/HttpRegistrator

tigase/http/HttpServer

those also exist in source of component tigase-http-api.

Will they conflict or should be removed from the tigase server source?

Andrzej Wójcik (Tigase) commented 1 decade ago

This issue can be due to that classes with same names are in Tigase XMPP Server and as I checked they are just empty classes so you could remove those classes from Tigase XMPP Server source code. I suppose we will do the same with conflicting classes in repository of Tigase XMPP Server as all HTTP related classes are in Tigase HTTP API Component now.

I suppose that Idea changed somehow behavior of class loader as we launched Tigase XMPP Server with HTTP API component from command line without any issues.

Artur Hefczyc commented 1 decade ago

Yes, the classes in the tigase server code can be removed, they are not used and never been used.

Andrzej Wójcik (Tigase) commented 1 decade ago

I removed those classes from source code of Tigase XMPP Server.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
1570
Version
tigase-server-5.2.0
Spent time
3h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#242
Please wait...
Page is in error, reload to recover