Box API Connection error
Created an OAuth 2.0 (User or Client Authentication) app within Box Developer Apps. When click a link in a third-party java file is called and app runs the following code and fails on the 4th line "public static BoxAPIConnection api..." see error block below. I'm not sure how to resolve issue.
<CommonBaseEvent creationTime="2023-02-16T09:26:49.040-05:00" globalInstanceId="ELac1430260001858224d2ea000000dc" msg="CLFAD0246E: Exception occurred servicing request for: /iSWA/OTLM/OnlineTeamLeaderManual.nsf/_download.xsp - HTTP Code: 500" severity="50" version="1.0.1">
<extendedDataElements name="CommonBaseEventLogRecord:level" type="noValue">
<children name="CommonBaseEventLogRecord:name" type="string">
<values>SEVERE</values>
</children>
</extendedDataElements>
<extendedDataElements name="CommonBaseEventLogRecord:sourceClassName" type="string">
<values>com.ibm.domino.xsp.bridge.http.engine.XspCmdManager</values>
</extendedDataElements>
<extendedDataElements name="CommonBaseEventLogRecord:sourceMethodName" type="string">
<values>service</values>
</extendedDataElements>
<extendedDataElements name="CommonBaseEventLogRecord:Exception" type="string">
<values>javax.servlet.ServletException: java.lang.NoClassDefFoundError: com.box.sdk.BoxAPIConnection
	at com.ibm.xsp.webapp.FacesServlet.handleError(FacesServlet.java:690)
	at com.ibm.xsp.webapp.FacesServlet.renderErrorPage(FacesServlet.java:512)
	at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:186)
	at com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:138)
	at com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)
	at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:600)
	at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1352)
	at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:877)
	at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:820)
	at com.ibm.designer.runtime.domino.adapter.ComponentModule.d</values>
<values>oService(ComponentModule.java:589)
	at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1336)
	at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:725)
	at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:515)
	at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:371)
	at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:327)
	at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:298)
Caused by: java.lang.NoClassDefFoundError: com.box.sdk.BoxAPIConnection
	at com.oltlm.xsp.FileDownload_Box.<clinit>(FileDownload_Box.java:21)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java</values>
<values>:55)
	at java.lang.reflect.Method.invoke(Method.java:508)
	at com.ibm.jscript.types.JavaAccessObject.call(JavaAccessObject.java:322)
	at com.ibm.jscript.types.FBSObject.call(FBSObject.java:161)
	at com.ibm.jscript.ASTTree.ASTCall.interpret(ASTCall.java:197)
	at com.ibm.jscript.ASTTree.ASTDebug.interpret(ASTDebug.java:148)
	at com.ibm.jscript.ASTTree.ASTDebug.interpret(ASTDebug.java:148)
	at com.ibm.jscript.ASTTree.ASTIf.interpret(ASTIf.java:85)
	at com.ibm.jscript.ASTTree.ASTDebug.interpret(ASTDebug.java:148)
	at com.ibm.jscript.ASTTree.ASTProgram.interpret(ASTProgram.java:119)
	at com.ibm.jscript.ASTTree.ASTProgram.interpretEx(ASTProgram.java:139)
	at com.ibm.jscript.JSExpression._interpretExpression(JSExpression.java:435)
	at com.ibm.jscript.JSExpression.access$1(JSExpression.java:424)
	at com.ibm.jscript.JSExpression$2.run(JSExpression.java:414)
	at java.security.AccessController.doPrivileged(Acce</values>
<values>ssController.java:774)
	at com.ibm.jscript.JSExpression.interpretExpression(JSExpression.java:410)
	at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:251)
	at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:234)
	at com.ibm.xsp.javascript.JavaScriptInterpreter.interpret(JavaScriptInterpreter.java:222)
	at com.ibm.xsp.binding.javascript.JavaScriptMethodBinding.invoke(JavaScriptMethodBinding.java:111)
	at com.ibm.xsp.component.UIViewRootEx.initAfterContents(UIViewRootEx.java:1824)
	at com.ibm.xsp.page.compiled.AbstractCompiledPage.initComponent(AbstractCompiledPage.java:335)
	at com.ibm.xsp.page.compiled.AbstractCompiledPage.createTree(AbstractCompiledPage.java:256)
	at com.ibm.xsp.page.compiled.AbstractCompiledPage.createViewRoot(AbstractCompiledPage.java:167)
	at com.ibm.xsp.application.ViewHandlerExImpl._createViewRoot(ViewHandlerExImpl.java:550)
	at com.ibm.xsp.application.ViewHandlerExImpl.crea</values>
<values>teViewRoot(ViewHandlerExImpl.java:596)
	at com.ibm.xsp.application.ViewHandlerExImpl.doCreateView(ViewHandlerExImpl.java:144)
	at com.ibm.xsp.application.ViewHandlerEx.createView(ViewHandlerEx.java:90)
	at com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:254)
	at com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:157)
	at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:163)
	... 13 more
Caused by: java.lang.ClassNotFoundException: Cannot find class com.box.sdk.BoxAPIConnection in NSF
	at com.ibm.domino.xsp.module.nsf.ModuleClassLoader$DynamicClassLoader.findClass(ModuleClassLoader.java:519)
	at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:945)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:890)
	at com.ibm.domino.xsp.module.nsf.ModuleClassLoader$DynamicClassLoader.loadClass(ModuleClassLoader.java:419)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:873)
</values>
<values>	... 47 more
</values>
</extendedDataElements>
<sourceComponentId component="Expeditor 6.2" componentIdType="ProductName" instanceId="" location="SERVER.DOMAINNAME.COM" locationType="Hostname" subComponent="" threadId="59" componentType="http://www.w3.org/2001/XMLSchema-instance"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent></CommonBaseEvents>
The only difference from most documentation is my redirect uri looks like
Any help is appreciated.
サインインしてコメントを残してください。
コメント
0件のコメント