cancel
Showing results for 
Search instead for 
Did you mean: 

Entity Service test issue (Service Browser)

Former Member
0 Kudos

Hi,

I'm trying to exchange data between a Callable Object and a WebService method.

I createt a CAF Development Component and importet a webservice. I capsuled a method in an Entity Service (deactivatet local persistency).

When i now try to test this Entity Service through the Service Browser, i get the following error message:

<b>ERROR: No business object instance found</b>

The WebService works fine with the same parameters. I can test it with the Web Service Navigator.

The strange part is: no Entity Service in my System works through the Service Browser test. No self made Entity Service and none of the preinstalled SAP Entity Service.

I always get the same error.

Is this some installation or configuration issue?

Also: i can't find any information about this error in the logs. Although i changed the severity in the visual administrator from FATAL to ALL.

I'm using the NW SneakPreview SP15. Regarding to the tutorial "81 Integrate a Web Service in Your Composite as an External Service*" this should work in the preview version.

Best Regards,

Manuel

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Last time I had this same problem of yours is because the Entity Service is not properly deployed. Upon deployment, there is some errors happen. What I can suggest is try to redeploy your CAS and make sure no errors happen

Regards,

Erick

jan_rauscher
Advisor
Advisor
0 Kudos

Hi,

Please make sure that the build of your DC is without any error. Furthermore please check the log file of the J2EE engine. It's called 'defaultTrace.<#>.trc' where # is a count variable starting with 0. This file is located in a path similar to this one 'C:\usr\sap\<SID>\JC30\j2ee\cluster\server0\log' (where <SID> is the system id, e.g. 'F04').

Open this log file with the notepad and search for notion 'exception', probably you'll get more info about the error.

Regards,

Jan

Former Member
0 Kudos

Hi,

I'm using the WebService (EDMFoundationWS with method getEmployee, exists on SAP Web AS) which is working. i testet it with the WebService Navigator and the ID 20 and got a Employee back.

The build of the DC was successfuly.

In the default trace log i don't get a error message when i'm executing the query from the Entity Service!! There is no log entry within the timeframe i executet this query.

Although i switched the property "DatabaseLogs_Severity" to ALL in the Visual Administrator. (Entries "Dispatcher 0 0_28668" and "Server 0 0_28668" > "Kernel\LogManager").

That's strange. Is there any other "severity switch" regarding to caf i missed??

But, there are Errors within the default trace:

-


> seems to be occuring when the session is becoming invalid.

Date : 05/05/2006

Time : 13:38:57:890

Message : synchronous revert failed: missing name server configuration, no logon known -> operation will be retried name reservation : name server=http://localhost:50000/, category=SAP_DevelopmentComponentName, name=example.org/test/vdjdfvjdvjhd/dfdjn/jsnfj, reservationKey=17593417, state=REVERT_PENDING

Severity : Error

Category : /Applications/DTR/BackgroundTasks

Location : com.tssap.dtr.server.deltav.nameres.impl.NameReservationManager

Application : sap.com/tcdtrenterpriseapp

