[sip-comm-dev] CruiseControl error not understand


#1

Hello,

Yesterday I've commit some major modifications for the dict protocol.
One of them was to extract the communication layer between SC and the
dictionary server (new sub-project of SC : dict4j) and set it as an
external library.

After successful tests on my computer I've decided to commit it but
since my commit, the CC always fail. I don't really understand the
error. This morning I've updated the jar but it doesn't change
anything. Here is the error :

SIP Communicator version 1.0-alpha3-nightly.build.1520

/home/cruisecontrol/cruisecontrol-bin-2.7.3/checkout/sip-communicator/src/net/java/sip/communicator/impl/protocol/dict/ProtocolProviderServiceDictImpl.java:72:
cannot access net.java.dict4j.DictConnection

bad class file:
/home/cruisecontrol/cruisecontrol-bin-2.7.3/checkout/sip-communicator/lib/installer-exclude/dict4j.jar(net/java/dict4j/DictConnection.class)

class file has wrong version 50.0, should be 49.0

Please remove or make sure it appears in the correct subdirectory of
the classpath.

private DictConnection dictConnection;
^

1 error

Can someone help me to resolve this ?

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi Damien,

···

On 2008/11/22, at 13:20, Damien Roth wrote:

bad class file:
/home/cruisecontrol/cruisecontrol-bin-2.7.3/checkout/sip-communicator/lib/installer-exclude/dict4j.jar(net/java/dict4j/DictConnection.class)

class file has wrong version 50.0, should be 49.0

This one is because you've created the jar with Java 1.6, it should be created with java 1.5 instead.

Cheers,
romain

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi Romain,

Thanks for your help. I've rebuild my jar and now waiting for the next CC build.

Bye
Damien

···

2008/11/22 Romain KUNTZ <kuntz@lsiit.u-strasbg.fr>:

Hi Damien,

On 2008/11/22, at 13:20, Damien Roth wrote:

bad class file:

/home/cruisecontrol/cruisecontrol-bin-2.7.3/checkout/sip-communicator/lib/installer-exclude/dict4j.jar(net/java/dict4j/DictConnection.class)

class file has wrong version 50.0, should be 49.0

This one is because you've created the jar with Java 1.6, it should be
created with java 1.5 instead.

Cheers,
romain

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Damien ROTH
Programmeur n.m : Celui qui résout un problème que vous n'aviez pas,
d'une façon que vous ne comprenez pas.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hey Damien,

A quick note to let you know that the build is still failing but this is
because the machine that we use as a XMPP server for our Jabber provider
unit tests is currently down. We'll be checking it out tomorrow.

Cheers
Emil

Damien Roth wrote:

···

Hi Romain,

Thanks for your help. I've rebuild my jar and now waiting for the next CC build.

Bye
Damien

2008/11/22 Romain KUNTZ <kuntz@lsiit.u-strasbg.fr>:

Hi Damien,

On 2008/11/22, at 13:20, Damien Roth wrote:

bad class file:

/home/cruisecontrol/cruisecontrol-bin-2.7.3/checkout/sip-communicator/lib/installer-exclude/dict4j.jar(net/java/dict4j/DictConnection.class)

class file has wrong version 50.0, should be 49.0

This one is because you've created the jar with Java 1.6, it should be
created with java 1.5 instead.

Cheers,
romain

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Oops, spoke too quickly. There seem to be a couple of more issues left
with the dict bundles. I've triggered a cruisecontrol build so that you
can see the error messages but I am also pasting them here just in case.

cruisecontrol@proxenet:~/cruisecontrol/checkout/sip-communicator$ ant compile
Buildfile: build.xml
Overriding previous definition of reference to project.source.path
Overriding previous definition of reference to project.class.path
Overriding previous definition of reference to compile.class.path
Overriding previous definition of reference to debug.class.path
Overriding previous definition of reference to simple.test.class.path

init:
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/doc/api
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/sc-bundles
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/sc-bundles/os-specific
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/sc-bundles/os-specific/macosx
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/sc-bundles/os-specific/linux
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/sc-bundles/os-specific/windows
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/test-reports
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/test-reports/html
    [mkdir] Created dir: /home/cruisecontrol/working_directory/checkout/sip-communicator/log

