OSB input payload with characters ' '  ' ' fails service invoke

Hi,
In OSB I am calling a USM service to search the contents. Created a Business Service out of USM Search WSDL and then a proxy service which calls the business service. When I am trying to test the service through SOAP UI with the below payload I get an error: *<faultstring>Error parsing the XML resource. The tag 'contains' has not been properly closed. Instead, the tag 'sear:queryText' was encountered.</faultstring>*
and when I run the same payload through OSB test console get an error:
The XML document is not well-formed:
error: </sear:queryText> does not close tag <contains>.
The same works in SOA Process but in OSB
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.stellent.com/Search/">
   <soapenv:Header/>
   <soapenv:Body>
      <ns1:AdvancedSearch>
         <ns1:queryText>(xIdcProfile<matches>`xxAB`)<AND>(x_ID<contains>`13-AZXX001-TST`)</ns1:queryText>
         <ns1:sortField>dInDate</ns1:sortField>
         <ns1:sortOrder>DESC</ns1:sortOrder>
      </sear:AdvancedSearch>
   </soapenv:Body>
</soapenv:Envelope>Now if I replaced *<* with *&lt;* and *>* with *&gt;* it works fine.
the below payload just works fine
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.stellent.com/Search/">
   <soapenv:Header/>
   <soapenv:Body>
      <ns1:AdvancedSearch>
         <ns1:queryText>(xIdcProfile&lt;matches&gt;`xxAB`)&lt;AND&gt;(x_ID&lt;contains&gt;`13-AZXX001-TST`)</ns1:queryText>
         <ns1:sortField>dInDate</ns1:sortField>
         <ns1:sortOrder>DESC</ns1:sortOrder>
      </sear:AdvancedSearch>
   </soapenv:Body>
</soapenv:Envelope>But the consumers of this service pass the data in this format *(xIdcProfile<matches>`xxAB`)<AND>(x_ID<contains>`13-AZXX001-TST`)* only. How do I make sure OSB takes in this format payload and executes it properly.
As the same thing works in Oracle SOA Process but in OSB it just chokes out. Any help is appreciated.
Thanks

Like others mentioned, the XML which your service consumer is sending is not a valid XML because of the special characters and you need to escape them.
1. The best way is to ask the service consumer to send a proper XML with any special characters put in a CDATA section or escaped.
2. If above is not possible, then you need to make sure that your first Proxy service which receives the message from service consumer is of Messaging type with text as input message format. AnyXML,AnySOAP or WSDL based services will error out because these types of services expect a proper valid XML document as input.
So in the messaging type service, you read the input message as text and then use the fn-bea:inlined-XML() and fn-bea:serialize() functions or CDATA to create a valid XML from the text input and pass this XML to your business service.

