cancel
Showing results for 
Search instead for 
Did you mean: 

tc/col/runtime error SP9

Former Member
0 Kudos

Hi All,

We have upgraded our dev box to SP9, when I build the CAF-Core, I got an error "Illegal dependency Access list does not allow use of sap.com/tc/col/runtime", so I deleted it from used DC and build the project again, I got lot of errors because generated code is pointing to classes of public part tc/col/runtime. Has anybody come across this problem in SP9. Please let me know

Thanks

Som

Accepted Solutions (1)

Accepted Solutions (1)

Austin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Som,

The tc/col/runtime DC has been replaced with:

caf/runtime/uicoupling/api/lib

Please change your used DC to this.

Best Regards,

Austin.

Former Member
0 Kudos

Thank you Austin, it works now.

Som

Former Member
0 Kudos

Hi Austin,

in my dependency list there is no interface caf/runtime/uicoupling/api/lib, only caf/runtime/uicoupling but Im not able to choose that development component (illegal dependency).

How can I refer to the right interface?

Thanks in advance

Steve

Austin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Steve,

caf/runtime/uicoupling has been moved to caf/ui/ptn/common/CommonInterfaces.

Regards,

Austin.

Former Member
0 Kudos

Hi Austin (or others),

it tried it out, but the problem still exists.

The eroor message:

<i>The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.tc.col.client.generic.api.IAspect. Fix the classpath then try rebuilding this project. LocalDevelopmentreqinputsap.com.conti.cas </i>

What is the reason for?

The real problem is that I use an entity service in my application, which I created in SPS 8.

To get the connection between Web Dynpro and the entity-service-repository I used the /tc/col/runtime, but in SPS 9 that doesnt work.

Thanks for helping me

Steve

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

I'm download and using SAP NetWeaver 2004s Java Trial Version (SP9).

I've used the tutorial "Using a Composite Application via a WebDynpro UI".

I'm using the "caf/runtime/uicoupling/api/lib DC" and I add "sap.com/cafruntimeuicouplingapilib" in Java Build Path libraries.

The wdDoInit() method is:

public void wdDoInit()

{

//@@begin wdDoInit()

//Initialize location field:

IAspect aspectList;

IAspectRow aspectRow;

int count;

IWDAttributeInfo attributeInfoStart, attributeInfoTarget;

ISimpleTypeModifiable startLocation, targetLocation;

IModifiableSimpleValueSet valueSetStart, valueSetTarget;

//access the context and get the relevant value node:

attributeInfoStart = wdContext.nodeFindTravel().getNodeInfo().getAttribute("StartLocation");

startLocation = attributeInfoStart.getModifiableSimpleType();

valueSetStart = startLocation.getSVServices().getModifiableSimpleValueSet();

attributeInfoTarget = wdContext.nodeFindTravel().getNodeInfo().getAttribute("TargetLocation");

targetLocation = attributeInfoTarget.getModifiableSimpleType();

valueSetTarget = targetLocation.getSVServices().getModifiableSimpleValueSet();

//access the proxy and get all available locations

aspectList = TravelLocationServiceProxy.getAll();

//add wildcards for a general search:

valueSetStart.put("","");

valueSetTarget.put("","");

//loop over the result list

for (count = 0; count < aspectList.size(); count++) {

aspectRow = aspectList.getAspectRow(count);

//*****The problem is here:****

<b>valueSetStart.put(aspectRow.getAttributeAsString("Key"), aspectRow.getAttributeAsString("name"));

valueSetTarget.put(aspectRow.getAttributeAsString("Key"), aspectRow.getAttributeAsString("name"));</b>

}

//@@end

}

Before I used "caf/runtime/uicoupling/api/lib DC" I got this error:

java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspect

Instead, now, when I run WebDynpro application "TravelSearch" I got this exception:

Root Cause

The initial exception that caused the request to fail, was:

<b>java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IStructure</b>

Detailed Exception Chain

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.sap.carpool.travel.Travel. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)

at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:381)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:700)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)

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.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

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)

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)

... 27 more

Caused by: java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IStructure

at com.sap.carpool.travel.wdp.InternalTravel.<init>(InternalTravel.java:180)

... 32 more

Thanks in advance for helping me

Alfio

former_member206397
Contributor
0 Kudos

Hi Alfio,

You just go to the project property. Then go WebDynpro References -> Library references. Now click on "Add" button and add "sap.com/cafruntimeuicouplingapilib". Next you can build and deploy.

I think the problem will be solved.

Thanks and Regards

Chandan

Former Member
0 Kudos

Yes, I think NWDS SP9 version can fix that.

Actually you need to adjust your NWDI for SP9.

Best regards,

Aliaksei

Former Member
0 Kudos

Hi Steve,

Please add the "cafruntimeuicoupling~api" to your Used DCs. Public part is "compilation". That dependency must be marked only for "build" time.

Also, do not forget add runtime library reference to your project: "sap.com/cafruntimeuicouplingapilib".

And everything will work.

Best regards,

Aliaksei

Former Member
0 Kudos

Hi Aliaksei,

I cannot see that DC.

Is it necessary to update also my NWDS?

Thanks Steve

Former Member
0 Kudos

Hi Steve,

NWDI does not sync the SP9 SAP components, we had the same problem, import the new development configuration (rename the old 0 folder to something else) which will get all the SP9 SAP components, then copy ur old project to the current DTR and remove the unwanted DCs and add the new one's

Som