on 05-09-2007 12:36 PM
Hello All,
We are using the JDI.
We want to use a portal service DC from a web dynpro DC.
The web dynpro DC is part of a software component.
When the portal service is a local DC it is working fine (except failing later on the CBS build)
but when the service is part of a software component as well I get a runtime exception: a java.lang.NullPointerException.
The WD sharing reference I'm using is: PORTAL:sap.com/<dc service prefix>.<service name>
I assume that this is the right reference because without this exact phrase I get a java.lang.NoClassDefFoundError: com/sap/<name of service>
<b>Does anybody know how to use a portal service that is part of software component?</b>
Thanks a lot in advance, Adi.
Hi,
Add the portal service DC in used DCs , with build,deploy and runtime dependencies selected.
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bharathwaj , but I already solved my problem.
The solution was to change the next code line in the service client code :
Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(Idb_srv.KEY)
to:
Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(""<PARFilename>.<service name>");
Regards, Adi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you try changing the reference to the following:
PORTAL:sap.com/<portal service DC name>
Try it and let me know.
Regards,
Laxmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.