[jboss-jira] [JBoss JIRA] Commented: (SECURITY-341) Default serialVersionUID (=1L) in class org.jboss.security.SimplePrincipal prevents interoperability with external tools (e.g. JBossTools)
Saverio Trioni (JIRA)
jira-events at lists.jboss.org
Fri Jan 23 05:49:44 EST 2009
[ https://jira.jboss.org/jira/browse/SECURITY-341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12449407#action_12449407 ]
Saverio Trioni commented on SECURITY-341:
-----------------------------------------
It's an interoperability issue. If the generated UIDs are different from the older version (and backwards API compatibility is wanted) then a generated one is as bas as a default 1L UID.
> Default serialVersionUID (=1L) in class org.jboss.security.SimplePrincipal prevents interoperability with external tools (e.g. JBossTools)
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SECURITY-341
> URL: https://jira.jboss.org/jira/browse/SECURITY-341
> Project: JBoss Security and Identity Management
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Interoperability, JBossSX
> Affects Versions: 2.0.2.GA, 2.0.2.SP1, 2.0.2.SP2, 2.0.2.SP3
> Environment: JBoss AS 5.0.0.GA, Eclipse ganymede SR1, JBoss Tools (any version).
> Reporter: Saverio Trioni
> Assignee: Stefan Guilhen
> Priority: Critical
> Fix For: 2.0.2.SP4
>
>
> 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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list