11 Replies Latest reply: Mar 5, 2012 1:49 AM by user13397490 RSS

    OSM7 : error occured with submit test...

    834602
      Hi Guys~

      I installed OSM7 on Server computer.
      and I deployed my cartridge on the server.
      but I got this error message while doing submit test. (I tested this same cartridge on Virtual Machine server and it worked well.)

      can you tell me what the problem is?
      ==========================================================================================================
      Unexpected Exception Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrder
      -> Failed to invoke method
      -> Could not initialize class oracle.communications.ordermanagement.ws.a
        • 1. Re: OSM7 : error occured with submit test...
          user5858891
          I'm facing the same problem. Did you find any resolution?
          • 2. Re: OSM7 : error occured with submit test...
            Jim_Power
            Hello 831599


            You don't give much information.

            What do you call a submit test? When you press submit on the web client?

            It looks like you just created an order and were trying to submit it.

            regards
            Jim
            • 3. Re: OSM7 : error occured with submit test...
              842414
              Hi ..

              I am quite new to OSM7.0.2 and everything was working fine.. I was able to do the orchestration also for one of cartridges.

              Then I was trying to install the PIP Cartridges in OSM. I deployed the Simple Topology Cartridges and everything got deployed, but when I tried to Create Order using Webservice XML API from Design Studio, I got the following error. I also tried using the SOAP UI.

              Thu Feb 24 16:50:03 GMT+05:30 2011 Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrder
              -> Failed to invoke method
              -> org/apache/xml/serialize/OutputFormat


              Thu Feb 24 16:50:03 GMT+05:30 2011 Remote Excpetion
              Here are the problem details:
              Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrder
              -> Failed to invoke method
              -> org/apache/xml/serialize/OutputFormat


              Then, when I went back to my other cartridge which was working fine, is also not working and giving the same error.

              Could you please help me out and provided a solution to this problem? Seems like many ppl are facing this and how do we get rid of this ?

              Thanks and Regards,
              Avik Roy
              avik.84@gmail.com
              • 4. Re: OSM7 : error occured with submit test...
                deepdey
                Try the following:

                1. Go to Weblogic(WLS) Deployments and see if the cartridges are installed correctly. Even in case of a "Warning" the cause of warning needs to be fixed.
                2. Go to WLS JMS Module -> Security -> JMS System Module Scoped Roles -> Add Conditions and select "Allow access to everyone". Save your work.
                3. Open OSM Admin tool. Add uses to the roles (drag and drop users from left hand panel to the roles in right hand panel)
                4. Recompile and deploy your cartridges. Then run your cartridges it should work.

                Also, keep in mind that the header of order xml are different for orders submitted from studio as compared to orders submitted from SOAP UI. Examples -

                Orders submitted from studio:


                <?xml version="1.0" encoding="UTF-8"?>
                <ord:CreateOrder
                     xmlns:ord="http://xmlns.oracle.com/communications/ordermanagement">
                     <im:order xmlns:im="http://xmlns.oracle.com/InputMessage"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          xsi:schemaLocation="http://xmlns.oracle.com/InputMessage ../dataDictionary/InputMessage.xsd">


                Orders submitted from SOAP UI:

                <soapenv:Envelope xmlns:ord="http://xmlns.oracle.com/communications/ordermanagement" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
                <soapenv:Header>
                <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <wsse:UsernameToken wsu:Id="UsernameToken-2" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                <wsse:Username>osm</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">osmadmin</wsse:Password>
                <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">X5Cf4OWQ+b2lieKdSBmHvg==</wsse:Nonce>
                <wsu:Created>2011-02-18T21:07:58.609Z</wsu:Created>
                </wsse:UsernameToken>
                </wsse:Security>
                </soapenv:Header>
                <soapenv:Body>
                <ord:CreateOrder>
                <im:order xsi:schemaLocation="http://xmlns.oracle.com/InputMessage ../dataDictionary/InputMessage.xsd" xmlns:im="http://xmlns.oracle.com/InputMessage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


                All the aforementioned changes should get your solution working.
                • 5. Re: OSM7 : error occured with submit test...
                  user5858891
                  I tried the advised steps from deepdey but the same problem is surfacing again:


                  Unexpected Exception Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrder
                  -> Failed to invoke method
                  -> Could not initialize class oracle.communications.ordermanagement.ws.a

                  Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrder
                  -> Failed to invoke method
                  -> Could not initialize class oracle.communications.ordermanagement.ws.a
                  • 6. Re: OSM7 : error occured with submit test...
                    842414
                    Hi DeepDey,

                    Thanks for replying.
                    I tried the steps mentioned in your post ..
                    But unfortunately, I am still getting the error.

                    Any idea, why at all this error is coming ? And also, if there is any other work around as this has stopped my work completely :(

                    Have a nice day....
                    Bye
                    Avik....
                    • 7. Re: OSM7 : error occured with submit test...
                      848105
                      hi,
                      i have encountered POJO error when there is some problem in recognition rule.
                      check whether your recognition rule is correct or not. there can be problems with the xquery too.

                      thanks
                      Ashish Garg
                      ashishgarg86@gmail.com
                      • 8. Re: OSM7 : error occured with submit test...
                        deepdey
                        Looks like we will have to check your setup. Do you mind logging an SR?

                        - Deepankar(Deep) Dey
                        OSM - Product Management
                        • 9. Re: OSM7 : error occured with submit test...
                          890680
                          Hi All,

                          I tried the suggested steps. but i didn’t worked for me.. still facing the same issue.


                          <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
                          <env:Header/>
                          <env:Body>
                          <env:Fault>
                          <faultcode>env:Server</faultcode>
                          <faultstring>Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrder
                          -> Failed to invoke method
                          -> Could not initialize class oracle.communications.ordermanagement.ws.a</faultstring>
                          <detail>
                          <java:string xmlns:java="java.io">java.lang.NoClassDefFoundError: Could not initialize class oracle.communications.ordermanagement.ws.a</java:string>
                          </detail>
                          </env:Fault>
                          </env:Body>
                          </env:Envelope>


                          Also need what can be the possible mistake's in ORR as mentioned in chain.. as i see the same code is working for other server.

                          Many Thanks

                          Nilesh.
                          • 10. Re: OSM7 : error occured with submit test...
                            882807
                            Hi Nilesh,

                            Could you please check whether in weblogic's console -> Deployments that all files are in running mode(green check mark). If not, please fix them and try again.

                            Thanks
                            Naveen Jabade
                            IBM
                            • 11. Re: OSM7 : error occured with submit test...
                              user13397490
                              Hi Nilesh,

                              This error mostly comes when the xml elements that your are using to create the order are not present in the data dictionary or the elements of the data dictionary are not imported in the creation task.

                              Just double check it should resolve this issue.

                              Regards,
                              Amit Singh