[JBoss JIRA] Created: (AS7-1978) Unable to load native libraries included in resource resource adapter RAR
by Theo Cleminson (JIRA)
Unable to load native libraries included in resource resource adapter RAR
-------------------------------------------------------------------------
Key: AS7-1978
URL: https://issues.jboss.org/browse/AS7-1978
Project: Application Server 7
Issue Type: Bug
Components: JCA
Affects Versions: 7.0.2.Final
Environment: Ubuntu 11.04 x64
JDK1.6.0_26 64-bit
SAP JCO3 v7.11.1
Reporter: Theo Cleminson
Assignee: Jesper Pedersen
Native JCO library libsapjco3.so fails to load from within rar.
Have tried packaging libsapjco3.so in the rar root, and setting runtime paremter -Djboss.native.load=true (as per http://community.jboss.org/wiki/JBossProperties), but this has no effect. I suspect this is for pre JBossas7 versions.
20110929 11:47:58,659 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persistence.api dependency to mytestjcora.rar
20110929 11:47:58,786 ERROR [stderr] (MSC service thread 1-2) java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
20110929 11:47:58,787 ERROR [stderr] (MSC service thread 1-2) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
20110929 11:47:58,787 ERROR [stderr] (MSC service thread 1-2) at java.lang.Runtime.loadLibrary0(Runtime.java:823)
20110929 11:47:58,787 ERROR [stderr] (MSC service thread 1-2) at java.lang.System.loadLibrary(System.java:1028)
20110929 11:47:58,788 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.java:425)
20110929 11:47:58,788 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.java:293)
20110929 11:47:58,788 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:891)
20110929 11:47:58,788 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.rfc.driver.CpicDriver.<clinit>(CpicDriver.java:948)
20110929 11:47:58,788 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:41)
20110929 11:47:58,788 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:253)
20110929 11:47:58,788 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:195)
20110929 11:47:58,789 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:74)
20110929 11:47:58,804 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
20110929 11:47:58,804 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.rt.RuntimeEnvironment.<init>(RuntimeEnvironment.java:40)
20110929 11:47:58,804 ERROR [stderr] (MSC service thread 1-2) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
20110929 11:47:58,804 ERROR [stderr] (MSC service thread 1-2) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
20110929 11:47:58,804 ERROR [stderr] (MSC service thread 1-2) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
20110929 11:47:58,805 ERROR [stderr] (MSC service thread 1-2) at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
20110929 11:47:58,805 ERROR [stderr] (MSC service thread 1-2) at java.lang.Class.newInstance0(Class.java:355)
20110929 11:47:58,805 ERROR [stderr] (MSC service thread 1-2) at java.lang.Class.newInstance(Class.java:308)
20110929 11:47:58,805 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.ext.Environment.getInstance(Environment.java:121)
20110929 11:47:58,805 ERROR [stderr] (MSC service thread 1-2) at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:216)
20110929 11:47:58,805 ERROR [stderr] (MSC service thread 1-2) at com.myra.connector.jco.JCoManagedConnectionFactory.<clinit>(JCoManagedConnectionFactory.java:135)
20110929 11:47:58,805 ERROR [stderr] (MSC service thread 1-2) at java.lang.Class.forName0(Native Method)
20110929 11:47:58,806 ERROR [stderr] (MSC service thread 1-2) at java.lang.Class.forName(Class.java:247)
20110929 11:47:58,806 ERROR [stderr] (MSC service thread 1-2) at org.jboss.jca.validator.ValidateClass.<init>(ValidateClass.java:88)
20110929 11:47:58,806 ERROR [stderr] (MSC service thread 1-2) at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1322)
20110929 11:47:58,806 ERROR [stderr] (MSC service thread 1-2) at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:825)
20110929 11:47:58,806 ERROR [stderr] (MSC service thread 1-2) at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer.doDeploy(ResourceAdapterDeploymentService.java:139)
20110929 11:47:58,806 ERROR [stderr] (MSC service thread 1-2) at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:90)
20110929 11:47:58,807 ERROR [stderr] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
20110929 11:47:58,807 ERROR [stderr] (MSC service thread 1-2) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
20110929 11:47:58,807 ERROR [stderr] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
20110929 11:47:58,807 ERROR [stderr] (MSC service thread 1-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
20110929 11:47:58,807 ERROR [stderr] (MSC service thread 1-2) at java.lang.Thread.run(Thread.java:662)
20110929 11:47:58,828 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.ra.mytestjcora: org.jboss.msc.service.StartException in service jboss.ra.mytestjcora: Failed to start RA deployment [mytestjcora]
at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:92)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment failed: file:/opt/jboss/standalone/tmp/vfs/temp6fffaff86d4d55c6/mytestjcora.rar-2d836f33f4946a08/contents/
at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1929)
at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:825)
at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer.doDeploy(ResourceAdapterDeploymentService.java:139)
at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:90)
... 5 more
Caused by: java.lang.ExceptionInInitializerError: Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: com.sap.conn.rfc.driver.CpicDriver.nativeCpicGetVersion([I)I
at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:207)
at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:74)
at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
at com.sap.conn.jco.rt.RuntimeEnvironment.<init>(RuntimeEnvironment.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_26]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_26]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_26]
at java.lang.Class.newInstance0(Class.java:355) [:1.6.0_26]
at java.lang.Class.newInstance(Class.java:308) [:1.6.0_26]
at com.sap.conn.jco.ext.Environment.getInstance(Environment.java:121)
at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:216)
at com.myra.connector.jco.JCoManagedConnectionFactory.<clinit>(JCoManagedConnectionFactory.java:135)
at java.lang.Class.forName0(Native Method) [:1.6.0_26]
at java.lang.Class.forName(Class.java:247) [:1.6.0_26]
at org.jboss.jca.validator.ValidateClass.<init>(ValidateClass.java:88)
at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1322)
... 8 more
20110929 11:47:59,043 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "mytestjcora.rar" was rolled back with failure message {"Failed services" => {"jboss.ra.mytestjcora" => "org.jboss.msc.service.StartException in service jboss.ra.mytestjcora: Failed to start RA deployment [mytestjcora]"}}
20110929 11:47:59,044 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) Service status report
Services which failed to start:
service jboss.ra.mytestjcora: org.jboss.msc.service.StartException in service jboss.ra.mytestjcora: Failed to start RA deployment [mytestjcora]
20110929 11:47:59,045 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.ra.mytestjcora" => "org.jboss.msc.service.StartException in service jboss.ra.mytestjcora: Failed to start RA deployment [mytestjcora]"}}}}
20110929 11:47:59,057 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment mytestjcora.rar in 11ms}}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (AS7-1778) Cannot create queue w/o selector
by Heiko Braun (JIRA)
Cannot create queue w/o selector
--------------------------------
Key: AS7-1778
URL: https://issues.jboss.org/browse/AS7-1778
Project: Application Server 7
Issue Type: Bug
Components: JMS
Reporter: Heiko Braun
Assignee: Emanuel Muckenhuber
Fix For: 7.1.0.Alpha1
14:06:02,029 ERROR [org.jboss.as.controller] (HttpManagementService-threads - 11) Operation ("add") failed - address: ([
("subsystem" => "messaging"),
("jms-queue" => "asd")
]) - failure description: "\"\" is an invalid value for parameter selector. Values must have a minimum length of 1 characters"
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (JGRP-1378) IllegalAccessException when run RelayDemo with jgroups-3.0.0.CR5.jar
by XUN WANG (Created) (JIRA)
IllegalAccessException when run RelayDemo with jgroups-3.0.0.CR5.jar
--------------------------------------------------------------------
Key: JGRP-1378
URL: https://issues.jboss.org/browse/JGRP-1378
Project: JGroups
Issue Type: Bug
Affects Versions: 3.0
Environment: Windows, Linux
Reporter: XUN WANG
Assignee: Bela Ban
This exception has been found when try to run RelayDemo comes with the jgroups-3.0.0.CR5.jar. The exact same run has been successful with jgroups-2.12.1.Final.jar.
Here is the details of the exception.
Oct 21, 2011 12:37:43 AM org.jgroups.logging.JDKLogImpl error
SEVERE: failed installing view
java.lang.IllegalAccessException: Class org.jgroups.util.Util can not access a member of class org.jgroups.protocols.REL
AY$ViewData with modifiers "protected"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.Class.newInstance0(Class.java:349)
at java.lang.Class.newInstance(Class.java:308)
at org.jgroups.util.Util.streamableFromByteBuffer(Util.java:668)
at org.jgroups.protocols.RELAY.installView(RELAY.java:272)
at org.jgroups.protocols.RELAY.up(RELAY.java:200)
at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:178)
at org.jgroups.protocols.FRAG2.up(FRAG2.java:181)
at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)
at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)
at org.jgroups.protocols.pbcast.GMS.up(GMS.java:865)
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:244)
at org.jgroups.protocols.UNICAST.up(UNICAST.java:297)
at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:719)
at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:547)
at org.jgroups.protocols.BARRIER.up(BARRIER.java:126)
at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:134)
at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:171)
at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:273)
at org.jgroups.protocols.MERGE2.up(MERGE2.java:208)
at org.jgroups.protocols.Discovery.up(Discovery.java:335)
at org.jgroups.protocols.TP.passMessageUp(TP.java:1091)
at org.jgroups.protocols.TP$3.run(TP.java:1014)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Oct 21, 2011 12:37:43 AM org.jgroups.logging.JDKLogImpl info
INFO: JGroups version: 3.0.0.CR5
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (AS7-2160) Fix SimpleStartLevelTestCase
by Kabir Khan (Created) (JIRA)
Fix SimpleStartLevelTestCase
----------------------------
Key: AS7-2160
URL: https://issues.jboss.org/browse/AS7-2160
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Reporter: Kabir Khan
Assignee: Thomas Diesler
Fix For: 7.1.0.Beta1
This test fails frequently. The latest failure has this:
$more testsuite/integration/target/surefire-reports/org.jboss.as.test.smoke.embedded.osgi.SimpleStartLevelTestCase.txt -------------------------------------------------------------------------------
Test set: org.jboss.as.test.smoke.embedded.osgi.SimpleStartLevelTestCase
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.5 sec <<< FAILURE!
testStartLevel(org.jboss.as.test.smoke.embedded.osgi.SimpleStartLevelTestCase) Time elapsed: 0.093 sec <<< FAILURE!
java.lang.AssertionError: Bundle cannot be started due to the Framework's current start level
at org.junit.Assert.fail(Assert.java:93)
at org.jboss.as.test.smoke.embedded.osgi.SimpleStartLevelTestCase.testStartLevel(SimpleStartLevelTestCase.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:246)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months