【问题标题】:ojdbc6 jar for 12c not working with mule 3.5用于 12c 的 ojdbc6 jar 不适用于 mule 3.5
【发布时间】:2016-12-08 13:19:28
【问题描述】:

我用于 oracle 11g 数据库的旧 ojdbc6 jar 在 mule 3.5 上运行良好,但是当我用 oracle 12 c 的那个 jar 替换该 jar 时,在运行我的 mule 流时出现以下错误: 异常堆栈是: 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.html)


根异常堆栈跟踪: org.mule.module.db.internal.domain.type.UnknownDbTypeException:找不到类型 ID 的映射:0 名称:null 在 org.mule.module.db.internal.domain.type.CompositeDbTypeManager.lookup(CompositeDbTypeManager.java:59) 在 org.mule.module.db.internal.resolver.param.QueryParamTypeResolver.getParameterTypes(QueryParamTypeResolver.java:48) 在 org.mule.module.db.internal.resolver.param.DefaultParamTypeResolver.getParamTypesUsingMetadata(DefaultParamTypeResolver.java:74) 在 org.mule.module.db.internal.resolver.param.DefaultParamTypeResolver.getParameterTypes(DefaultParamTypeResolver.java:39) 在 org.mule.module.db.internal.domain.connection.AbstractDbConnection.getParamTypes(AbstractDbConnection.java:53) 在 org.mule.module.db.internal.resolver.query.ParametrizedQueryResolver.getParameterTypes(ParametrizedQueryResolver.java:68) 在 org.mule.module.db.internal.resolver.query.ParametrizedQueryResolver.resolve(ParametrizedQueryResolver.java:56) 在 org.mule.module.db.internal.processor.AbstractSingleQueryDbMessageProcessor.executeQuery(AbstractSingleQueryDbMessageProcessor.java:38) 在 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.process(AbstractEnvelopeInterceptor.java:51) 在 org.mule.processor.AsyncInterceptingMessageProcessor.processNextTimed(AsyncInterceptingMessageProcessor.java:118) 在 org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker$1.process(AsyncInterceptingMessageProcessor.java:189) 在 org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker$1.process(AsyncInterceptingMessageProcessor.java:182) 在 org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16) 在 org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30) 在 org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:14) 在 org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:54) 在 org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:44) 在 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.execute(ExternalTransactionInterceptor.java:48) 在 org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) 在 org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) 在 org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:109) 在 org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:30) 在 org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker.doRun(AsyncInterceptingMessageProcessor.java:181) 在 org.mule.work.AbstractMuleEventWork.run(AbstractMuleEventWork.java:39) 在 org.mule.work.WorkerContext.run(WorkerContext.java:286) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 在 java.lang.Thread.run(Thread.java:745)


【问题讨论】:

    标签: oracle mule mule-studio mule-component ojdbc


    【解决方案1】:

    对于 Oracle 12,如果您使用 JDK 7 或 8,则应使用 ojdbc7.jar,仅在使用 JDK 6 时使用 ojdbc6.jar。请尝试使用 ojdbc7.jar。

    【讨论】:

    • 我在 JDK 6 中使用 ojdbc6 jar,但出现上述错误。
    猜你喜欢
    • 1970-01-01
    • 2016-09-19
    • 1970-01-01
    • 2019-01-28
    • 2011-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-04
    相关资源
    最近更新 更多