WS Adaptive Model: ClassCastException at WSGenericModelClass

From a Web Dynpro application, I'm trying to connect to the KM through the webservice interface. For this, I'm using the Webservice Adaptive Model. And everything works fine, except the error handling.
For example, when I try to find resources, and I set a valid RID as a root RID parameter for the request, the resources found are retrieved, and I can list them from the context. But when I set a non-existing root ID, it throws a ClassCastException at the request.execute() method. And so on: at every "exceptional" case (for example trying to create an existing collection, or looking up a non-existing resource), instead of getting the real exception, I get a ClassCastException.
This ClassCastException has a null message, and null cause.
The stacktrace is:
at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClass.setRelatedObjectsForName(WSGenericModelClass.java:210)
at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClass.setRelatedObjectsForName(WSGenericModelClass.java:278)
at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.fillOutputParametersToMc(WSGenericModelClassExecutable.java:297)
at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:97)
at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46)
at de.dlh.ebase.dlh.appl.lsyh.im.wd.components.IMMain.kmCreateCollection(IMMain.java:425)
This last line (425) is where the request.execute() method is.
With the invocation log enabled, I can see that the SOAP response seems to be the right one: contains an OperationFailedException, with the exceptionName NameAlreadyExistsException (for example). And at least has a valid XML format (I checked).
The destination URL is set to:
http://<host>:<port>/RepositoryFrameworkWS/Config1?mode=sap_wsdl&style=document
(with a real host and port)
I tried without the mode sap_wsdl, with the same results.
RPC style doesn't work, because of the arrays, and the NWDS couldn't generate a model from the style rpc_encoded.
The Netweaver version is 7.0 SP13, I am using NWDS 7.0.13.
I tried to add different library references to the project (webservices, naming, tcsecdestinationsinterface, tckmcbc.uwlapi, tcwdwslib,webservices_lib, tcsecdestinationsservice, tcsecwssecservice, PORTAL:sap.com/com.sap.km.application),
I even tried to add the library sap.comtckmcbc.rf.wswsrf~bean.jar as a long shot, but I ended up with the same result.
I am needing to solve this, because I need to have the means to differentiate between "normal" operation errors and those of the exceptional nature.
For example: before creating a resource, I must check if the parent collection exists, If exists, fine, but if not, I must create the collection. Checking for existence might throw a "normal" (expected) exception, but if the user doesn't have the rights to do this operation, the application must know and act accordingly.
The webservice KM access is a requirement. (API access excluded, because in fact now I'm migrating from that)
Do you have any ideas?

There are 64k limits on several things (code per methods, constants, etc) in Java.
So i think the only solution would be to divide the WSDL file in more managable smaller pieces. But the webservice is a third party product, and so not in my responsibilty.
Werner

Similar Messages

  • THE AV DIGITAL ADAPTER MODEL IS MC953ZM/A

    THE APPLE AV DIGITAL ADAPTER MODEL IS MC953ZM/A.
    DOES THIS ADAPTER WORK WITH THE IPOD CLASSIC 2012?
    SO I CAN CONNECT TO A TV WITH A HDMI CONNECTION?

    As SteveJobsFan0123 has said, I've answered you multiple times.
    NO, the Apple Digital AV Adapter will NOT work with the iPod Classic.
    Please stop posting questions about this, Gene.

  • RFC Adaptive Model,JCO destinations error

    HI,
    I created the tutorial application to get Flight List using RFC adaptive model.
    I created the JCO destinations in web dynpro content administrator after configuring the SLD (after many problems though ).
    Our Server is Web AS 6.4 ABAP + JAVA ,but no R/3 modules installed.
    WD_FLIGHTLIST_MODELDATA_DEST-type application--single server connection
    WD_FLIGHTLIST_RFC_METADATA_DEST-type Dictionary-load balanced
    The JCo destinations status shows green.
    The test for WD_FLIGHTLIST_MODELDATA_DEST is succesful but the test for WD_FLIGHTLIST_RFC_METADATA_DEST fails with the error:[code]
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=nwserver GROUP=PUBLIC R3NAME=NWS MSSERV=sapmsNWS PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       Group PUBLIC not found TIME        Thu Nov 10 18:24:23 2005 RELEASE     640 COMPONENT   LG VERSION     5 RC          -6 MODULE      lgxx.c LINE        3515 DETAIL      LgIGroup COUNTER     2 [/code]
    The ping fails and if i test it again,i get another error
    [code]com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=nwserver GROUP=PUBLIC R3NAME=NWS MSSERV=sapmsNWS PCS=1 ERROR       Group PUBLIC not found TIME        Thu Nov 10 18:29:13 2005 RELEASE     640 COMPONENT   LG VERSION     5 RC          -6 MODULE      lgxx.c LINE        3515 DETAIL      LgIGroup COUNTER     1 [/code]
    What is wrong?Any more steps required?
    If i try to edit it,the type is still the same-Application with single connection.
    How can i change it?Do i need to change it to type Dictionary in the first place? How to proceed.
    Please guide.
    Regards,
    Siddhartha
    Message was edited by: Siddhartha Jain
    Message was edited by: Siddhartha Jain

    hi Siddhartha,
    You have to configure PUBLIC group using SMLG transaction
    check these links out
    http://help.sap.com/saphelp_nw04/helpdata/en/28/1c623c44696069e10000000a11405a/content.htm
    hope this helps you
    Regards
    Rohit

  • RFC Adaptive Model Questions

    Hi all,
    I have some questions about RFC Adaptive Model in Web Dynpro:
    1)Can I add a new RFC into a Model without recreating that?
    2)There’s a way to WebDynpro don’t lost de mapped attributes like an input field that’s mapped to an import parameter of a RFC? Because all the times that I change the Model and recreate that, my application lost the link between Controller and View and it’s generate a lot of work to redo this manually.
    Thanks,
    Manoel

    About RFC models, if I have this schema:
    RFCModels
    -- ZRFC_A
    -- ZRFC_B
    -- ZRFC_C
    If I want to add a new RFC to this model (ZRFC_D), I can't do that. In this case I want to create a new Model with the ZRFC_D right?
    When I import a Web Services Model and I have made some changes in Web Services, I don't have a Re-import option enabled like RCC models. What can I do in this case?
    Thanks,
    Manoel

  • Jco.JCO$Exception when create a new adaptive model in NWDS

    HI friends:
    when I create a new adaptive model in NWDS, error occurs:
    Warning:Creating a connection with Metamodel language <zh_CN> failed. Continuing with language <zh>
    Fatal: com.sap.mw.jco.JCO$Exception: Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx
    but when I used a existent model to reimport model  , it has no error
    Thank you in advance.
    Yonk
    Edited by: Yonk King on Nov 7, 2008 11:11 AM

    Check whether you are providing the correct login credentials while importing the RFC.

  • Web Dynpro Java with Adaptive Model

    when i Created Web Dynpro Java with an Adaptive Model I got  Some error in webdynpro.  the error is
    com.sap.dictionary.runtime.DdException: Type com.sap.cust.model.types.Zcustdata does not exist
    what would be the problem .
    can u anybody please help me out in this.

    Hi ,
    i re-imported the and checked even though i got the same problem
    com.sap.dictionary.runtime.DdException: Type com.sap.cust.model.types.Zcustdata does not exist
    com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type extern:com.sap.cutm.model.model.types.CustmModel:com.sap.cutm.model.model.types.Zcustdata2 could not be loaded: com.sap.dictionary.runtime.DdException: Type  com.sap.cutm.model.model.types.Zcustdata2 does not exist
    can u please help me out
    or can u please send me the sample pdf documents which contains step by step process.
    Thanks in advance,
    Venkat.

  • Is it ok if I use ipod usb adapter model a1102 charger for my iphone 4?

    Is it ok if I use ipod usb adapter model a1102 charger for my iphone 4?

    You can use the A1102 charger to charge the iphone 5 as long as you have the lightning adapter.  I just got off the phone with an apple tech, and you can use the A1102 charger to charge the Iphone 5.

  • Is the Apple AC adapter model A1102 compatible with the ipod nano 7th generation?

    Is the Apple AC adapter model A1102 compatible with the ipod nano 7th-generation?

    Deggie,
    Thanks for the info.  As soon as my Ipod nano needs charging I'll use my A1102 charger.
    Dave Mills

  • Replacement power adapter MODEL TEAC-66-135000

    Hi
    would anyone know where I could get a replacement power adapter (MODEL TEAC-66-135000) for my Creative Inspire 6.1 6700 system?
    I tried to call the Creative customer service department but they were not able to help me.
    Thanks.

    Hi,
    I actually called again and this time the lady was willing to help me. I ordered a similar power adapter which works well my speaker system:
    Power Adapter 12VAC 4.2Amp @ $11.99
    Give it a try. Good luck.

  • HT4060 5W USB Power Adapter Model A1400

    Apple 5W USB Power Adapter Model A1400 is equal as the Model A1300?

    Well, after checking Apples site, I think it should be OK. It appears to work for both devices.
    http://manuals.info.apple.com/en_US/USB_Power_Adapter_ZM.pdf

  • Need pavillion zv5000 power adapter model number?

    A friend gave me an HP Pavillion ZV5000 laptop but he couldn't find the power adapter and the battery is dead.  I've searched online for power adapter specs but have found conflicting information... even on the HP support site.   If someone has a Pavillion ZV5000 could you please tell me the model number and output voltage of your adapter.  Is it 120W or 135W??  Thanks

    Hi:
    Here is the parts list for the zv5K:
    http://partsurfer.hp.com/Search.aspx?type=PROD&Sea​rchText=DL227AV

  • Need a Apple 45W plus  portable power adapter (Model A1007)

    Need a 45W+ charger for an old ibook. Apple no longer provide such a charger so have been advised to search via a third party, can anyone help?
    Message was edited by: goftosnr

    Hello goftosnr and welcome to Apple user discussions.
    It will help if you can tell us more about your iBook. At
    the top left of the screen select the apple and then from
    the pull down menu select about this Mac. Select more
    info and post back with processor speed and built in RAM,
    the more info the better so please take time to post it all,
    (copy&paste) except for the serial #. The Host doesn't
    like that. Also from info please post which Mac OS you
    are currently using. This will help other users that may have
    a smilar question in the future.
    If you can't power up your iBook post back and we will help
    you find the serial# and can supply links to find out which
    iBook model you have. It is possible that the G3 and G4
    models use a 65W adapter now. The only 45W adapters (new)
    that I have seen are for the MacBook Air.
    Here is a discussion link just for info:
    http://discussions.apple.com/thread.jspa?threadID=2745464&tstart=15
    Are you in the U.K.? If so, here is a link for vis:
    http://www.applemacparts.co.uk/store/adapter-m-1360.html
    Kind regards,
    A

  • Power adapter model 1300 its not working .

    sir my iphone power  adapter its not working model is 1300 , i buy iphone 3Gs recently within 4 month in pakistan . now am charging with my computer please advice me whats can i do
                                                            thanks ....................................

    thanks any authorised dealer  is there in Karachi,  have no idea . If there any one so please tell me
                                         thanks..............................................................

  • Consume Adaptive Model Webservice in the webdynpro java Exception.

    Hi  Experts:
    i had developed a Adaptive Webservice  Model  on CE7.1 to consume the webservie of  PI7.1 .and then i deploy the webdynpro project to the ce7.1,but when invork the webservice ,the  exception throwed is :
    Exception on execution of web service on destination 'MANUALRUN' for operation 'MANUALSENDER_SI' in interface 'MANUAL_SENDER_SI'_
    i had maintained the  destination of 'MANUALRUN'  and 'MANUALMetadata', and test successful in the webservice navigater .
    i dont know how to solve the problem.
       best regards
    Edited by: kevin liang on Oct 21, 2009 3:50 AM

    Hi  Experts:
    i had developed a Adaptive Webservice  Model  on CE7.1 to consume the webservie of  PI7.1 .and then i deploy the webdynpro project to the ce7.1,but when invork the webservice ,the  exception throwed is :
    Exception on execution of web service on destination 'MANUALRUN' for operation 'MANUALSENDER_SI' in interface 'MANUAL_SENDER_SI'_
    i had maintained the  destination of 'MANUALRUN'  and 'MANUALMetadata', and test successful in the webservice navigater .
    i dont know how to solve the problem.
       best regards
    Edited by: kevin liang on Oct 21, 2009 3:50 AM

  • Ipod touch 2nd gen usb power adapter model

    i wanna know the model of my usb power adapter that comes with my ipod touch 2nd gen model a1288..it's already erased that's..i wanna know the output ampere and voltage..thank you

    No iPod touches came with a wall charger. You would have had to purchase it separately. As I saidm one with at least 500 ma will work. 1000 ma (1 amp) sime to be standare for phones and iPods.