-pre-version:

version:
    [javac] Compiling 3 source files to /home/cruisecontrol/working_directory/checkout/sip-communicator/classes
     [echo] SIP Communicator version 1.0-alpha3-nightly.build.1520

compile:
    [javac] Compiling 1218 source files to /home/cruisecontrol/working_directory/checkout/sip-communicator/classes

    [javac] /home/cruisecontrol/working_directory/checkout/sip-communicator/src/net/java/sip/communicator/plugin/dictaccregwizz/StrategiesList.java:144: method does not override a method from its superclass
    [javac] @Override
    [javac] ^
    [javac] /home/cruisecontrol/working_directory/checkout/sip-communicator/src/net/java/sip/communicator/plugin/dictaccregwizz/StrategiesList.java:153: method does not override a method from its superclass
    [javac] @Override
    [javac] ^
    [javac] /home/cruisecontrol/working_directory/checkout/sip-communicator/src/net/java/sip/communicator/plugin/dictaccregwizz/StrategiesList.java:186: method does not override a method from its superclass
    [javac] @Override
    [javac] ^
    [javac] /home/cruisecontrol/working_directory/checkout/sip-communicator/src/net/java/sip/communicator/plugin/dictaccregwizz/ProgressPanel.java:131: method does not override a method from its superclass
    [javac] @Override
    [javac] ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors

BUILD FAILED
/home/cruisecontrol/working_directory/checkout/sip-communicator/build.xml:230: Compile failed; see the compiler error output for details.

Total time: 3 minutes 14 seconds

Cheers
Emil

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Hi Emil,

I've removed the @Override lines in the plugin and commit the two files.
But when I've compiled on my computer no error (I'm using java 1.6).

I will manage to use the two versions for my next commits.

Bye

Damien

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hey Damien,

Damien Roth wrote:

Hi Emil,

I've removed the @Override lines in the plugin and commit the two files.
But when I've compiled on my computer no error (I'm using java 1.6).

Well actually you are not supposed to use the @Override annotation for
abstract methods or interface implementations. I believe this is what
was causing the error.

If it worked for you then I guess sun removed that limitation in 1.6.

I will manage to use the two versions for my next commits.

Yes, would be nice. That would help avoid confusion.

Emil

···

Bye

Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hi,

···

On Mon, Nov 24, 2008 at 05:11:53PM +0100, Damien Roth wrote:

I've removed the @Override lines in the plugin and commit the two files.
But when I've compiled on my computer no error (I'm using java 1.6).

I will manage to use the two versions for my next commits.

There is still something I don't understand. Since the main code is
compiled using 'javac -source 1.5 -target 1.5', shouldn't this problem
never happen, even with java 1.6?

Cheers,

--
Sébastien Mazy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

Hey Seb,

Well the first problem we had was concerning an external library
(dict4j) which might have been compiled without the 1.5 flags.

The second one was caused by the @Override annotations on interface
method implementations and it's simply a matter of something that the
1.6 compiler on Damien's machine apparently accepts, but that is not
supported by the 1.5 compiler.

Cheers
Emil

Sébastien Mazy wrote:

···

Hi,

On Mon, Nov 24, 2008 at 05:11:53PM +0100, Damien Roth wrote:

I've removed the @Override lines in the plugin and commit the two files.
But when I've compiled on my computer no error (I'm using java 1.6).

I will manage to use the two versions for my next commits.

There is still something I don't understand. Since the main code is
compiled using 'javac -source 1.5 -target 1.5', shouldn't this problem
never happen, even with java 1.6?

Cheers,

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Hi All!

[snip]
The second one was caused by the @Override annotations on interface
method implementations and it's simply a matter of something that the
1.6 compiler on Damien's machine apparently accepts, but that is not
supported by the 1.5 compiler.

The behavior of @Override was changed from 1.5 to 1.6. In 1.6, the annotation is also allowed for methods which implements interface methods. Unfortunately, Sun forgot to update the documentation accordingly. Here is a blog entry with details: http://blogs.sun.com/ahe/entry/override_snafu

Cheers
Michael Koch