[JBoss JIRA] Created: (JBAS-6597) CMP findByPrimaryKey() broken for composite primary keys
by Markus Cozowicz (JIRA)
CMP findByPrimaryKey() broken for composite primary keys
--------------------------------------------------------
Key: JBAS-6597
URL: https://jira.jboss.org/jira/browse/JBAS-6597
Project: JBoss Application Server
Issue Type: Patch
Security Level: Public (Everyone can see)
Components: CMP service
Affects Versions: JBossAS-5.0.0.CR1
Environment: Windows, JBoss 5.0.0CR1
Reporter: Markus Cozowicz
Assignee: Alexey Loubyansky
Fix For: JBossAS-5.0.0.CR1
findByPrimaryKey() in CMP for an entity bean will re-use the first property as query parameter of a composite primary key for all fields in the SQL query. Our code worked in JBoss 3.2.3 and got broken in 5.0.0CR1.
In ejb-jar.xml we have
- prim-key-class
- primkey-field
the prim-key-class exposes 3 properties (1 string, 2 integers). Through tracing and debugging we saw that the query gets constructed and parameter types are inferred correctly.
We compared QueryParameter.java from 3.2.3, 5.0.0 CR1 and v85552 (trunk as of today) and think that functionality got lost (please not the additional "else" for the "property != null" case. We therefore propose the following patch (which at least solved our problem):
http://anonsvn.jboss.org/repos/jbossas/trunk/server/src/main/org/jboss/ej...
--- QueryParameter.java (Revision 85552)
+++ QueryParameter.java (Arbeitskopie)
@@ -320,10 +320,18 @@
}
arg = field.getPrimaryKeyValue(arg);
- // use mapper
- final JDBCType jdbcType = field.getJDBCType();
- arg = jdbcType.getColumnValue(0, arg);
- param = jdbcType.getParameterSetter()[0];
+ if(property != null)
+ {
+ arg = property.getColumnValue(arg);
+ param = property.getParameterSetter();
+ }
+ else
+ {
+ // use mapper
+ final JDBCType jdbcType = field.getJDBCType();
+ arg = jdbcType.getColumnValue(0, arg);
+ param = jdbcType.getParameterSetter()[0];
+ }
}
else if(property != null)
{
(this was original created here: https://jira.jboss.org/jira/browse/ASPATCH-411)
--
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
15 years, 10 months
[JBoss JIRA] Created: (JBDEPLOY-174) Repeated instances of Bad version number in .class file in server.log
by Martin Gainty (JIRA)
Repeated instances of Bad version number in .class file in server.log
---------------------------------------------------------------------
Key: JBDEPLOY-174
URL: https://jira.jboss.org/jira/browse/JBDEPLOY-174
Project: JBoss Deployers
Issue Type: Bug
Affects Versions: JBDEPLOY-2.0.5.GA
Environment: >java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
Hibernate 3.3.1.GA
Jboss 5.0.1.GA
Reporter: Martin Gainty
Repeated instances of Bad version number in .class file
2009-03-07 13:13:59,859 DEBUG [org.jboss.ejb3.deployers.Ejb3Deployer] (main) ********* Ejb3Deployer Begin Unit: jboss-jca-deployer.jar jar: jboss-jca-deployer.jar
2009-03-07 13:14:00,125 DEBUG [org.jboss.ejb3.Ejb3Deployment] (main) EJB3 deployment time took: 266
2009-03-07 13:14:00,125 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component JCAMetaDataRepository to vfsfile:/F:/JBoss/jboss-5.0.1.GA/server/default/deployers/jboss-jca.deployer/
2009-03-07 13:14:00,140 WARN [org.jboss.detailed.classloader.ClassLoaderManager] (main) Unexpected error during load of:org.jboss.resource.metadata.repository.DefaultJCAMetaDataRepository
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2009-03-07 13:14:23,031 DEBUG [org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer] (main) Error during deploy: vfsfile:/F:/JBoss/jboss-5.0.1.GA/server/default/deployers/jboss-jca.deployer/
org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/F:/JBoss/jboss-5.0.1.GA/server/default/deployers/jboss-jca.deployer/
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.resource.metadata.repository.DefaultJCAMetaDataRepository, msg=Bad version number in .class file
2009-03-07 13:14:23,031 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/F:/JBoss/jboss-5.0.1.GA/server/default/deployers/jboss-jca.deployer/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/F:/JBoss/jboss-5.0.1.GA/server/default/deployers/jboss-jca.deployer/
Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.resource.metadata.repository.DefaultJCAMetaDataRepository, msg=Bad version number in .class file
2009-03-07 13:14:59,718 WARN [org.jboss.detailed.classloader.ClassLoaderManager] (main) Unexpected error during load of:org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2009-03-07 13:15:36,828 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to PreInstall: name=JCAResourceJSR77Deployer state=Real
java.lang.NoClassDefFoundError: org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentGroup
2009-03-07 13:16:05,078 WARN [org.jboss.detailed.classloader.ClassLoaderManager] (main) Unexpected error during load of:org.jboss.resource.metadata.ConnectorMetaData
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2009-03-07 13:16:42,218 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to PreInstall: name=RarModuleJSR77Deployer state=Real
java.lang.NoClassDefFoundError: org/jboss/resource/metadata/ConnectorMetaData
2009-03-07 13:17:10,828 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment "RarModuleJSR77Deployer" is in error due to the following reason(s): java.lang.NoClassDefFoundError: org/jboss/resource/metadata/ConnectorMetaData
Deployment "vfsfile:/F:/JBoss/jboss-5.0.1.GA/server/default/deployers/jboss-jca.deployer/" is in error due to the following reason(s): java.lang.UnsupportedClassVersionError: Bad version number in .class file
Deployment "JCAResourceJSR77Deployer" is in error due to the following reason(s): java.lang.NoClassDefFoundError: org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentGroup
--
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
15 years, 10 months
[JBoss JIRA] Created: (JBAS-6534) Graceful shutdown of JBoss Web service does not wait for accepted requests to complete before stopping dependent services
by Paul Ferraro (JIRA)
Graceful shutdown of JBoss Web service does not wait for accepted requests to complete before stopping dependent services
-------------------------------------------------------------------------------------------------------------------------
Key: JBAS-6534
URL: https://jira.jboss.org/jira/browse/JBAS-6534
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Affects Versions: JBossAS-5.0.0.GA
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Fix For: JBossAS-5.1.0.Beta1
Sample stack trace:
[JBoss] 05:47:33,394 INFO [ServerImpl] Shutting down the server, blockingShutdown: false
[JBoss] 05:47:33,397 INFO [ServerImpl] Server exit(0) called
[JBoss] 05:47:33,398 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
[JBoss] 05:47:33,406 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-perf01%2F10.16.88.179-8080
[JBoss] 05:47:33,407 INFO [Http11Protocol] Stopping Coyote HTTP/1.1 on http-perf01%2F10.16.88.179-8080
[JBoss] 05:47:33,408 INFO [AjpProtocol] Pausing Coyote AJP/1.3 on ajp-perf01%2F10.16.88.179-8009
[JBoss] 05:47:33,409 INFO [AjpProtocol] Stopping Coyote AJP/1.3 on ajp-perf01%2F10.16.88.179-8009
[JBoss] 05:47:33,460 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1c42860 undeployed
[JBoss] 05:47:33,484 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@38f0e7 undeployed
[JBoss] 05:47:33,500 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@4e6c9d undeployed
[JBoss] 05:47:33,530 INFO [TomcatDeployment] undeploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
[JBoss] 05:47:33,584 INFO [QueueService] Queue[/queue/ExpiryQueue] stopped
[JBoss] 05:47:33,585 INFO [QueueService] Queue[/queue/DLQ] stopped
[JBoss] 05:47:33,595 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED shutting down.
[JBoss] 05:47:33,595 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED paused.
[JBoss] 05:47:33,596 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED shutdown complete.
[JBoss] 05:47:34,645 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' from JNDI name 'java:JmsXA'
[JBoss] 05:47:34,658 INFO [ServerPeer] JMS ServerPeer[0] stopped
[JBoss] 05:47:34,726 INFO [TomcatDeployment] undeploy, ctxPath=/invoker, vfsUrl=httpha-invoker.sar/invoker.war
[JBoss] 05:47:34,799 INFO [HttpReplTestPartition] Stopping partition HttpReplTestPartition
[JBoss] 05:47:34,802 INFO [RPCManagerImpl] Disconnecting and closing the Channel
[JBoss] 05:47:34,874 INFO [RPCManagerImpl] Stopping the RpcDispatcher
[JBoss] 05:47:34,888 INFO [HttpReplTestPartition] Partition HttpReplTestPartition stopped.
[JBoss] 05:47:34,891 INFO [HttpReplTestPartition] Partition HttpReplTestPartition destroyed.
[JBoss] 05:47:34,893 INFO [TomcatDeployment] undeploy, ctxPath=/st, vfsUrl=SessionTest.war
[JBoss] 05:47:34,931 INFO [RPCManagerImpl] Disconnecting and closing the Channel
[JBoss] 05:47:35,002 INFO [RPCManagerImpl] Stopping the RpcDispatcher
[JBoss] 05:47:35,451 INFO [TomcatDeployment] undeploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
[JBoss] 05:47:35,454 INFO [TomcatDeployment] undeploy, ctxPath=/juddi, vfsUrl=juddi-service.sar/juddi.war
[JBoss] 05:47:35,455 INFO [RegistryServlet] jUDDI Stopping: Cleaning up existing resources.
[JBoss] 05:47:35,456 INFO [TomcatDeployment] undeploy, ctxPath=/, vfsUrl=ROOT.war
[JBoss] 05:47:35,458 INFO [TomcatDeployment] undeploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
[JBoss] 05:47:35,462 INFO [StandardService] Stopping service jboss.web
[JBoss] 05:47:35,598 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
[JBoss] 05:47:35,632 INFO [SnmpAgentService] SNMP agent stopped
[JBoss] 05:47:35,811 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java:DefaultDS'
[JBoss] 05:47:35,841 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
[JBoss] 05:47:35,841 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
[JBoss] 05:47:35,845 INFO [SimpleThreadPool] There are still 45 worker threads active. See javadoc runInThread(Runnable) for a possible explanation
[JBoss] 05:47:35,845 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
[JBoss] 05:47:35,957 INFO [TransactionManagerService] Stopping transaction recovery manager
[JBoss] 05:47:36,213 INFO [HypersonicDatabase] Database standalone closed clean
[JBoss] 05:47:36,602 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
[JBoss] java.lang.RuntimeException: DistributedCacheManager is null.
[JBoss] at org.jboss.web.tomcat.service.session.ClusteredSession.establishDistributedCacheManager(ClusteredSession.java:1802)
[JBoss] at org.jboss.web.tomcat.service.session.ClusteredSession.setManager(ClusteredSession.java:506)
[JBoss] at org.jboss.web.tomcat.service.session.ClusteredSession.<init>(ClusteredSession.java:399)
[JBoss] at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.<init>(SessionBasedClusteredSession.java:56)
[JBoss] at org.jboss.web.tomcat.service.session.JBossCacheManager.createEmptyClusteredSession(JBossCacheManager.java:1410)
[JBoss] at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1491)
[JBoss] at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:462)
[JBoss] at org.apache.catalina.connector.Request.doGetSession(Request.java:2322)
[JBoss] at org.apache.catalina.connector.Request.getSession(Request.java:2096)
[JBoss] at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:94)
[JBoss] at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
[JBoss] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
[JBoss] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
[JBoss] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
[JBoss] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[JBoss] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[JBoss] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[JBoss] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[JBoss] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
[JBoss] at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
[JBoss] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
[JBoss] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
[JBoss] at java.lang.Thread.run(Thread.java:619)
--
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
15 years, 10 months
[JBoss JIRA] Created: (JBSER-112) Adjust JBossSerialization to support JBossMarshalling
by Ron Sigal (JIRA)
Adjust JBossSerialization to support JBossMarshalling
-----------------------------------------------------
Key: JBSER-112
URL: https://jira.jboss.org/jira/browse/JBSER-112
Project: JBoss Serialization
Issue Type: Feature Request
Affects Versions: 1.0.3 GA
Reporter: Ron Sigal
Assignee: Ron Sigal
Fix For: 1.1.0 Beta
The JBossMarshalling project presents a unitied API for marshalling and unmarshalling objects. It supports a number of pluggable facilities, including object and class resolvers, externalizers, and so forth. There is a native implementation (River) and an implementation that is compatible with standard Java serialization. A number of changes are necessary to support an implementation this is based on, and compatible with, JBossSerialization.
--
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
15 years, 10 months