gpt4 book ai didi

java - Cognos 10.2 SDK : UnsupportedClassVersionError

转载 作者:行者123 更新时间:2023-12-01 04:38:05 31 4
gpt4 key购买 nike

我有一个应用程序,它使用两个 jar 文件 axis.jar 和 axisCognosClient.jar 连接到 cognos 环境

Cognos 将其版本从 cognos 10.1.1 升级到 cognos 10.2,我已从 Cognos 10.2 SDK 中提取了新的 jar 文件并将其包含在我的项目中,一切都成功编译,但在运行时出现以下异常。

[6/10/13 13:47:14:609 CDT] 00000028 RequestProces Worg.apache.struts.action.RequestProcessor processException Unhandled Exception thrown: class sf.jra.util.reflect.MethodInvocationException
[6/10/13 13:47:14:609 CDT] 00000028 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: action. Exception thrown : javax.servlet.ServletException: public org.apache.struts.action.ActionForward sf.gds.web.iflex.cognos.actions.CreateReportAction.runReport(org.apache.struts.action.ActionMapping,org.apache.struts.action.ActionForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) threw a RuntimeException during a reflection invocation.
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Caused by: com.ibm.ws.exception.WsEJBException: nested exception is: java.lang.UnsupportedClassVersionError: (com/cognos/developer/schemas/bibus/_3/AgentService_ServiceLocator) bad major version at offset=6
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:229)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.setUncheckedException(LocalExceptionMappingStrategy.java:394)
at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedLocalException(EJSDeployedSupport.java:473)
at sf.gds.service.iflex.ejbs.EJSLocalStatelessCreateReport_dad64636.createReport(EJSLocalStatelessCreateReport_dad64636.java:35)
... 50 more
Caused by: java.lang.UnsupportedClassVersionError
(com/cognos/developer/schemas/bibus/_3/AgentService_ServiceLocator) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:266)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:577)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:529)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:412)
at java.lang.ClassLoader.loadClass(ClassLoader.java:605)
at sf.gds.service.iflex.cognos.api.provided.CRNConnect.connectToCognosServer(CRNConnect.java:263)

知道为什么我们会遇到这种异常吗?

最佳答案

检查 Cognos 安装的 Java 版本以及您的应用程序使用的 Java 版本。

对于Cognos 10.1 :IBM Cognos BI 提供的当前版本是 JRE 1.5.0。

对于Cognos 10.2 :IBM Cognos BI 提供的当前版本是 JRE 6.0。

关于java - Cognos 10.2 SDK : UnsupportedClassVersionError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17032049/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com