[B cannot be cast to java.lang.String
bug代码行:String source = new String(Base64.decode((String) data));
//csgproj-VerticallyImpl
bug原因:data在未经过Base64编码的情况下,使用Base64解码。
stack trace:
[09-13 10:18:15.468 WARN ProcessFaultAction.execute():85] [B cannot be cast to java.lang.String
java.lang.ClassCastException:[Bcannotbecasttojava.lang.String
atcom.metarnet.ws.csg.VerticallyImpl.dispatchFaultDoc(VerticallyImpl.java:369)
atcom.metarnet.ws.csg.VerticallyImpl.dispatchFaultDoc(VerticallyImpl.java:396)
attmis.fault.function.SendZdInfoByProvinceInterface.execute(SendZdInfoByProvinceInterface.java:122)
atcom.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:862)
atcom.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1266)
atcom.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:560)
attmis.fault.struts.ProcessFaultAction.execute(ProcessFaultAction.java:69)
atorg.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
atcom.metarnet.plugin.log.strtus.LogRequestProcessor.process(LogRequestProcessor.java:60)
atorg.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
atorg.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:637)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atorg.apache.commons.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:170)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atorg.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188)
ateoms.common.extension.SecurityFilterExtension.doFilter(SecurityFilterExtension.java:124)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
atjava.lang.Thread.run(Thread.java:619)