You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Ben Hood (JIRA)" <ji...@apache.org> on 2007/02/11 14:20:05 UTC

[jira] Created: (DIRMINA-348) slf4j InvalidClassChangeError - No diagnostics

slf4j InvalidClassChangeError - No diagnostics
----------------------------------------------

                 Key: DIRMINA-348
                 URL: https://issues.apache.org/jira/browse/DIRMINA-348
             Project: MINA
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.1
         Environment: $ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-113)
Java HotSpot(TM) Client VM (build 1.5.0_06-68, mixed mode, sharing)

$ uname -a
Darwin gr8.config 8.8.2 Darwin Kernel Version 8.8.2: Thu Sep 28 20:43:26 PDT 2006; root:xnu-792.14.14.obj~1/RELEASE_I386 i386 i386

            Reporter: Ben Hood
            Priority: Minor


Not having the correct slf4j plugin for the log library you use in a project causes an InvalidClassChangeError.

This manifests itself in the

private void fireEvent( NextFilter nextFilter, IoSession session, EventType type, Object data )

method when the first time the logger instance has a method invoked on it.

The solution is to get the correct plugin on the classpath, e.g. by adding this to your pom:

<dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.2</version>
            <scope>runtime</scope>
        </dependency>

It would be nice to somehow log this error at least somehow to std err, because the error was being swallowed without any diagnostics being output.

This costs a lot of time and may lead to people not using mina because of a trivial issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-348) slf4j InvalidClassChangeError - No diagnostics

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473031 ] 

Trustin Lee commented on DIRMINA-348:
-------------------------------------

Could you give us the exact full stack trace of the exception?

> slf4j InvalidClassChangeError - No diagnostics
> ----------------------------------------------
>
>                 Key: DIRMINA-348
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-348
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>         Environment: $ java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-113)
> Java HotSpot(TM) Client VM (build 1.5.0_06-68, mixed mode, sharing)
> $ uname -a
> Darwin gr8.config 8.8.2 Darwin Kernel Version 8.8.2: Thu Sep 28 20:43:26 PDT 2006; root:xnu-792.14.14.obj~1/RELEASE_I386 i386 i386
>            Reporter: Ben Hood
>            Priority: Minor
>
> Not having the correct slf4j plugin for the log library you use in a project causes an InvalidClassChangeError.
> This manifests itself in the
> private void fireEvent( NextFilter nextFilter, IoSession session, EventType type, Object data )
> method when the first time the logger instance has a method invoked on it.
> The solution is to get the correct plugin on the classpath, e.g. by adding this to your pom:
> <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-log4j12</artifactId>
>             <version>1.2</version>
>             <scope>runtime</scope>
>         </dependency>
> It would be nice to somehow log this error at least somehow to std err, because the error was being swallowed without any diagnostics being output.
> This costs a lot of time and may lead to people not using mina because of a trivial issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRMINA-348) slf4j InvalidClassChangeError - No diagnostics

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRMINA-348.
-------------------------------------


> slf4j InvalidClassChangeError - No diagnostics
> ----------------------------------------------
>
>                 Key: DIRMINA-348
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-348
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>         Environment: $ java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-113)
> Java HotSpot(TM) Client VM (build 1.5.0_06-68, mixed mode, sharing)
> $ uname -a
> Darwin gr8.config 8.8.2 Darwin Kernel Version 8.8.2: Thu Sep 28 20:43:26 PDT 2006; root:xnu-792.14.14.obj~1/RELEASE_I386 i386 i386
>            Reporter: Ben Hood
>            Priority: Minor
>
> Not having the correct slf4j plugin for the log library you use in a project causes an InvalidClassChangeError.
> This manifests itself in the
> private void fireEvent( NextFilter nextFilter, IoSession session, EventType type, Object data )
> method when the first time the logger instance has a method invoked on it.
> The solution is to get the correct plugin on the classpath, e.g. by adding this to your pom:
> <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-log4j12</artifactId>
>             <version>1.2</version>
>             <scope>runtime</scope>
>         </dependency>
> It would be nice to somehow log this error at least somehow to std err, because the error was being swallowed without any diagnostics being output.
> This costs a lot of time and may lead to people not using mina because of a trivial issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DIRMINA-348) slf4j InvalidClassChangeError - No diagnostics

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee resolved DIRMINA-348.
---------------------------------

    Resolution: Fixed

We documented recommended version of SLF4J library.

http://mina.apache.org/quick-start-guide.html

and added FAQ entry.

http://mina.apache.org/faq.html (might take some time my change is applied.)


> slf4j InvalidClassChangeError - No diagnostics
> ----------------------------------------------
>
>                 Key: DIRMINA-348
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-348
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>         Environment: $ java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-113)
> Java HotSpot(TM) Client VM (build 1.5.0_06-68, mixed mode, sharing)
> $ uname -a
> Darwin gr8.config 8.8.2 Darwin Kernel Version 8.8.2: Thu Sep 28 20:43:26 PDT 2006; root:xnu-792.14.14.obj~1/RELEASE_I386 i386 i386
>            Reporter: Ben Hood
>            Priority: Minor
>
> Not having the correct slf4j plugin for the log library you use in a project causes an InvalidClassChangeError.
> This manifests itself in the
> private void fireEvent( NextFilter nextFilter, IoSession session, EventType type, Object data )
> method when the first time the logger instance has a method invoked on it.
> The solution is to get the correct plugin on the classpath, e.g. by adding this to your pom:
> <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-log4j12</artifactId>
>             <version>1.2</version>
>             <scope>runtime</scope>
>         </dependency>
> It would be nice to somehow log this error at least somehow to std err, because the error was being swallowed without any diagnostics being output.
> This costs a lot of time and may lead to people not using mina because of a trivial issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.