cancel
Showing results for 
Search instead for 
Did you mean: 

BI_SDK_XMLA J2ee project - Can't get instance from Connection Factory

Former Member
0 Kudos

Hi:

The code:

initctx = new InitialContext();

connectionFactory=(IConnectionFactory) initctx.lookup("java:comp/env/" + "SDK_XMLA");

At debug time I watch:

"

initctx.lookup("java:comp/env/" + "SDK_XMLA")

"= XmlaConnectionFactory (id=333)
m_connectionManager= ConnectionManagerImpl (id=339)
m_managedConnectionFactory= XmlaManagedConnectionFactory (id=343)

m_reference= null


m_timeout= 0

In detail m_managedConnectionFactory= XmlaManagedConnectionFactory (id=343)
m_defaultCM= false
m_logWriter= null

m_properties= Properties (id=445) are OK! I can see all the properties set at Visual Administration



This is the error I get ( line:

connectionFactory=(IConnectionFactory) initctx.lookup("java:comp/env/"+"SDK_XMLA");

)

Application error occurred during request processing. Details:

java.lang.ClassCastException: null

Exception id:

Any idea how to solve this problem? If I can see all the connection properties why I'm getting a null reference??

Where I should put the "

Exception id

" to get it's description?.

Thanks a lot for your time on this thread.

Rocío.

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Rocío,

Search for this exception id in the defaultTrace.trc file in /usr/sap//log.

The ClassCastException suggests that probably you have not set up the necessary references from your application doing the lookup to the lib(s) providing the ConnectionFactory object.

Hope that helps a bit!

-Vladimir

Former Member
0 Kudos

Hi Vladimir thanks for your answer:

