dev@glassfish.java.net

Re: My QL failures caused by UnsatisfiedLinkError: no ocijdbc11 in java.library.path

From: Cheng Fang <cheng.fang_at_oracle.com>
Date: Tue, 22 Jun 2010 14:54:44 -0400

Thanks, Lance. This appears to be a resource detection bug in amx tests.

I have a bunch of jdbc driver jars (over 20) in server classpath
(java.ext.dirs), including ojdbc6.jar, oracle.jar, etc. Once I remove
these jars, they all passed. These jars have never been a problem when
running other non-ql tests.

-cheng

On 6/22/10 2:42 PM, Cheng Fang wrote:
>
> I'm seeing 2 ql failures: testConnectorRuntimeAPIProvider &
>
> testSystemStatus in amx, caused by the same error: Any idea? Thanks.
>
> [testng] FAILED: testSystemStatus
> [testng] java.lang.reflect.UndeclaredThrowableException
> [testng] at $Proxy56.pingJdbcConnectionPool(Unknown Source)
> [testng] at
> amxtest.AMXProxyTests.testSystemStatus(AMXProxyTests.java:414)
> [testng] at
> org.glassfish.admin.amx.impl.mbean.AMXImplBase.invoke(AMXImplBase.java:1039)
>
> [testng] at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>
> [testng] at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> [testng] at
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
>
> [testng] at
> javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
>
> [testng] at
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
>
> [testng] at
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
>
> [testng] at
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
>
> [testng] at
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
> [testng] at sun.rmi.transport.Transport$1.run(Transport.java:159)
> [testng] at java.security.AccessController.doPrivileged(Native
> Method)
> [testng] at
> sun.rmi.transport.Transport.serviceCall(Transport.java:155)
> [testng] at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
> [testng] at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>
> [testng] at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>
> [testng] at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> [testng] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> [testng] at java.lang.Thread.run(Thread.java:637)
> [testng] Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc11 in
> java.library.path
> [testng] at
> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1754)
> [testng] at java.lang.Runtime.loadLibrary0(Runtime.java:823)
> [testng] at java.lang.System.loadLibrary(System.java:1045)
> [testng] at
> oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3506)
> [testng] at java.security.AccessController.doPrivileged(Native
> Method)
> [testng] at
> oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3502)
>
> [testng] at
> oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:252)
> [testng] at
> oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
> [testng] at
> oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:148)
> [testng] at
> oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
>
> [testng] at
> oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
> [testng] at
> oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)
>
> [testng] at
> oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207)
>
> [testng] at
> oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:157)
>
> [testng] at
> com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:109)
>
> [testng] at
> com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getManagedConnection(ConnectorConnectionPoolAdminServiceImpl.java:495)
>
> [testng] at
> com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnect
>
> ionPoolAdminServiceImpl.java:605)
> [testng] at
> com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.testConnectionPool(ConnectorConnection
>
> PoolAdminServiceImpl.java:417)
> [testng] at
> com.sun.enterprise.connectors.ConnectorRuntime.pingConnectionPool(ConnectorRuntime.java:919)
>
> [testng] at
> org.glassfish.admin.amx.impl.ext.SystemStatusImpl.pingJdbcConnectionPool(SystemStatusImpl.java:119)
>
> [testng] ... 25 more
> [testng] ... Removed 30 stack frames
>
>
> -cheng
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>