我可以通过oracle客户端toad连接到db。我在应用程序和jdk 1.7中使用ojdbc 6但是获得了一些java.lang.unsatisfied异常。 有人能帮我吗 。如何解决这个问题?
堆栈追踪:
java.lang.UnsatisfiedLinkError: oracle.jdbc.driver.T2CConnection.t2cConnPoolLogon(J[BI[BI[BI[BI[BIIII[Ljava/lang/String;[BI[BI[BI[BI[BI[S[B[B[J)I
at oracle.jdbc.driver.T2CConnection.t2cConnPoolLogon(Native Method)
at oracle.jdbc.driver.T2CConnection.processOCIConnectionPooling(T2CConnection.java:1103)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:258)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:148)
at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:60)
at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:44)
at oracle.jdbc.oci.OracleOCIConnection.<init>(OracleOCIConnection.java:35)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:49)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at oracle.jdbc.pool.OracleOCIConnectionPool.getConnection(OracleOCIConnectionPool.java:244)
at com.cisco.app.dbmigrator.migratorapp.utilities.cache.DBCacheManager.getCachedOracleConnection(DBCacheManager.java:79)
at com.cisco.app.dbmigrator.migratorapp.service.DatabaseDetailsServiceImpl.fetchTablesDetails(DatabaseDetailsServiceImpl.java:28)
at com.cisco.app.dbmigrator.migratorapp.controller.DatabaseDetailsController.fetchTablesDetails(DatabaseDetailsController.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)