I can`t access to the server file system, some configuration to see them remotely is missing so I must wait. The only thing I can see is the exception's path and file.

Sure this helps a bit "you have not set up the necessary references from your application doing the lookup to the lib(s) providing the ConnectionFactory object." but I'm wondering how the ide (NWDS) compiles the code....because it don't do it if the project have missing jars ( to use at development or run time, if the last one have relation with the first one). I follow sap tutorial and all the references it said are in.

Thanks a lot for your time.

Rocí

Vlado
Advisor
Advisor
0 Kudos

Hi Rocío,

but I'm wondering how the ide (NWDS) compiles the code....

Build time references (project build path) is one thing, runtime references are another thing. At design time you may reference some projects and/or external jars that are not present on the server at runtime as deployed components.

Build time dependencies are not automatically converted to runtime references, you have to specify those in the application metadata. Have a look at this document and the links it contains for more information.

-Vladimir

Former Member
0 Kudos

Vladimir:

This is the error at server.log

Exception id: [0002A5421DE400610000010000000E78000427B67FAB800E]#

#1.5#0002A5421DE4006B000000B400000E78000427B68371274C#1169564749641#/System/Server#sap.com/irj#com.sap.portal.prt.runtime.broker#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#SAPEngine_Application_Thread[impl:3]_29##0#0#Warning#1#com.sap.portal.prt.runtime.broker#Plain###[PortalComponentItem.refresh] AuthRequirement property is deprecated for EP6.0 components, please check: com.sap.portal.support.desk.default#

#1.5#0002A5421DE4006B000000B500000E78000427B683CFD26D#1169564755844#/System/Server##com.sap.engine.services.httpserver#Guest#2##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#SAPEngine_Application_Thread[impl:3]_29##0#0#Warning#1#com.sap.engine.services.httpserver#Plain###User Guest, IP address

Received a part of an HTTP request body for an already processed request. The HTTP request body part will be skipped. Possible reason: the request body has not been read by the requested servlet.#

#1.5#0002A5421DE40068000000C100000E78000427B68AE296BA#1169564874534#/System/Server##com.sap.engine.services.httpserver#Guest#2####80637c60aaf311dbc2d10002a5421de4#SAPEngine_Application_Thread[impl:3]_34##0#0#Warning#1#com.sap.engine.services.httpserver#Plain###User Guest, IP address

Received a part of an HTTP request body for an already processed request. The HTTP request body part will be skipped. Possible reason: the request body has not been read by the requested servlet.#

#1.5#0002A5421DE40054000000D300000E78000427B68AE2972E#1169564874534#/System/Server##com.sap.engine.services.httpserver#Guest#2####80637c61aaf311db85750002a5421de4#SAPEngine_Application_Thread[impl:3]_30##0#0#Warning#1#com.sap.engine.services.httpserver#Plain###User Guest, IP address

Received a part of an HTTP request body for an already processed request. The HTTP request body part will be skipped. Possible reason: the request body has not been read by the requested servlet.#

#<b>1.5#0002A5421DE400980000000B00000E78000427B68C019A6A#1169564893347#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.guimachine.BIKit on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.guimachine.BIKit#common:library:bimmrcore;library:bimmrdb#

#1.5#0002A5421DE400980000000C00000E78000427B68D0790F8#1169564910519#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.activityreport.editor on the system, but will register reference for furture </b>usage.#2#sap.com/com.sap.portal.activityreport.editor#library:com.sap.portal.common#

#1.5#0002A5421DE400980000000D00000E78000427B68D25CFA3#1169564912488#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.compatibility50.newexportal on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.compatibility50.newexportal#library:com.sap.portal.common#

#1.5#0002A5421DE400980000000E00000E78000427B68D38E80F#1169564913754#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.dqe.admintool.businessobjecttree on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.dqe.admintool.businessobjecttree#service:DQE#

#1.5#0002A5421DE400980000000F00000E78000427B68D391106#1169564913754#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.applications.enterprise.iviews.wizard on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.applications.enterprise.iviews.wizard#service:DQE#

#1.5#0002A5421DE400980000001000000E78000427B68D3D8544#1169564914050#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.dqe.admintool.metadataloader on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.dqe.admintool.metadataloader#service:DQE#

#1.5#0002A5421DE400980000001100000E78000427B68D3EFD57#1169564914144#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.dqe.admintool.propertyeditor on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.dqe.admintool.propertyeditor#service:DQE#

#1.5#0002A5421DE400960000000200000E78000427B68D3FFD5C#1169564914207#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.dqe.admintool.session on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.dqe.admintool.session#service:DQE#

#1.5#0002A5421DE400960000000300000E78000427B68D412A80#1169564914285#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.dqe.clienttest on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.dqe.clienttest#service:DQE#

#1.5#0002A5421DE400980000001200000E78000427B68D4D3462#1169564915082#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.httpconnectivity.webtargets on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.httpconnectivity.webtargets#library:com.sap.portal.common#

#1.5#0002A5421DE400960000000400000E78000427B68D4E9926#1169564915175#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.ivs.alias_editor on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.ivs.alias_editor#library:com.sap.portal.common#

#1.5#0002A5421DE400960000000500000E78000427B68D553F1A#1169564915597#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.ivs.mass_editor on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.ivs.mass_editor#library:com.sap.portal.common#

#1.5#0002A5421DE400960000000600000E78000427B68D56B3B8#1169564915707#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.ivs.sl.connector.helper on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.ivs.sl.connector.helper#library:com.sap.portal.services.internal.api#

#1.5#0002A5421DE400960000000700000E78000427B68D57B64F#1169564915769#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.ivs.systemlandscapeCockpit on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.ivs.systemlandscapeCockpit#service:DQE#

#1.5#0002A5421DE400980000001300000E78000427B68D5D5C65#1169564916129#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader CORE:sap.com/com.sap.portal.logviewer620 on the system, but will register reference for furture usage.#2#CORE:sap.com/com.sap.portal.logviewer620#common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore#

#1.5#0002A5421DE400960000000800000E78000427B68D65DD6A#1169564916691#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.navigation.navigationtaglibrary on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.navigation.navigationtaglibrary#library:com.sap.portal.common#

#1.5#0002A5421DE400960000000900000E78000427B68D68194D#1169564916847#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.navigation.masthead on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.navigation.masthead#library:com.sap.portal.common#

#1.5#0002A5421DE400960000000A00000E78000427B68D69C6D8#1169564916957#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.navigation.objbased on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.navigation.objbased#library:com.sap.portal.common#

#1.5#0002A5421DE400960000000B00000E78000427B68D6D131F#1169564917160#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sap.portal.navigation.worksetmap on the system, but will register reference for furture usage.#2#sap.com/com.sap.portal.navigation.worksetmap#library:com.sap.portal.common#

#1.5#0002A5421DE400960000000C00000E78000427B68DF2EB8A#1169564925941#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 0,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader CORE:sap.com/com.sap.portal.usermanagement.admin on the system, but will register reference for furture usage.#2#CORE:sap.com/com.sap.portal.usermanagement.admin#interface:keystore_api#

#1.5#0002A5421DE400980000001400000E78000427B68DFA344D#1169564926410#/System/Server#sap.com/irj#com.sap.engine.core.classload.impl0.LoadContextImpl.registerReferenceInternal(String from, String to)#YP10180#3506##sdbuetbsap07.la.gr_PD0_1793750#YP10180#2cb2c5d0aaf311dbade10002a5421de4#Thread[PRT-Async 7,5,PRT-Async]##0#0#Warning#1#com.sap.engine.core.classload.impl0.LoadContextImpl#Java###Cannot find loader sap.com/com.sapportals.navigation.testComponent on the system, but will register reference for furture usage.#2#sap.com/com.sapportals.navigation.testComponent#library:com.sap.portal.common#

#1.5#0002A5421DE400570000009F00000E78000427B68E291E49#1169564929488#/System/Server##com.sap.engine.services.httpserver#Guest#2####a124cd00aaf311db88a10002a5421de4#SAPEngine_Application_Thread[impl:3]_19##0#0#Warning#1#com.sap.engine.services.httpserver#Plain###User Guest, IP address

Received a part of an HTTP request body for an already processed request. The HTTP request body part will be skipped. Possible reason: the request body has not been read by the requested servlet.#

#1.5#0002A5421DE40055000000B300000E78000427B68E29217F#1169564929488#/System/Server##com.sap.engine.services.httpserver#Guest#2####a124cd01aaf311dbce9f0002a5421de4#SAPEngine_Application_Thread[impl:3]_7##0#0#Warning#1#com.sap.engine.services.httpserver#Plain###User Guest, IP address

Received a part of an HTTP request body for an already processed request. The HTTP request body part will be skipped. Possible reason: the request body has not been read by the requested servlet.#

#1.5#0002A5421DE400630000009C00000E78000427B68FE30636#1169564958457#/System/Server/SLDService#sap.com/tcwddispwda#com.sap.sldserv.SldApplicationService#YP10180#3530####b1571250aaf311db923b0002a5421de4#ID\#(J2EE1793700)ID2040957250DB11393239843525090788End.b1608830aaf311dbcf9a0002a5421de4##0#0#Warning#1#com.sap.sldserv.SldApplicationService#Plain###Insufficient permissions for getting SLD access information. You can add permissions for your application via the SLD service in the 'Visual Administrator'.#

#1.5#0002A5421DE400630000009F00000E78000427B68FE34A37#1169564958473#/System/Server/SLDService#sap.com/tcwddispwda#com.sap.sldserv.SldApplicationService#YP10180#3530####b1571250aaf311db923b0002a5421de4#ID\#(J2EE1793700)ID2040957250DB11393239843525090788End.b1608830aaf311dbcf9a0002a5421de4##0#0#Warning#1#com.sap.sldserv.SldApplicationService#Plain###Insufficient permissions for getting SLD access information. You can add permissions for your application via the SLD service in the 'Visual Administrator'.#

Thanks for your time.

Vlado
Advisor
Advisor
0 Kudos

Search for the stack trace of the <b>ClassCastException</b> with that ID in the <b>defaultTrace.trc</b> file.

Former Member
0 Kudos

Vladimir thanks for your time, here it is:

App Error:

Application error occurred during request processing. Details:

java.lang.ClassCastException: null

Exception id:




At defaultTrace.trc



#1.5#

0002A5421DE400550000006E00001754000427DF3D5A3570

#1169739667615#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/TestJ2eeCubo#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#2####792f02f0ac8a11dba3ae0002a5421de4#SAPEngine_Application_Thread[impl:3]_3##0#0#Error##Plain###Processing HTTP request to servlet finished with error. The error is:

java.lang.ClassCastException


at com.repsolypf.testj2eecubo.servlet.TestJ2eeCuboServlet.doGet(TestJ2eeCuboServlet.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
#
#1.5#0002A5421DE400550000007000001754000427DF3D5A3B01#1169739667615#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/TestJ2eeCubo#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#2####792f02f0ac8a11dba3ae0002a5421de4#SAPEngine_Application_Thread[impl:3]_3##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet finished with error.

The error is: java.lang.ClassCastException: null

Exception id: </b>#

#1.5#0002A5421DE4006C0000008400001754000427DF431602DF#1169739763834#com.sapportals.wcm.repository.manager.cm.CmRepositoryManager#sap.com/irj#com.sapportals.wcm.repository.manager.cm.CmRepositoryManager.startUpImpl(341)#Guest#2####9331ca30ac7011dbbe530002a5421de4#Thread[Thread-161,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###Error occured while retrieving canonical name for folder '

10.11.8.228

IndexRepo

Doc' (jcifs.smb.SmbException: Connection timed out: connect)#

#1.5#0002A5421DE4006C0000008500001754000427DF431A9807#1169739764130#com.sapportals.wcm.repository.manager.sfs.FSRepositoryManager#sap.com/irj#com.sapportals.wcm.repository.manager.sfs.FSRepositoryManager#Guest#2####9331ca30ac7011dbbe530002a5421de4#Thread[Thread-161,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###getting mapped math - jcifs.smb.SmbAuthException: Access denied

at jcifs.smb.SmbTransport.send(SmbTransport.java:751)

at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:140)

at jcifs.smb.SmbSession.send(SmbSession.java:103)

at jcifs.smb.SmbTree.treeConnect(SmbTree.java:132)

at jcifs.smb.SmbFile.connect(SmbFile.java:674)

at jcifs.smb.SmbFile.connect0(SmbFile.java:644)

at jcifs.smb.SmbFileExt.connect0(SmbFileExt.java:113)

at jcifs.smb.SmbFile.queryPath(SmbFile.java:1033)

at jcifs.smb.SmbFile.exists(SmbFile.java:1116)

at jcifs.smb.SmbFileExt.exists(SmbFileExt.java:128)

at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1187)

at com.sap.netweaver.dce.JcifsFile.canonicalizeNonExistanceParent(JcifsFile.java:775)

at com.sap.netweaver.dce.JcifsFile.canonicalizeNonExistanceParent(JcifsFile.java:786)

at com.sap.netweaver.dce.JcifsFile.canonicalizeNonExistanceParent(JcifsFile.java:786)

at com.sap.netweaver.dce.JcifsFile.canonicalizeNonExistanceParent(JcifsFile.java:786)

at com.sap.netweaver.dce.JcifsFile.canonicalizeNonExistanceParent(JcifsFile.java:786)

at com.sap.netweaver.dce.JcifsFile.canonicalizeNonExistanceParent(JcifsFile.java:786)

at com.sap.netweaver.dce.JcifsFile.getCanonicalPathExt(JcifsFile.java:640)

at com.sapportals.wcm.repository.util.file.SmbFileImpl.internalGetCanonicalPath(SmbFileImpl.java:156)

at com.sapportals.wcm.repository.util.file.SmbFileImpl.getCanonicalFile(SmbFileImpl.java:150)

at com.sapportals.wcm.repository.manager.sfs.FSRepositoryManager.startUpImpl(FSRepositoryManager.java:141)

at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.start(AbstractRepositoryManager.java:523)

at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.tryToStart(CrtThreadSafeComponentHandler.java:246)

at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler$1.run(CrtThreadSafeComponentHandler.java:252)

at java.util.TimerThread.mainLoop(Timer.java:432)

at java.util.TimerThread.run(Timer.java:382)

#

Thanks a lot for tour time on this thread.

Rocío.

Vlado
Advisor
Advisor
0 Kudos

OK, you can try the following:

1. Open the telnet admin: telnet <host> <port>

(<port> = 5<JC-number>08)

2. Execute: JUMP 0

3. Execute: LLR sap.com/TestJ2eeCubo -L com.sapportals.connector.connection.IConnectionFactory

See what's in the "Loaded from:" field. It has to be <b>library:tcconnconnectorframework</b>. If it is different, this is the reason for the ClassCastException.

BTW, have you declared correctly the resource-ref for "SDK_XMLA" in your web.xml?

Hope that helps!

-Vladimir

Former Member
0 Kudos

Hi Vladimir,

Thanks for keeping in touch!.

I can't authenticate my self at point 1, so I must wait to get feedback when the task gets complete.

I think that I have declared correctly the resource-ref for "SDK_XMLA" in my web.xml, here it is:

Thanks a lot for your time on this thread.

Rocío.

Former Member
0 Kudos

Something better!

I chage the reference type and now I get "com.sap.ip.bi.sdk.exception.BIConnectionFailedException: Cannot open the connection" at line...

connection =(IBIConnection) connectionFactory.getConnectionEx(null);

Thanks a lot for your time on this thread.

Rocío

Message was edited by:

Rocío Lorena Suárez

Vlado
Advisor
Advisor
0 Kudos

Hi Rocío,

That's great So, finally you have managed to lookup the ConnectionFactory in the JNDI.

Regarding the BIConnectionFailedException, I would suggest that you have a look at the nested ResourceException and/or post this in one of the /community where you could probably get more support on this specific BI issue.

HTH!

-Vladimir

Former Member
0 Kudos

I'm curious as to what you changed the reference type to?

Former Member
0 Kudos

Hi Toby:

You can see it at your "application-j2ee-engine.xml". Open the file --> General and you will see the Reference folder, you can add and change the type from there.

Luck!.

Rocí

Answers (0)