2017-03-09 49 views
0

后期间,我有以下流程设置:骡:NoClassDefFoundError的成功流处理

<set-variable variableName="year" value="#[message.inboundProperties.'http.query.params'.year]" doc:name="setYear"/>  
    <set-variable variableName="month" value="#[message.inboundProperties.'http.query.params'.month]" doc:name="setMonth"/> 
     <http:request config-ref="HTTP_Request_Configuration" path="/year/{year}/month/{month}/file.csv" method="GET" doc:name="deliverFile"> 
      <http:request-builder> 
       <http:uri-param paramName="year" value="#[flowVars.year]"/> 
       <http:uri-param paramName="month" value="#[flowVars.month]"/> 
      </http:request-builder> 
     </http:request> 
     <catch-exception-strategy doc:name="Catch Exception Strategy"> 
      <set-payload value="The request cannot be processed, the error is #[exception.getSummaryMessage()]" doc:name="Set Payload"/> 
     </catch-exception-strategy> 

一切正常&我能够下载文件但是,最后我得到以下错误:

重度:doSelect产生异常 java.lang.NoClassDefFoundError:无法初始化类org.glassfish.grizzly.localization.LogMessages 在org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:90) 在org.glassfish.grizzly .nio.transpo rt.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy。 run0(ExecutorPerServerAddressIOStrategy.java:102) 在org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.executeIoEvent(ExecutorPerServerAddressIOStrategy.java:75) 在org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(AbstractIOStrategy。 java:89) at org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:415) at org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:384) at org.glassfish。 grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java :348) at org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:279) at org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:591) at org.glassfish .grizzly.threadpool.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:571) 在java.lang.Thread.run(Thread.java:745)

回答

0

这doSelect产生的例外可能是这里已报告https://www.mulesoft.org/jira/plugins/servlet/mobile#issue/MULE-8989
的bug这可能已经在mule运行时固定了3.8.2:https://docs.mulesoft.com/release-notes/mule-3.8.2-release-notes
只需尝试最新的mule运行时间
更多参考:Mule gives error when making http request from JBoss

+0

你好Anirban,感谢您的提示.. however我在Mule运行时3.8.3,所以这个错误应该不会发生在第一个地方,如果固定在以前的版本 – insaneyogi