Similar Messages

  • Is it possible to create a role with PERM_READER_EXTENSIONS_WEB_APPLICATIONS without Service Invoke?

    I need to restrict user access to Workspace processes.  Using the adminui, service management, I gave my test group INVOKE_PERM permissions to this service.  This works good.  The users of the test group can only see this process.  However, for these users the SOAP calls do not work.  I am using a reader extended form and I am getting the error below.  If I add the Reader Extension Web Application role, the SOAP call work, but the user of the test group can see all other processes.  I created a role and gave it PERM_READER_EXTENSIONS_WEB_APPLICATIONS, Service Read, INVOKE_PERM and other combinations.  This role only works if I add Service Invoke and this give users access to all processes.  How can I get a role to provide the Reader Extension without using Service Invoke?
    An error has occurred. See error log for more details.
    User TORRES, ALEJANDRO G does not have the Service Invoke Permission on Service ReaderExtensionsService.

    I found the answer to my question.  I had to give INVOKE permission to all the services used by the process.

  • TransportException - OSB 10gR3 Failed to invoke Service

    Hi there,
    We are getting several errors on my OSB environment, OSB is running into problems, ramdomly is shutting down!
    Follow errors below :
    ####<Apr 29, 2011 1:15:25 AM GMT-03:00> <Error> <ALSB Alert Rule Engine> <rjux0087> <AdminServer> <pool-1-thread-1> <<anonymous>> <> <> <13040
    50525306> <BEA-394004> <Failed to invoke action email that is part of alert destination AlertDestination ClaroEnterpriseMonitoring/ClaroAlertD
    estination. Resource: ProxyService ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1. A
    lert Rule Name: SLA Response.
    com.bea.wli.sb.transports.TransportException: 501 Syntax error in return path - please go to http://www.xmailserver.test/smtp_errors.html to get more information about this error.
    I didn´t find anything relevant on :
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/transports/TransportException.html
    I was wondering if a specific service may cause the outage !
    The service "ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1" is a flow. The service is highlighted in dashboard with alerts, but there is no clue.
    Have you seen this before ?
    I appeciate any help !
    Thanks Edson

    Hi Edson,
    Looks like there is some alert actions+ in the proxy - ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1
    And this error is due to the same, looks like the alert destination configurations is having some issues.
    Failed to invoke action email that is part of alert destination AlertDestination ClaroEnterpriseMonitoring/ClaroAlertD
    estination. Resource: ProxyService ClaroEnterpriseServices/Claro/ListarPacotesDisponiveisAssinante/v1/ListarPacotesDisponiveisAssinantePSv1. A
    lert Rule Name: SLA Response.
    To confirm this out, I would suggest you can disable the alerting on the proxy service @ Operational Settings > Monitoring > SLA Alerts & Pipeline Alerts and see if the errors disappear.
    Thanks,
    Patrick

  • How to pass OSB fault variables into input payload

    Hi ,
    I am very new to OSB. as we know that OSB has some predefined variable structure like body,header, fault,inbound,outbound,..My requirement is that I want pass the fault variable elements(errorCode,reason,details..) to input payload elements. I want to see the faulted data in my payload elements which is generated by fault variables.
    Ex:-> If any validation fault occur then my payload fault variables will display errorCode---->BEA-382525, errorMessage-->Variable targeted for validate is not XML or MFL..
    Could you please help me out.I tried but i did not get the result what I expected .. Thanks in advance
    Thanks,
    Viswas

    Hi Vlad,
    I tried what you said in the Otherwise section.
    Step 1:-->This is my xQuery code:
    declare namespace ns1 = "http://www.bea.com/wli/sb/context";
    declare namespace ns0 = "http://xmlns.itc.com/emf/xsd/04/2013/v1.0/loggingService";
    declare namespace xf = "http://tempuri.org/GreetingService/xquery/faultToGreetingService/";
    declare function xf:faultToGreetingService($fault1 as element(ns1:fault))
        as element(ns0:logInfo) {
            <ns0:logInfo>
                <ns0:HeaderInfo>
                    <ns0:faultCode>{ data($fault1/ns1:errorCode) }</ns0:faultCode>
                </ns0:HeaderInfo>
            </ns0:logInfo>
    declare variable $fault1 as element(ns1:fault) external;
    xf:faultToGreetingService($fault1)
    Note: My requirement is I want pass this errorCode into ns0:faultCode which is the input element for publish action (This is publish action would call the logging Service, It is one-way process)
    Step2:-->I used a replace action-->XQuery Resource tab--> I browse the xQuery ..Here In the Variable Name section it is showing fault1 and what value we need to give in the Binding section.
              a)  If i did not provide any value it is giving the error message as "XQuery expression validation failed:XQuery error for the variable "fault1": line1,column1:                                 {err}XP0003:invalid...  "            
              b) If i provide $fault1 or $fault1/*:errorCode or $body in Binding section then the public action would not calling the logging service.
    Can anybody provide me the answer.
    Thanks,
    Viswas

  • HT1923 I was trying to update itunes on my computer received an error message so I uninstalled and reinstalled itunes. the download stopped with this message "Service 'Apple Mobile Device' failed to start. I have an ipad 2 purchased in 2011.

    I was trying to update itunes on my computer that has windows vista. during the update I received an error message; so I uninstalled itunes and reinstalled it. the instatlation process stopped with this message: "Service 'Apple Mobile Device' failed to start. Verify thta you have sufficient priviledges to start system services." I have used an ipad 2 since 2011 and have never had a problem with my itunes account or my ipad until now.
    What steps do I need to complete to get my itunes account up and running again?

    Hi Kayleenfromwi,
    Thanks for using Apple Support Communities.  You may need to restart the Apple Mobile Device Service.  This article has instructions for doing this:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    If that doesn't resolve the issue, I would recommend trying the steps in this article:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Ari

  • ERROR: MyService.jws:715:There are two or more operations with the same schema-element 'ns0:MyNameSpace' on the input message in a web service file or callback interface.

    I have two web service operations that have the same complex type as their input
    parameter. I want to map this type to an existing schema. I can successfully
    do this with the first operation using XQuery but when I attempt to do this with
    the second operation I get the following error:
    ERROR: MyService.jws:715:There are two or more operations with the same schema-element
    'ns0:MyNamespace' on the input message in a web service file or callback interface.
    ERROR:      SUGGESTION: Use different schema-element values for each of those operations.
    How can I use different schema-element values? The input parameters are to be
    mapped to the same schema and same element since they are the same for both operations....

    I am having the same problem. How did you resolve this..?? could you please tell me the solution??
    Thanks
    Shari

  • I have a 6 week old 4s running 5.1.1 Just started recieving "failed sim" message the other day. This leaves me with no cell service . Service comes back after shutting down and restarting. at least until message reaapears. Has happened three times in two

    I have a 6 week old 4s running 5.1.1. Started recieving "failed sim" message yesterday. this leaves me with no cell service. Shutting down and turning back own seems to alleviate problem temporarily. It has happened three times now. Help.

    Sounds like you have a battry issue but don't want to believe it.
    If a car was running fine on one tank of gas, then you filled it up with another tank of gas and it began to run funny, one might suspect that tank of gas. But let's just say coincidence blew a valve-- would you think the new tank of gas was the culprit?
    BUT WAIT!! It just might have been! The gas could have been of higher octane and put more more strain on the valves; you know, like going from 87 octane (OS6) to 93 octane (OS7) and showing you the engine was on the edge of compromise.
    Sometimes you have to go with common sense. If everything else is ruled out, it must be the battery. And if it runs fine one moment in OS6 but immediately ***** in OS7, I'd believe my battery was suspect-- though comfy-- in OS6 but the OS7 showed its true power.
    Moreover, if you had the answer-- or didn't want to believe someone's more competent advice-- why did you even call?  You've already shown that you don't know much when you asked if you could go backwards after setting up the new OS as a new phone.
    Additonally, if you're such the know-it-all, but yourself the $29 battery and put it in yourself. It's a piece of cake.
    <Edited By Host>

  • Clear an input box with failed validation status

    My jdev version is 11.1.1.5.0
    I have an input box with certain validation.If validation fails it doesnt clear its contents on button click.
    My button click code is :
    propButton.setValue(null);
    where propButton is binding name to button.

    Hi Lovin,
    How are you actually validating? Is it by <f:Validator> Tag, or Validation in the Button click code?
    If its in button click code: Refreshing programmatically in the button code, will ensure that the value is cleared in the inputTextBox and then refreshed.
    Refreshing programmatically:
    First, create a binding to the InputText Box in a managed bean, using the Binding attribute.
    binding="#{managedBeanName.inputTextBox}"
    public void clickButton(ActionEvent ae){
    this.getInputTextBox().setValue(null);
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getInputTextBox());
    Thanks,
    Pandu

  • How can we attach input payload of failed message in Alert mail

    Hi Experts,
    Please suggest If by using alert framework (No BPM) can we attach payload of failed message in alert mail.
    If yes, Another query...
    Scenario: IDoc to File
    Requirement: If message fails in PI, need to trigger an alert mail having IDoc number(DOCNUM) in it.
    Regards,
    Raghav

    Hi,
    Thanks for your update Vankata, Please let me know in case message successfully passed receiver determination step and after that if it fails in any other step then how can we proceed for mail including Input payload field values.
    Thanks for you suggestions sunil but I need to send mail only when any error happend in PI scenario. While using UDF or RFC lookup concept, I can only send mails independent of PI message failure. I mean to say what if message failed before mapping execution.
    One query, Is it possible to handle this kind of scenario requirement where the input field value need to populate in mails ( not using BPM) via Custom modules?
    Waiting for more suggestions on this.
    Regards,
    Raghav
    Edited by: RaghavTiwari on Feb 15, 2012 3:55 PM
    Edited by: RaghavTiwari on Feb 15, 2012 4:23 PM

  • Cannot start VM - IDE Emulator Failed to Power on with Error 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.'

    HI all.
    New install of 2008R2 on HP DL-380 G6.  I have created (several) VM's none of which will start.  If I remove the IDE Hard Disk and add a DVD of the OS ISO, it will boot and start the install (although with no HDD). 
    It seems like the IDE controller is working ok - it is what the DVD drive is using, but it cannot mount a VHD.  The error indicates a driver is not working (although the DVD on IDE works fine) so something to do with VHD?  I can attach the VHD
    in disk management, so it does not seem corrupt - again I have tried with both dynamic and fixed VHDs.
    Full error is:
    'Test1' failed to start. (Virtual machine ID 4320D2D6-DF7E-40D2-BD0F-9562CBB9F052)
    'Test1' Microsoft Emulated IDE Controller (Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}): Failed to Power on with Error 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.' (0x80070422).
    (Virtual machine ID 4320D2D6-DF7E-40D2-BD0F-9562CBB9F052)
    'Test1': Failed to open attachment 'C:\Users\Public\Documents\Hyper-V\Virtual hard disks\New Virtual Hard Disk.vhd'. Error: 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.' (0x80070422).
    (Virtual machine ID 4320D2D6-DF7E-40D2-BD0F-9562CBB9F052)
    Any Ideas?

    Hi ,
    Did  you try to disable the services , if they are exsit :
    HP Smart Array SAS/SATAEvent notification
    HP Insight storage agents
    Then restart your server .
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • D9854 still HD-SDI output with no proper services input ASI.

    Hi There,
    I have several D9854 in use.
    When the input signal is lost,(ASI services or RF) there is still a signal avalible at the output M1 and M2.
    And the CHO after the Decoder wil not switch.
    I already of course changed the user settings : OSD Banner in "disable" and Action on Loss of input in "No output"
    What am I doing wrong?
    Best regards,
    Hans van Eijndthoven

    Hans;
    Which output are you looking at?  If you are looking at the analog video out, you should be able to drop the Vsync under an alarm condition.  From a web browser, go to System Settings - Alarms - Setup.  ENABLE the 'Enable Video Cutoff on Alarm Condition' option.
    Fred

  • XSLT for payload with namespaces

    Hello Experts,      attn:Stefan.
      I am using a XSLT to parse the input xml payload and retrieve the Value of a particular field which will be used for receiver determination.
    The XSL code used by me is :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
    <ns1:Receivers xmlns:ns1="http://sap.com/xi/XI/System">
    <Receiver>
    <Service>
    <xsl:value-of select="NemRefusionIndberetningSamling/NemRefusionIndberetningStruktur/HeaderStruktur/ReferenceAttributTekst" />
    </Service>
    </Receiver>
    </ns1:Receivers>
    </xsl:template>
    </xsl:stylesheet>
    And the input payload I am getting is something like:
    <?xml version="1.0" encoding="utf-8"?>
    <NemRefusionIndberetningSamling >
         <DannetDatoTid>2010-04-22T12:14:28.036+02:00</DannetDatoTid>
         <NemRefusionIndberetningStruktur xmlns="urn:oio:abc:nemrefusionindberetning:2009.07.03" MessageID="1">
              <HeaderStruktur xmlns="urn:oio:abc:nemrefusionheader:2009.07.03">
                   <FravaerTypeKode>Sygdom</FravaerTypeKode>
                   <FravaerendeStruktur>
                        <FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode>
                        <LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator>
                   </FravaerendeStruktur>
                   <IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19</IndberetningUUIDIdentifikator>
                   <ReferenceAttributTekst>S70CLNT007</ReferenceAttributTekst>
              </HeaderStruktur>
         </NemRefusionIndberetningStruktur>
    </NemRefusionIndberetningSamling>
    The XSLT works fine with above payload. But now we need to add namespaces in top level elements. So the payload will be like:
    <NemRefusionIndberetningSamling xmlns="urn:oio:abc:nemrefusionsamling:2009.07.03" UUIDIdentifikator="DF8C1CB43B2E14F1A0C5005">
    <DannetDatoTid>2010-04-22T12:14:28.036+02:00</DannetDatoTid>
         <NemRefusionIndberetningStruktur xmlns="urn:oio:abc:nemrefusionindberetning:2009.07.03" MessageID="1">
              <HeaderStruktur xmlns="urn:oio:abc:nemrefusionheader:2009.07.03">
                   <FravaerTypeKode>Sygdom</FravaerTypeKode>
                   <FravaerendeStruktur>
                        <FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode>
                        <LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator>
                   </FravaerendeStruktur>
                   <IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19</IndberetningUUIDIdentifikator>
                   <ReferenceAttributTekst>S70CLNT007</ReferenceAttributTekst>
              </HeaderStruktur>
         </NemRefusionIndberetningStruktur>
    </NemRefusionIndberetningSamling>
    Top element being changed by addition of namespace, XSLT fails to retriev the value of required field i.e. <ReferenceAttributTekst>
    Changed element:
    "<NemRefusionIndberetningSamling xmlns="urn:oio:abc:nemrefusionsamling:2009.07.03" UUIDIdentifikator="DF8C1CB43B2E14F1A0C5005">"
    I am sure that there should be a way to handle namespaces in XSLT. Please suggest me the correction to XSLT to handle this namespace addition to top element.
    Kind Regards,
    Abhijeet.

    In XSLT you put a prefix before the XPATH rule like this:
    p1:root/p2:subnode/element
    you declare the namespaces in header as attribute xmlns:p1="..."
    Something like:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p1="..." ...>
    In your example you have to consider, that namespaces without prefix are inherited to subnodes. That means you have to build your XPATH like this:
    p1:NemRefusionIndberetningSamling/p2:NemRefusionIndberetningStruktur/p3:HeaderStruktur/p3:ReferenceAttributTekst

  • BPEL Instance losing input payload

    ('ve raised an SR but just in case anyone else has encountered this)
    One of our dozen or so main BPEL processes exhibits a problem whereby it can't read from the input payload during the flow.
    The error manifests itself as
    xpath variable/expression expression "orcl:get-content-as-string(bpws:getVariableData('inputVariable','payload','/ns27:AppointmentEventNotification/ns27:BookingEvent/ns27:New'))" is empty at line 3192, when attempting reading/copying it.
    We only see this perhaps <1% of invokations of the service. Resubmitting the request with an identical payload will work fine, so it's unreproducable. All we can do is grab the log files when it occurs and try and gleen clues as to the cause.
    Anyone else had a similar issue ??
    Cheers,
    Rob

    This applies to 10.1.2.0.2
    Turns out using orcl:get-content-as-string is not good.
    load testing with 50 requests against 25 concurrent threads the process
    containing “get-content-as-string” had 21 failures
    Using ora:getContentAsString() fixed the issue.

  • Failed to invoke end componentFailed to invoke method error

    I am getting this error while invoking a web service in weblogic.
    What is root cause of this error...?
    Error Description:-
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>Server
    </code>
    </part>
    -<part name="summary">
    <summary>Failed to invoke end componentFailed to invoke method
    </summary>
    </part>
    -<part name="detail">
    <detail>
    <detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/>java.lang.NullPointerException
         at org.tcs.billingeai.ws.allocateBillCycle.AllocateBillCycle.allocateBillcycle(Unknown Source)
         at org.tcs.billingeai.ws.allocateBillCycle.BillCycleService.invokeAllocateBillCycle(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor496.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:91)
         at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:68)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127)
         at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:84)
         at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:60)
         at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
         at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
         at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:124)
         at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    </detail>
    </detail>
    </part>
    </remoteFault>
    </fault
    Edited by: 911694 on Jun 25, 2012 1:02 PM

    This is a very convinient feature of Weblogic startup service - if your class
    does not implement T3StartupDef it will look for (using introspection)
    public static void main(String[] args) in your startup class, and, if it is
    there it will execute it.
    Ricky Wong <[email protected]> wrote:
    It works, many thanks !
    However I still have one more question out of my head - I found that my
    startup class doesn't need to implement the T3StartupDef and it still
    works, however my shutdown class must implement the T3ShutdownDef
    (otherwise I'll get ClassCastException).
    In article <[email protected]>, [email protected] says...
    Most likely the HubDevicePool does not have a public default constructor.
    Ricky Wong <[email protected]> wrote:
    In what situation I'll get the error "Failed to invoke startup/shutdown
    class" as below :
    java.lang.InstantiationException:
    dsb/eBanking/backOffice/connect/HubDevicePool
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Compiled Code)
    at weblogic.t3.srvr.StartupThread.runStartup
    (StartupThread.java:180)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run
    (PropertyExecuteThread.java:62)
    I'm pretty sure that the class HubDevicePool has been coded (e.g.
    implement T3xxxDef interface, with either the startup() or shutdown()
    method) properly as I've another startup classes which work perfectly.
    The class has been compiled without error, but it just cannot run when I
    put it as either a startup or shutdown class for WebLogic.Dimitri
    Dimitri

  • Problems on Windows 7 Professional 64 with PHP data service

    I've created a data service using PHP in a PHP Eclipse project and I'm trying to connect to it from my new Flash project. When I try to create a custom data type via the Configure Return Type dialog, "Auto detect the return type from sample data" radio button, I get the following error:
    There was an error while invoking the operation. Check  your operation inputs or server code and try invoking the operation again. 
    Reason:
    Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL  server on 'localhost' (10061) in  C:\Users\davidk\workspace\php-global-includes\mysqlAccess.inc.php on line  11
        /0/onStatusÿÿÿÿ �SIflex.messaging.messages.ErrorMessage extendedData faultCode faultDetail faultString rootCause correlationId clientId destination messageId timestamp timeToLive headers  body  „m …a#0  C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(550):  Zend_Amf_Server->_dispatch('getProductVersi...', Array, 'GetPlayData')#1  C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(626):  Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))#2  C:\Zend\Apache2\htdocs\play-debug\gateway.php(69):  Zend_Amf_Server->handle()#3 {main} ‚UError instantiating class GetPlayData to  invoke method getProductVersions: Error connecting to database server as user  via password configured in  config_cdna_testdb.php  IE83D9958-920E-E203-54BC-E5365BD85289 I5496259E-8C36-AC89-E234-00000D37FD49  I7E8A1BD7-9D60-9329-DBFB-00001B5BE8C7  126823334100     
    Note that I've tested the GetPlayData class and the getProductVersions() method with some simple "unit testing" code and it works fine when I execute it directly. It just won't run when called from this dialog.
    I tried to debug the gateway.php process that is used to do this connecting without much success so far.
    Is Windows 7 supported for PHP data service development in this beta release? I'm using Version 4.0 build 253292

    One more clue: the message from the exception shows that the global variables I'm using to configure the MySQL connection parameters are not set somehow. Maybe I need to upgrade my Zend Framework?
    Nope. I upgraded to the latest Zend Framework and it still did not work. The global variables are not working. When I hard coded the connection parameters into the constructor of the GetPlayData class, then it worked fine. I just switched to using define() to create constants instead of using the globals and that worked, too.
    It is as if globals set in one include file are not available in another include file. I agree that using them might be a bad programming practice of sorts, but it seems wrong to disallow / not support something that is part of the core language!
    So, I don't know if this is a Windows 7 thing or just a general behavior. Globals within the same file seem to work fine still, but not from another include file.
    So the answer for me is to not use these cross-include file globals in code that is going to be used from Flash Builder.

Maybe you are looking for

  • USB 1 to USB 2

    I have a titanium Powerbook G4. I have heard that there is a plug in board (side slot) available that will allow my USB 1 to be upgraded to USB 2 and thus speed up my connection to my external Iomega hard drive. Does anybody have any info on what thi

  • Skipping of Vendor Account Number during automatic generation

    Hello everyone, I tried to create a new vendor account(FK01) but noticed that the generated vendor code is 2000336. Local Vendor number ranges from 2000000 up to 2999999. The last vendor code generated by the system is 2000331, so the new vendor must

  • IDOCS FROM PROD TO XI

    Hi, I am doing monitoring of XI . There is a problem that at 8 pm daily the files stop getting posted from production to XI and 8 am it starts again automatically. Is this the problem of XI or Scheduling of data. How can this be resolved. Its urgent.

  • Web browser on Nseries, HELP!

    Hello all. I am new to this so forgive me if this is posted in the wrong area. Recently i have not been able to access the internet on my N82. No message comes up when i choose the Web option on the menu screen - the screen just flashes and takes me

  • All of a sudden I cannot send mail

    All of a sudden I cannot send mail