Thread : Thread[Scheduler_com.tssap.dtr.server.deltav.nameres.ProcessNameReservationsTask#15_workerThread#0,1,Scheduler_com.tssap.dtr.server.deltav.nameres.ProcessNameReservationsTask#15]

Datasource : 1146829136458:C:\usr\sap\J2E\JC00\j2ee\cluster\server0\log\defaultTrace.trc

Message ID : 000D605E209402B5000000040000090800041308F762F94C

Source Name : com.tssap.dtr.server.deltav.nameres.impl.NameReservationManager

Argument Objs :

Arguments :

Dsr Component :

Dsr Transaction : bd393b80dc2b11dabe24000d605e2094

Dsr User :

Indent : 0

Level : 0

Message Code :

Message Type : 0

Relatives : /Applications/DTR/BackgroundTasks

Resource Bundlename :

Session : 0

Source : com.tssap.dtr.server.deltav.nameres.impl.NameReservationManager

ThreadObject : Thread[Scheduler_com.tssap.dtr.server.deltav.nameres.ProcessNameReservationsTask#15_workerThread#0,1,Scheduler_com.tssap.dtr.server.deltav.nameres.ProcessNameReservationsTask#15]

Transaction :

User : Guest

-


> there are many of theese in the log, i don't know where tey come from

Date : 05/05/2006

Time : 13:01:07:303

Message : Cannot read associated instance with MOF ID 799E464C0ABBF6C70A2B2E16C951A281 of MOF Layer 2 for (46E52F6788684D5A1D7156AF1F58F0B2,<null>)

Severity : Error

Category : /Applications/MMR

Location : com.sap.ip.mmr.foundation.AssociationsContainer.AssociationsContainer::ListReferencesIterator::next()

Application : sap.com/cafmpmmradapterear

Thread : ID#(J2EE2866800)ID1689313750DB01076658954693738778End.3f6ee0b0dc2611dabaf9000d605e2094

Datasource : 1146829136458:C:\usr\sap\J2E\JC00\j2ee\cluster\server0\log\defaultTrace.trc

Message ID : 000D605E2094005700000D4C0000090800041308700B8BD3

Source Name : com.sap.ip.mmr.foundation.AssociationsContainer

Argument Objs : 2,799E464C0ABBF6C70A2B2E16C951A281,46E52F6788684D5A1D7156AF1F58F0B2,<null>,

Arguments : 2,799E464C0ABBF6C70A2B2E16C951A281,46E52F6788684D5A1D7156AF1F58F0B2,<null>,

Dsr Component : stgn0017.sdm.de_J2E_2866850

Dsr Transaction : 3df70dc0dc2611da9e40000d605e2094

Dsr User : admin

Indent : 0

Level : 0

Message Code :

Message Type : 1

Relatives : /Applications/MMR

Resource Bundlename :

Session : 1344

Source : com.sap.ip.mmr.foundation.AssociationsContainer

ThreadObject : ID#(J2EE2866800)ID1689313750DB01076658954693738778End.3f6ee0b0dc2611dabaf9000d605e2094

Transaction : SAP J2EE Engine JTA Transaction : [02bffffffbeffffffa20002]

User : admin

-


> Meybe this is important?? some of the important components might not be loaded??!

> There are other error messages for about 20 other manager objects

Date : 05/05/2006

Time : 9:53:33:952

Message : MBean with name :name=BusinessObjectManager,component=cafeugp not found in repository

Severity : Error

Category : /System/Server

Location : com.sap.caf.eu.gp.model.jmx.web.MbeanRegisterServlet

Application : sap.com/cafeugpmodeljmx~eap

Thread : SAPEngine_Application_Thread[impl:3]_4

Datasource : 1146829136458:C:\usr\sap\J2E\JC00\j2ee\cluster\server0\log\defaultTrace.trc

Message ID : 000D605E209400740000001C0000090800041305D14E4B15

Source Name : com.sap.caf.eu.gp.model.jmx.web.MbeanRegisterServlet

Argument Objs :

Arguments :

Dsr Component :

Dsr Transaction : 403d2c00dc0c11da9516000d605e2094

Dsr User :

Indent : 0

Level : 0

Message Code :

Message Type : 0

Relatives : /System/Server

Resource Bundlename :

Session : 179

Source : com.sap.caf.eu.gp.model.jmx.web.MbeanRegisterServlet

ThreadObject : SAPEngine_Application_Thread[impl:3]_4

Transaction :

User : Administrator

-


> maybe also important

Date : 05/05/2006

Time : 9:53:19:683

Message : RegisterNode</Applications/KM Collaboration/SCF/Service Connectors>: com.sap.engine.library.monitor.mapping.ccms.CcmsConnectorException: 2866850: Invalid configuration group for node'/Applications/KM Collaboration/SCF/Service Connectors' (APP.KM.Collaboration.SCF.ConfiguredConnectors, max. 40 characters)

Severity : Error

Category :

Location : com.sap.engine.library.monitor.mapping.ccms.Trace

Application :

Thread : SAPEngine_System_Thread[impl:5]_52

Datasource : 1146829136458:C:\usr\sap\J2E\JC00\j2ee\cluster\server0\log\defaultTrace.trc

Message ID : 000D605E20940041000000BB0000090800041305D074B754

Source Name : com.sap.engine.library.monitor.mapping.ccms.Trace

Argument Objs :

Arguments :

Dsr Component :

Dsr Transaction : d16ce7d0dc0a11dab2de000d605e2094

Dsr User :

Indent : 0

Level : 0

Message Code :

Message Type : 0

Relatives :

Resource Bundlename :

Session :

Source : com.sap.engine.library.monitor.mapping.ccms.Trace

ThreadObject : SAPEngine_System_Thread[impl:5]_52

Transaction :

User :

-


> Traces vom DeployService?? Noch keine gefunden

Date : 05/05/2006

Time : 9:46:38:699

Message :

Operation startApp over application sap.com/caf~core finished with errors on server 2866850. For more detailed information see traces of Deploy Service.

Severity : Error

Category : /System/Server

Location : com.sap.engine.services.deploy

Application :

Thread : SAPEngine_System_Thread[impl:5]_61

Datasource : 1146829136458:C:\usr\sap\J2E\JC00\j2ee\cluster\server0\log\defaultTrace.trc

Message ID : 000D605E20940018000000B10000090800041305B88C6BB6

Source Name : com.sap.engine.services.deploy

Argument Objs :

Arguments :

Dsr Component :

Dsr Transaction : db47cb30dc0a11da834f000d605e2094

Dsr User :

Indent : 0

Level : 0

Message Code :

Message Type : 0

Relatives : /System/Server

Resource Bundlename :

Session :

Source : com.sap.engine.services.deploy

ThreadObject : SAPEngine_System_Thread[impl:5]_61

Transaction :

User :

Best regards

Manuel

jan_rauscher
Advisor
Advisor
0 Kudos

Hi,

what about your permissions for your entity service? Have you deselected it in the designtime? If not, does your user have the correct authorizations (maintained via ACLs)?

Regards,

Jan

Former Member
0 Kudos

Hi,

in the designtime? i deselected it in NWDS during the creation of the Entity Service. I haven't chenged something about security in the browser based caf designtime.

regards,

Manuel

jan_rauscher
Advisor
Advisor
0 Kudos

Hi,

Yes, the CAS perspective in the NWDS is the design time of CAF Service&UI Layer (= CAF Core).

I must admit: I'm running out of ideas, however please check if the external service configuration is adjusted correctly. You can find a decription how this can be done in the tutorial you alread mentioned ('81 Integrate a Web Service in Your Composite as an External Service* (PDF/Service)') in the chapter 'Runtime External Service Configuration'.

Regards,

Jan

Former Member
0 Kudos

Hi,

a colleague meant it seems to be not a technical issue. The Service Browser just don't find any User with the ID 20. This also can be the reason why i won't get a error log entry.

So, if the WebService does this means that the parameter mapping between EntityService and WebService is somehow wrong.

My Mapping:

Input->pers_no/minValue

to Input->ns6:parameters/ns4:getEmployee/ns4:employeeID

Output->Result/pers_no

to Output->ns6:parameters/ns4:getEmployeeResponse/ns4:Response/ns1:employeeID

Output->Result/firstName

to Output->ns6:parameters/ns4:getEmployeeResponse/ns4:Response/ns1:firstName

Output->Result/lastName

to Output->ns6:parameters/ns4:getEmployeeResponse/ns4:Response/ns1:lastName

Output->Result/id

to Output->ns6:parameters/ns4:getEmployeeResponse/ns4:Response/ns1:eMail

Is it possible to Debug the EntityService (setting breakpoints)? What do i have to do?

Best regards,

Manuel

jan_rauscher
Advisor
Advisor
0 Kudos

Hi,

Did you already tried to test the handeling of your entity service with local persistence? Do you face the same issues? If not, please check if the web services are correctly configured in the service configuration. Furthermore please be aware, that the transaction handling on the remote database have to implemented by the web services. CAF does not execute a commit in the backend implicitly.

Regards,

Jan

Former Member
0 Kudos

Hi,

with version NetWeaver04s SneakPreview SP07 it works fine.

I don't know the cause of this issue, maybe an installation issue or something.

regards,

Manuel