Maybe you are looking for

  • Install j2se plugin version 1.6.0_07 on your client and NPX_PLUGIN_PATH environment variable set before starting Netscape.

    Hi experts m new to apps please help.. I have installed successfully Oracle Apps R12 on OEL - 5 All the services runining fine. but when i am opening forms its giving error "install missing plugins" i installed jre-6u7-linux-i586-rpm.bin and Mozilla

  • Z6A Headset With Bootcamp On An iMac?

    I am running Windows 7 on my mac with bootcamp for gaming. I am currently looking to buy a TurtleBeach Earforce Z6A. (http://www.turtlebeach.com/product-detail/pc-headsets/ear-force-z6a/44) I can tell that my iMac does not have the required ports for

  • Need after effects programmer

    I am a real estate broker and we purchased a DAKTRONICS Galaxy Pro sign and are in need of someone who can use the After Effects program.   Someone who is proficient with this program and works from home would be great.  Any help out there?  Thank Yo

  • PDK Document and Link

    Hi, Anybody can provide some links on pdk.I am new to this. Thanks

  • ICal /sync errors

    I have recently ( last couple days) encountered sync errors when trying to sync iCal between a lampshade G4 iMac, a flat panel G5 iMac, and my G3 600MHz iBook. All are current re operating system. Interestingly, both bookmarks and address book seem O