Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-341

Default serialVersionUID (=1L) in class org.jboss.security.SimplePrincipal prevents interoperability with external tools (e.g. JBossTools)

XMLWordPrintable

    • Compatibility/Configuration
    • Workaround Exists
    • Hide

      In Eclipse, use the legacy WST server definitions (the ones in the subtree labeled just "JBoss" instead of "JBoss, a division of Red Hat"), which are a lot less functional but evidently do not need to marshal/unmarshal the SimplePrincipal class.

      Show
      In Eclipse, use the legacy WST server definitions (the ones in the subtree labeled just "JBoss" instead of "JBoss, a division of Red Hat"), which are a lot less functional but evidently do not need to marshal/unmarshal the SimplePrincipal class.
    • Low

      The serialVersionUID field in class SimplePrincipal is set to 1L instead of the expected 7701951188631723261L. This breaks compatibility with the external tools, preventing interaction with the server.

      Specifically, the application server started from within Eclipse fails early (in about or less than 1 second from starting) with the following exception:

      eclipse.buildId=M20080911-1700
      java.version=1.5.0_16
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=es_ES
      Command-line arguments: -os linux -ws gtk -arch x86

      Error
      Wed Jan 21 13:53:03 CET 2009
      Failure in Poll Thread

      org.jboss.ide.eclipse.as.core.server.IServerStatePoller$PollingException: error unmarshalling arguments; nested exception is:
      java.io.InvalidClassException: org.jboss.security.SimplePrincipal; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 7701951188631723261
      at org.jboss.ide.eclipse.as.core.extensions.polling.JMXPoller$PollerRunnable.handleException(JMXPoller.java:165)
      at org.jboss.ide.eclipse.as.core.extensions.polling.JMXPoller$PollerRunnable.run(JMXPoller.java:111)
      at java.lang.Thread.run(Thread.java:595)

          There are no Sub-Tasks for this issue.

              anil.saldhana Anil Saldanha (Inactive)
              saveriotrioni_jira Saverio Trioni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: