2016-12-08 75 views
0

我的oracle 11g數據庫的舊ojdbc6 jar可以正常運行,但是當我用oracle 12 c替換那個jar時,運行我的mule流時出現以下錯誤: Exception堆棧爲: 1.無法找到類型ID:0的映射名稱:null(org.mule.module.db.internal.domain.type.UnknownDbTypeException) org.mule.module.db.internal.domain.type .CompositeDbTypeManager:59(http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/module/db/internal/domain/type/UnknownDbTypeException.html) 2.無法找到類型ID:0的映射名稱:null(org.mule.module.db.internal.domain.type.UnknownDbTypeException)。消息有效載荷的類型爲:字符串(org.mule.api.MessagingException) org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32(http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.htmlojdbc6 jar for 12c不能使用騾3.5


根異常堆棧跟蹤: org.mule.module.db。 internal.domain.type.UnknownDbTypeException:無法找到類型ID:0的映射名稱:null at org.mule.module.db.internal.domain.type.CompositeDbTypeManager.lookup(CompositeDbTypeManager.java:59) at org .mule.module.db.internal.resolver.param.QueryParamTypeResolver.getParameterTypes(QueryParamTypeResolver.java:48) at org.mule.module.db.internal.resolver.param.DefaultParamTypeResolver.getParamTypes使用元數據(DefaultParamTypeResolver.java:74) at org.mule.module.db.internal.resolver.param.DefaultParamTypeResolver.getParameterTypes(DefaultParamTypeResolver.java:39) at org.mule.module.db.internal.domain.connection。 AbstractDbConnection.getParamTypes(AbstractDbConnection.java:53) at org.mule.module.db.internal.resolver.query.ParametrizedQueryResolver.getParameterTypes(ParametrizedQueryResolver.java:68) at org.mule.module.db.internal.resolver。 query.ParametrizedQueryResolver.resolve(ParametrizedQueryResolver.java:56) at org.mule.module.db.internal.processor.AbstractSingleQueryDbMessageProcessor.executeQuery(AbstractSingleQueryDbMessageProcessor.java:38) at org.mule.module.db.internal.processor。 AbstractDbMessageProcessor.process(AbstractDbMessageProcessor.java:66) 在org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) 在org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:58) 在org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate。的java:44) 在org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:24) 在org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) 在org.mule.interceptor.AbstractEnvelopeInterceptor。進程(AbstractEnvelopeInterceptor.java:51) at org.mule.processor.AsyncInterceptingMessageProcessor.processNextTi MED(AsyncInterceptingMessageProcessor.java:118) 在org.mule.processor.AsyncInterceptingMessageProcessor $ AsyncMessageProcessorWorker $ 1.process(AsyncInterceptingMessageProcessor.java:189) 在org.mule.processor.AsyncInterceptingMessageProcessor $ AsyncMessageProcessorWorker $ 1.process(AsyncInterceptingMessageProcessor.java:182) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor。 java:14) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:54) at org.mule.execution.ResolvePreviousTransactionInt erceptor.execute(ResolvePreviousTransactionInterceptor.java:44) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor。的java:50) 在org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40) 在org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41) 在org.mule.execution.ExternalTransactionInterceptor。執行(ExternalTransactionInterceptor.java:48) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) at org.mule。 execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:109) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemp late.java:30) 在org.mule.processor.AsyncInterceptingMessageProcessor $ AsyncMessageProcessorWorker.doRun(AsyncInterceptingMessageProcessor.java:181) 在org.mule.work.AbstractMuleEventWork.run(AbstractMuleEventWork.java:39) 在org.mule。 (ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)在工作中, 在java.lang.Thread.run(Thread.java:745)


回答

0

對於Oracle 12,你應該,如果你正在使用JDK 7或8 ojdbc6.jar O的使用ojdbc7.jar僅當使用JDK 6時,請使用ojdbc7.jar進行嘗試。

+0

我正在使用JDK 6的ojdbc6 jar,並且出現以上錯誤。 – MongoDBDeveloper