2016-12-08 41 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