Namespace mismatch exception with Axis2

Hi folks,
I am getting the following exception when trying to invoke my axis2 web service,
org.apache.axis2.AxisFault: namespace mismatch require http://services.sel.com found
     at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
     at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
     at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
     at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
     at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
     at com.sel.services.Invoker.main(Invoker.java:77)My wsdl is as follows,
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ns="http://services.sel.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://services.sel.com">
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.sel.com">
            <xs:element name="echoMessage">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="echoMessageResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" type="xs:boolean"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="sayBye">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="sayByeResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="sayHi">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="sayHiResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="echoMessageRequest">
        <wsdl:part name="parameters" element="ns:echoMessage"/>
    </wsdl:message>
    <wsdl:message name="echoMessageResponse">
        <wsdl:part name="parameters" element="ns:echoMessageResponse"/>
    </wsdl:message>
    <wsdl:message name="sayHiRequest">
        <wsdl:part name="parameters" element="ns:sayHi"/>
    </wsdl:message>
    <wsdl:message name="sayHiResponse">
        <wsdl:part name="parameters" element="ns:sayHiResponse"/>
    </wsdl:message>
    <wsdl:message name="sayByeRequest">
        <wsdl:part name="parameters" element="ns:sayBye"/>
    </wsdl:message>
    <wsdl:message name="sayByeResponse">
        <wsdl:part name="parameters" element="ns:sayByeResponse"/>
    </wsdl:message>
    <wsdl:portType name="GreetPortType">
        <wsdl:operation name="echoMessage">
            <wsdl:input message="ns:echoMessageRequest" wsaw:Action="urn:echoMessage"/>
            <wsdl:output message="ns:echoMessageResponse" wsaw:Action="urn:echoMessageResponse"/>
        </wsdl:operation>
        <wsdl:operation name="sayHi">
            <wsdl:input message="ns:sayHiRequest" wsaw:Action="urn:sayHi"/>
            <wsdl:output message="ns:sayHiResponse" wsaw:Action="urn:sayHiResponse"/>
        </wsdl:operation>
        <wsdl:operation name="sayBye">
            <wsdl:input message="ns:sayByeRequest" wsaw:Action="urn:sayBye"/>
            <wsdl:output message="ns:sayByeResponse" wsaw:Action="urn:sayByeResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="GreetSoap11Binding" type="ns:GreetPortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="echoMessage">
            <soap:operation soapAction="urn:echoMessage" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="sayHi">
            <soap:operation soapAction="urn:sayHi" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="sayBye">
            <soap:operation soapAction="urn:sayBye" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="GreetSoap12Binding" type="ns:GreetPortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="echoMessage">
            <soap12:operation soapAction="urn:echoMessage" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="sayHi">
            <soap12:operation soapAction="urn:sayHi" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="sayBye">
            <soap12:operation soapAction="urn:sayBye" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="GreetHttpBinding" type="ns:GreetPortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="echoMessage">
            <http:operation location="Greet/echoMessage"/>
            <wsdl:input>
                <mime:content type="text/xml" part="echoMessage"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="echoMessage"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="sayHi">
            <http:operation location="Greet/sayHi"/>
            <wsdl:input>
                <mime:content type="text/xml" part="sayHi"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="sayHi"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="sayBye">
            <http:operation location="Greet/sayBye"/>
            <wsdl:input>
                <mime:content type="text/xml" part="sayBye"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="sayBye"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Greet">
        <wsdl:port name="GreetHttpSoap11Endpoint" binding="ns:GreetSoap11Binding">
            <soap:address location="http://localhost:8080/axis2/services/Greet"/>
        </wsdl:port>
        <wsdl:port name="GreetHttpSoap12Endpoint" binding="ns:GreetSoap12Binding">
            <soap12:address location="http://localhost:8080/axis2/services/Greet"/>
        </wsdl:port>
        <wsdl:port name="GreetHttpEndpoint" binding="ns:GreetHttpBinding">
            <http:address location="http://localhost:8080/axis2/services/Greet"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>I have also added the following line in my services.xml,
<schema schemaNamespace="http://localhost:8080/Fws/services/Greet?xsd" />
Kindly let me know how to solve this.
TIA,
Jade

Looks like error is clear namespace mismatch...try changing the following url in wsdl and regen the code
http://example.ws found http://example.ws/xsd

Similar Messages

  • Namespace error with axis2

    Hi,
    I have created a simple web service with Eclipse, Axis and 2 plugins Axis Codegen 1.3, Axis Service archiver 1.3 (I do the service according to the guide in this page
    http://wso2.org/library/1719) but I have this error
    org.apache.axis2.AxisFault: namespace mismatch require http://example.ws found http://example.ws/xsd
         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
         at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
         at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
         at ws.example.TemperatureConverterStub.c2FConvertion(TemperatureConverterStub.java:440)
         at ws.example.TemperatureConverterServiceClient.main(TemperatureConverterServiceClient.java:12)
    Please help me !
    Thanks !

    Looks like error is clear namespace mismatch...try changing the following url in wsdl and regen the code
    http://example.ws found http://example.ws/xsd

  • Org.apache.axis2.AxisFault: namespace mismatch require

    hello Friends,
    I am doing an Axis2 WebService, i have done every thing like created .arr, Depoyed , i have generated stub , i wrote client every thing is working fine but when i run my client it is showing the following error.
    org.apache.axis2.AxisFault: namespace mismatch require http://example.ws found http://example.ws/xsddo any one have idea why i am getting this error.
    thanQ for any kind of error.
    Han

    Pls check your wsdl file. If the wsdl file is wrong, then ServiceBuilder takes the default wsdl and it uses the package structure to create default namespace (which is example.ws in ur case). Check your wsdl for proper binding, port and service declarations.

  • DYNAMIC_CALL_FAILURE Error during proxy processing An exception with the ty

    Hi,
    SRM 7.0 contains 2 clients:
    Sender: 100 for EBP, logical system is CLNT100
    Receiver: 200 for SUS, logical system is CLNT200
    both the clients are connected through PI 7.0, logical system of PI is CLNT001.
    From SPROXY of 100EBP, i'm executing the outbound proxy, in moni sent msg success.
    In PI also msg is processed.
    But in SUS200, it is showing below error msg:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Inbound Proxy
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIProxy</SAP:Category>
      <SAP:Code area="ABAP">DYNAMIC_CALL_FAILURE</SAP:Code>
      <SAP:P1>UNCAUGHT_EXCEPTION</SAP:P1>
      <SAP:P2>CL_BBPX_TRADING_PARTNER_SUS_IN</SAP:P2>
      <SAP:P3>EXECUTE_ASYNCHRONOUS</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error during proxy processing An exception with the type CX_BBPX1_STD_MESSAGE_FAULT occurred, but was neither handled locally, nor declared in a RAISING clause Application Error</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Pls help in resolving the same....
    tnx n rgds,
    balu

    Hi,
    How did you solve the issue? Can you please provide the solution.
    Thanks,
    -Devi Swain

  • Error during proxy processing An exception with the type CX_BBPX1_STD_MESSA

    Hello,everyone!
    My PI version is 7.11,SRM SUS version is 7.0,ECC version is 6.0 ,When I import XI SRM CONTEN,sending IDOC in ECC,there is a error some of the mesages:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIProxy</SAP:Category>
    <SAP:Code area="ABAP">DYNAMIC_CALL_FAILURE</SAP:Code>
    <SAP:P1>UNCAUGHT_EXCEPTION</SAP:P1>
    <SAP:P2>CL_BBPX1_SUSPO_IN</SAP:P2>
    <SAP:P3>EXECUTE_ASYNCHRONOUS</SAP:P3>
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Error during proxy processing An exception with the type CX_BBPX1_STD_MESSAGE_FAULT occurred, but was neither handled locally, nor declared in a RAISING clause Application Error</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Detialed error from SXMB_MONI,
    Error in XI interface: Exception occurredE:BBP_PD:147 -Enter a country for partner 0015111411 with type 'Vendor' I:R5:553 -'Different country' field contents deleted because identical to 'Country' E:BS:002 -"Create" is not allowed (SUS Purchase Order 7100076527 ) Program: CX_BBP_BD_ERROR===============CP; include: CX_BBP_BD_ERROR===============CM002; Line:
    This issue only ocuured for partner 0015111411, but we tried with other partner ID and those messages are processed sucessfully and PO is created.
    I have a doubt that, is there functionality in proxy to compare the country with partner in SRM system. Could please anyone help me one the same.
    Regards,
    Baskaran K

    HI,
    This is a standard proxy. I'm not sure how to debug the proxy with payload. Could you please tell me the steps.
    We have one more error message
    <FAULT_TEXT>Error in XI interface: Exception occurredE:BBP_PD:147 -Enter a country for partner XY91 with type 'Sold-to Party' E:BS:002 -"Create" is not allowed (SUS Purchase Order 7100076526 ) Program: CX_BBP_BD_ERROR===============CP; include: CX_BBP_BD_ERROR===============CM002; Line: 57</FAULT_TEXT>
    Is there any table to check these details like Sold-to Part, Vendor etc in SRM system?
    Regards,
    Baskaran K

  • Handling an input mismatch exception

    I have written the following code to calculate tax payments based on income and filing status :
    import java.util.Scanner;
    public class computeTax {
        public static void main(String[] args) {
            Scanner input = new Scanner(System.in);
            // prompt for filing status
            System.out.println("enter '0' for single filer,");
            System.out.println("enter '1' for married filing jointly or qualified widow(er),");
            System.out.println("enter '2' for married filing separately,");
            System.out.println("enter '3' for head of household.");
            while (true) {
            System.out.println("what is your filing status?");
             int status = input.nextInt();
                    if (status == 0) {
                    System.out.println("you're a single filer.  What is your income?");
                    double income = input.nextDouble();
                    //double income;
                        if (0 <= income && income <= 8350) {
                            System.out.println("Your tax bill is : $ " + income*0.1);
                        } else if (8351 <= income && income <= 33950) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((income-8350)*0.15)
                        } else if (33951 <= income && income <= 68525) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)       
                            + ((income-33950)*0.25)
                        } else if (68526 <= income && income <= 104425) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)
                            + ((82250-33950)*0.25)
                            + ((income-82250)*0.28)
                        } else if (104426 <= income && income <= 186475) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)
                            + ((82250-33950)*0.25)
                            + ((171550-82250)*0.28)
                            + ((income-171550)*0.33)
                        } else if (186476 <= income) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)
                            + ((82250-33950)*0.25)
                            + ((171550-82250)*0.28)
                            + ((372950-171550)*0.33)
                            + ((income-372950)*0.35)
                        break;
                    } else if (status == 1){
                        System.out.println("you're married filing jointly or qualified widow(er). What is your income?");
                        double income = input.nextDouble();
                        //double income;
                        if (0 <= income && income <= 16700) {
                            System.out.println("Your tax bill is : $ " + income*0.1);
                        } else if (16701 <= income && income <= 67900) {
                            System.out.println("Your tax bill is : $ " +
                            ( (16700*0.1)
                            + ((income-16700)*0.15)
                        } else if (67901 <= income && income <= 137050) {
                            System.out.println("Your tax bill is : $ " +
                            ( (16700*0.1)
                            + ((67900-16700)*0.15)       
                            + ((income-67900)*0.25)
                        } else if (137051 <= income && income <= 208850) {
                            System.out.println("Your tax bill is : $ " +
                            ( (16700*0.1)
                            + ((67900-16700)*0.15)
                            + ((137050-67900)*0.25)
                            + ((income-137050)*0.28)
                        } else if (208051 <= income && income <= 372950) {
                            System.out.println("Your tax bill is : $ " +
                            ( (16700*0.1)
                            + ((67900-16700)*0.15)
                            + ((137050-67900)*0.25)
                            + ((208850-137050)*0.28)
                            + ((income-208850)*0.33)
                        } else if (372951 <= income) {
                            System.out.println("Your tax bill is : $ " +
                            ( (16700*0.1)
                            + ((67900-16700)*0.15)
                            + ((137050-67900)*0.25)
                            + ((208850-137050)*0.28)
                            + ((372950-208850)*0.33)
                            + ((income-372950)*0.35)
                        break;
                    } else if (status == 2){
                        System.out.println("you're married filing separately. What is your income?");
                        double income = input.nextDouble();
                        //double income;
                        if (0 <= income && income <= 8350) {
                            System.out.println("Your tax bill is : $ " + income*0.1);
                        } else if (8351 <= income && income <= 33950) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((income-8350)*0.15)
                        } else if (33951 <= income && income <= 68525) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)       
                            + ((income-33950)*0.25)
                        } else if (68526 <= income && income <= 104425) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)
                            + ((68525-33950)*0.25)
                            + ((income-104425)*0.28)
                        } else if (104426 <= income && income <= 186475) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)
                            + ((68525-33950)*0.25)
                            + ((104425-68525)*0.28)
                            + ((income-104425)*0.33)
                        } else if (186476 <= income) {
                            System.out.println("Your tax bill is : $ " +
                            ( (8350*0.1)
                            + ((33950-8350)*0.15)
                            + ((68525-33950)*0.25)
                            + ((104425-68525)*0.28)
                            + ((186475-104425)*0.33)
                            + ((income-186475)*0.35)
                            break;
                } else if (status == 3){
                    System.out.println("you're a head of household. What's your income?");
                    double income = input.nextDouble();
                        if (0 <= income && income <= 11950) {
                            System.out.println("Your tax bill is : $ " + income*0.1);
                        } else if (11951 <= income && income <= 45500) {
                            System.out.println("Your tax bill is : $ " +
                            ( (11950*0.1)
                            + ((income-11950)*0.15)
                        } else if (45501 <= income && income <= 117450) {
                            System.out.println("Your tax bill is : $ " +
                            ( (11950*0.1)
                            + ((45500-11950)*0.15)       
                            + ((income-45500)*0.25)
                        } else if (117451 <= income && income <= 190200) {
                            System.out.println("Your tax bill is : $ " +
                            ( (11950*0.1)
                            + ((45500-11950)*0.15)
                            + ((117450-45500)*0.25)
                            + ((income-117450)*0.28)
                        } else if (190201 <= income && income <= 372950) {
                            System.out.println("Your tax bill is : $ " +
                            ( (11950*0.1)
                            + ((45500-11950)*0.15)
                            + ((117450-45500)*0.25)
                            + ((190200-117450)*0.28)
                            + ((income-190200)*0.33)
                        } else if (372951 <= income) {
                            System.out.println("Your tax bill is : $ " +
                            ( (11950*0.1)
                            + ((45500-11950)*0.15)
                            + ((117450-45500)*0.25)
                            + ((190200-117450)*0.28)
                            + ((372950-190200)*0.33)
                            + ((income-372950)*0.35)
                            break;
                        } else {
                            System.out.println("please type the right answer");
    The while loop initiated on line 21 is there so that in case the wrong input is given at the prompt given in line 24, the program outputs "please type the right answer" with the command on line 254 before looping back to line 24 and prompting the user to enter his status number.  The program works as long as the input at line 28 is an integer.  Not surprisingly if the erroneous input here is not an integer, the program outputs the following error message :
    Exception in thread "main" java.util.InputMismatchException
        at java.util.Scanner.throwFor(Scanner.java:909)
        at java.util.Scanner.next(Scanner.java:1530)
        at java.util.Scanner.nextInt(Scanner.java:2160)
        at java.util.Scanner.nextInt(Scanner.java:2119)
        at computeTax.main(computeTax.java:28
    To try to solve this I used the Try / Catch technique with the following version of the code :
    import java.util.Scanner;
    public class computeTax {
        public static void main(String[] args) {
            Scanner input = new Scanner(System.in);
            // prompt for filing status
            System.out.println("enter '0' for single filer,");
            System.out.println("enter '1' for married filing jointly or qualified widow(er),");
            System.out.println("enter '2' for married filing separately,");
            System.out.println("enter '3' for head of household.");
            while (true) {
                try {
                System.out.println("what is your filing status?");
                 int status = input.nextInt();
                        if (status == 0) {
                        System.out.println("you're a single filer.  What is your income?");
                        double income = input.nextDouble();
                        //double income;
                            if (0 <= income && income <= 8350) {
                                System.out.println("Your tax bill is : $ " + income*0.1);
                            } else if (8351 <= income && income <= 33950) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((income-8350)*0.15)
                            } else if (33951 <= income && income <= 68525) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)       
                                + ((income-33950)*0.25)
                            } else if (68526 <= income && income <= 104425) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)
                                + ((82250-33950)*0.25)
                                + ((income-82250)*0.28)
                            } else if (104426 <= income && income <= 186475) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)
                                + ((82250-33950)*0.25)
                                + ((171550-82250)*0.28)
                                + ((income-171550)*0.33)
                            } else if (186476 <= income) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)
                                + ((82250-33950)*0.25)
                                + ((171550-82250)*0.28)
                                + ((372950-171550)*0.33)
                                + ((income-372950)*0.35)
                            break;
                        } else if (status == 1){
                            System.out.println("you're married filing jointly or qualified widow(er). What is your income?");
                            double income = input.nextDouble();
                            //double income;
                            if (0 <= income && income <= 16700) {
                                System.out.println("Your tax bill is : $ " + income*0.1);
                            } else if (16701 <= income && income <= 67900) {
                                System.out.println("Your tax bill is : $ " +
                                ( (16700*0.1)
                                + ((income-16700)*0.15)
                            } else if (67901 <= income && income <= 137050) {
                                System.out.println("Your tax bill is : $ " +
                                ( (16700*0.1)
                                + ((67900-16700)*0.15)       
                                + ((income-67900)*0.25)
                            } else if (137051 <= income && income <= 208850) {
                                System.out.println("Your tax bill is : $ " +
                                ( (16700*0.1)
                                + ((67900-16700)*0.15)
                                + ((137050-67900)*0.25)
                                + ((income-137050)*0.28)
                            } else if (208051 <= income && income <= 372950) {
                                System.out.println("Your tax bill is : $ " +
                                ( (16700*0.1)
                                + ((67900-16700)*0.15)
                                + ((137050-67900)*0.25)
                                + ((208850-137050)*0.28)
                                + ((income-208850)*0.33)
                            } else if (372951 <= income) {
                                System.out.println("Your tax bill is : $ " +
                                ( (16700*0.1)
                                + ((67900-16700)*0.15)
                                + ((137050-67900)*0.25)
                                + ((208850-137050)*0.28)
                                + ((372950-208850)*0.33)
                                + ((income-372950)*0.35)
                            break;
                        } else if (status == 2){
                            System.out.println("you're married filing separately. What is your income?");
                            double income = input.nextDouble();
                            //double income;
                            if (0 <= income && income <= 8350) {
                                System.out.println("Your tax bill is : $ " + income*0.1);
                            } else if (8351 <= income && income <= 33950) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((income-8350)*0.15)
                            } else if (33951 <= income && income <= 68525) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)       
                                + ((income-33950)*0.25)
                            } else if (68526 <= income && income <= 104425) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)
                                + ((68525-33950)*0.25)
                                + ((income-104425)*0.28)
                            } else if (104426 <= income && income <= 186475) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)
                                + ((68525-33950)*0.25)
                                + ((104425-68525)*0.28)
                                + ((income-104425)*0.33)
                            } else if (186476 <= income) {
                                System.out.println("Your tax bill is : $ " +
                                ( (8350*0.1)
                                + ((33950-8350)*0.15)
                                + ((68525-33950)*0.25)
                                + ((104425-68525)*0.28)
                                + ((186475-104425)*0.33)
                                + ((income-186475)*0.35)
                                break;
                    } else if (status == 3){
                        System.out.println("you're a head of household. What's your income?");
                        double income = input.nextDouble();
                            if (0 <= income && income <= 11950) {
                                System.out.println("Your tax bill is : $ " + income*0.1);
                            } else if (11951 <= income && income <= 45500) {
                                System.out.println("Your tax bill is : $ " +
                                ( (11950*0.1)
                                + ((income-11950)*0.15)
                            } else if (45501 <= income && income <= 117450) {
                                System.out.println("Your tax bill is : $ " +
                                ( (11950*0.1)
                                + ((45500-11950)*0.15)       
                                + ((income-45500)*0.25)
                            } else if (117451 <= income && income <= 190200) {
                                System.out.println("Your tax bill is : $ " +
                                ( (11950*0.1)
                                + ((45500-11950)*0.15)
                                + ((117450-45500)*0.25)
                                + ((income-117450)*0.28)
                            } else if (190201 <= income && income <= 372950) {
                                System.out.println("Your tax bill is : $ " +
                                ( (11950*0.1)
                                + ((45500-11950)*0.15)
                                + ((117450-45500)*0.25)
                                + ((190200-117450)*0.28)
                                + ((income-190200)*0.33)
                            } else if (372951 <= income) {
                                System.out.println("Your tax bill is : $ " +
                                ( (11950*0.1)
                                + ((45500-11950)*0.15)
                                + ((117450-45500)*0.25)
                                + ((190200-117450)*0.28)
                                + ((372950-190200)*0.33)
                                + ((income-372950)*0.35)
                                break;
                            } else {
                                System.out.println("please type the right answer");
                        } catch (java.util.InputMismatchException ex){
                            System.out.println("Input Mismatch Exception ");
    I have put the try / catch structure inside the while loop.  The input error is now dealt with but when a non integer input is entered at the status prompt, the program enters an infinite loop like so  :
    Input Mismatch Exception
    what is your filing status?
    Input Mismatch Exception
    what is your filing status?
    Input Mismatch Exception
    what is your filing status?
    Input Mismatch Exception
    etc
    etc
    etc...
    The problem here is that the program no longer stops at the status prompt on line 27.
    Can anyone suggest a way of overriding the input mismatch error thing and looping back to a status prompt that actually stops and waits for the input?
    Thanks

    Thanks for your reply.
    Your idea of compartmentalization sounds a good idea.
    By the way, I found a solution to the infinite loop  Check out :
    http://stackoverflow.com/questions/3572160/infinite-looptry-catch-with-exceptions.
    In particular :
    "......if the next token is not an int, it throws the InputMismatchException, but the token stays there. So on the next iteration of the loop, reader.nextInt() reads the same token again and throws the exception again. What you need is to use it up. Add a reader.next() inside your catch to consume the token, which is invalid and needs to be discarded."
    In the case of my code I substitute "reader.next()" with "input.next()" :
    } catch (java.util.InputMismatchException ex){
    System.out.println("Input Mismatch Exception ");
    input.next();

  • Exception with type CX_SY_DYN_CALL_ILLEGAL_TYPE problem

    Hi ,
    I am facing an Exception error while mapping the data source in Values Fields of a Measure in Balance Scorecard.
    The measure is defined using the local System.
    The Excepton is :
    An Exception with the type CX_SY_DYN_CALL_ILLEGAL_TYPE occured, but wasneither handeledlocally nor delcared in a RAISING clause
    Can anyone slove this plz
    Thanks
    rani

    Hi Rani,
         This exception normally occurs when there is a type mismatch.
    So check your mapping .
    Regards,
    Siva.

  • Problem with passing exception with declarative security

    I am having a problem with passing exceptions with message security bunding enables. I have a JAXWS EJB 3.0 web service, The service defines methods which throw exceptions. The exceptions are passed correclty when there is no message security enabled. once the security is enabled and an exception is thrown, I get the stack trace below. Furthermore, the service with security enabled works fine as long as methods do not throw an exception. I am thinking that the JAXWS generated wrapped exception is not correctly handled by the message security provider in the server. Just a thought. Any help would be greatly appreciated.
    Stack trace:
    [#|2007-03-23T00:49:06.333-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417
    ac0-ded8-474d-9066-5a97c8559b67;|
    ERROR: 'NAMESPACE_ERR: An attempt is made to create or change an object in a wa
    y which is incorrect with regard to namespaces.'|#]
    [#|2007-03-23T00:49:06.334-0600|SEVERE|sun-appserver-pe9.0|javax.xml.messaging.s
    aaj.soap|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417ac0-de
    d8-474d-9066-5a97c8559b67;|SAAJ0511: Unable to create envelope from given source
    |#]
    [#|2007-03-23T00:49:06.334-0600|INFO|sun-appserver-pe9.0|javax.enterprise.system
    .core.security|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;|SEC2003: Contai
    ner-auth: wss: Error securing response
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]
    [#|2007-03-23T00:49:06.335-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.core|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417ac0-de
    d8-474d-9066-5a97c8559b67;|Exception while tracing response : Unable to create e
    nvelope from given source: |#]
    [#|2007-03-23T00:49:06.336-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417
    ac0-ded8-474d-9066-5a97c8559b67;|
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]
    [#|2007-03-23T00:49:06.336-0600|SEVERE|sun-appserver-pe9.0|javax.enterprise.reso
    urce.webservices.jaxws.server.soapmd|_ThreadID=11;_ThreadName=httpWorkerThread-8
    080-0;_RequestID=64417ac0-ded8-474d-9066-5a97c8559b67;|Unable to create envelope
    from given source:
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]
    [#|2007-03-23T00:49:06.338-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417
    ac0-ded8-474d-9066-5a97c8559b67;|
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]

    Hi,
    Thanks for the reply. I read the weblog and posted a reply to it already.
    History:
    I actually have a web service where I have message level security enabled and it works great. I had some issues early on with descriptor but those are worked out. As I was testing, I created a test case that throws an exception. That is when I get the NAMESPACE_ERROR, jauth exceptions , etc.
    Attempt to find issue:
    Glassfish: V1 (glassfish-installer-9.0-b48.jar), jdk1.5.0_11
    Code: EJB tech tip EJB30 web service
    Security: message security, specified almost verbatim to how it is done in the link you mention.
    Sample works fine until I modify the web service to throw an exception. Once I do that, I get the NAMESPACE_ERROR stack trace I posted in original message. The sample in the tech tip uses the embedded app-client.
    Thanks for helping with this.

  • OSB, CSV, MFLBusiness Service, Data Mismatch Exception (OSB 11.1.1.6)

    I am having a problem transforming a big CSV file.
    The situation:
    I am using the following setup: OSB 11.1.1.6, developing with Eclipse OEPE on Windows 7. The behaviour described below is the same on a Linux server running the same version OSB though.
    My CSV source file has 162 columns and is mapped to a CSV file with 52 columns with some logic to exclude rows or transform values.
    Right now my adapter looks like this:
    MFL Proxy Service: FTP Pickup of CSV File
    - 1 stage:
    -- 1 Action: XQuery Transform the source MFL to the target MFL
    - Route to MFL Business Service on SFTP protocol (to write to CSV file)
    Right now the error I am getting is this one:
    <5-dec-2012 16:19:57 uur CET> <Error> <SFTPTransport> <BEA-381801> <Error occured for endpoint <MFLException>
    <ErrorMessage>Data mismatch exception.</ErrorMessage>
    <Details>
    <Detail>
    <Name>ErrorCode</Name>
    <Value>-1</Value>
    </Detail>
    <Detail>
    <Name>DataOffset</Name>
    <Value>0</Value>
    </Detail>
    <Detail>
    <Name>NodeName</Name>
    <Value>CatalogVersion</Value>
    </Detail>
    <Detail>
    <Name>FullyQualifiedName</Name>
    <Value>ProductMasterDataGroup.ProductMasterData.CatalogVersion</Value>
    </Detail>
    <Detail>
    <Name>ExpectedValue</Name>
    <Value>CatalogVersion</Value>
    </Detail>
    <Detail>
    <Name>Reason</Name>
    <Value>CatalogVersion is missing from the input XML, parent node is: ProductMasterData</Value>
    </Detail>
    </Details>
    </MFLException>
    <MFLException>
    <ErrorMessage>Data mismatch exception.</ErrorMessage>
    <Details>
    <Detail>
    <Name>ErrorCode</Name>
    <Value>-1</Value>
    </Detail>
    <Detail>
    <Name>DataOffset</Name>
    <Value>0</Value>
    </Detail>
    <Detail>
    <Name>NodeName</Name>
    <Value>CatalogVersion</Value>
    </Detail>
    <Detail>
    <Name>FullyQualifiedName</Name>
    <Value>ProductMasterDataGroup.ProductMasterData.CatalogVersion</Value>
    </Detail>
    <Detail>
    <Name>ExpectedValue</Name>
    <Value>CatalogVersion</Value>
    </Detail>
    <Detail>
    <Name>Reason</Name>
    <Value>CatalogVersion is missing from the input XML, parent node is: ProductMasterData</Value>
    </Detail>
    </Details>
    </MFLException>
         at com.bea.nonxml.common.MFLException.create(MFLException.java:221)
         at com.bea.nonxml.common.MFLException.create(MFLException.java:329)
         at com.bea.nonxml.writers.NonXMLWriterVisitor.writeEndElement(NonXMLWriterVisitor.java:415)
         at com.bea.nonxml.writers.NonXMLWriterInputStream.getmoredata(NonXMLWriterInputStream.java:199)
         at com.bea.nonxml.writers.NonXMLWriterInputStream.read(NonXMLWriterInputStream.java:96)
         Truncated. see log file for complete stacktrace
    From what I understand, there is a value missing for CatalogVersion. However, this is static content in the XQuery, so it should always be filled. I have written the Body variable to disk during the various steps in the service, the XML which is written is valid and is not missing this node. It appears to me that OSB is discarding this node in the last step when the CSV file is being written.
    The strange thing is that this error only occurs when I use a bigger file (say > 100kB). When using smaller files it works fine.
    Tests done so far:
    - Small file size (say less than 100 rows and smaller than 100kB), this is working fine
    - Conversion of CSV to XML with MFL in the MFL Builder, it works fine (for small filesize)
    - Conversion back to CSV from XML with MFL in the MFL Builder, it works fine (again, also only with smaller files)
    - Change of streaming settings on the proxy service, no change in behaviour
    - Change of Proxy Service and Business service to type File to make sure there is no latency interfering
    The strange thing is that I have seen quite some posts on various blogs which explain a solution like this, appearently they are using bigger files (I've seen 150MB+ mentioned) so I am wondering what I am doing wrong..

    A small addition to the above post;
    I have changed the Business Service from SFTP to File and the adapter is working as it should. The exported CSV has all the rows and is written like it should.
    Perhaps the combination of SFTP Business Service with a MFL type is causing this problem right now.
    As a work around I am following this flow now:
    1.) CSV on SFTP via MFL mapping -> OSB -> CSV to FILE via MFL Mapping
    2.) FILE -> OSB -> SFTP
    The second flow does not contain any logic, only moves the file to the SFTP server.
    When I have time I will investigate further and post the results when I find a better solution..

  • Exception with DefaultTableModel

    Dear all,
    I want to instatiate this class and add to my JTable. However, I can't make an instance of this.
    If I extend AbstractTableModel my code is working fine but with DefaultTableModel I get the exception: "Exception caught in Scenegraph: null".
    Why do I get null exception in this code?
    !!!Please notice that the code is working fine with AbstractTableModel but not with DefaultTableModel!!!
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import javax.swing.DefaultCellEditor;
    import java.util.Vector;
    //public class MyTableModel extends AbstractTableModel
    public class MyTableModel extends DefaultTableModel
    private boolean DEBUG = true;
    final String[] columnNames = {"IFCOBJECTS OR PROCESSES", "QUANTITY", "UNITS", "UNIT COST (?)", "TOTAL COST (?)"};
    static Object[][] data = new Object[IFC_Tree.totalVector.size()][5];
    static double totalCost = 0.0;
    public MyTableModel()
    for(int i=0; i < IFC_Tree.totalVector.size(); i++)
    Vector tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    for(int j=0; j < tmp.size(); j++)
    Object value = tmp.get(j);
    data[i][j] = value;
    public int getColumnCount()
    return columnNames.length;
    public int getRowCount()
    return data.length;
    public String getColumnName(int col)
    return columnNames[col];
    public Object getValueAt(int row, int col)
    return data[row][col];
    public boolean isCellEditable(int row, int col)
    if (col < 3)
    return false;
    else if (col == 3)
    return true;
    else
    return false;
    public void setValueAt(Object value, int row, int col)
    data[row][col] = value;
    fireTableCellUpdated(row, col);
    if(col == 3)
    try
    String str = (String)data[row][col];
    data[row][col+1] = new Double( ((Float)data[row][col-2]).doubleValue() * Double.valueOf(str).doubleValue() );
    fireTableCellUpdated(row, col+1);
    totalCost = 0.0;
    for (int k=0; k<TableDemo.costTable.getRowCount(); k++)
    totalCost = totalCost + ((Double)data[k][4]).doubleValue();
    data[TableDemo.costTable.getRowCount() - 1][4] = new Double (totalCost);
    fireTableCellUpdated(TableDemo.costTable.getRowCount() - 1, 4);
    catch(Exception ex)
    System.out.println("Exception caught in MyTableModel class: INVALID INPUT " + ex.getMessage());
    System.out.println(":-(");
    private void printDebugData()
    int numRows = getRowCount();
    int numCols = getColumnCount();
    for (int i=0; i < numRows; i++)
    System.out.print("row " + i + ":");
    for (int j=0; j < numCols; j++)
    System.out.print(" " + data[i][j]);
    System.out.println();
    }

    Hi vreznik;
    Actually, my original code is just exactly the same you suggested.
    I get the exception with DefaultTableModel only.
    public MyTableModel()
    //System.out.println("TableModel_1");
    for(int h=0; h < IFC_Tree.totalVector.size(); h++)
    Vector tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    for(int j=0; j < tmp.size(); j++)
    Object value = tmp.get(j);
    data[h][j] = value;
    }

  • Exception with the type CX_SY_OPEN_SQL_DB occured and was not handled

    Hi Champs,
    I am working on an interface which picks up file uploaded in a XI server and process it. The Function module used is a Z function module, developed locally.
    I am uploading an tab limited file in XI server and a background job processes the file. The tab limited file contains Payelement Transaction ID as primary key.  And after validation of elements like WBS element, cost center etc the file is posted using BAPI BAPI_ACC_DOCUMENT_POST. And all the Payelement Trans Ids are also replicated in a Z table, with there status viz. Success or Error or Warning.
    After background job was completed, we found in Tcode SXMB_MONI that the file was in error.
    The error message was :
    Error during proxy processing An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause The system tried to insert a data record, even though a data record with the same primary key already exists.
    But to my dismay, I found that some of the Payelement Trans Ids were posted for a document and are also replicated in my Z table.
    From the error it seems that we are inserting a record that is already there in the document. I have checked in for BAPI's input parameter, there is nothing duplicate.
    Note: Insertion in Z table is made after the BAPI BAPI_ACC_DOCUMENT_POST.
    Can you help me out in this issue as it is now getting into veins
    Reagrds,
    Nishant

    Hi,
    Even we have faced this kind of issue. In order to solve this just write the following code:
    1) Before inserting records in to Z table, write one select query on that table with primary key fields in where clause. Pass the value that are returned by BAPI BAPI_ACC_DOCUMENT_POST to the key field.
    2) If sy-subrc = 4, insert records in Z table else Continue and dont insert records in this table. 
    This will solve your problem.
    Regards,
    Prashant

  • Imac 27" Intel Core 7 CPU. Screen goes black and will not respond except with a push of power button. Second monitor connected via displayport continues to display fine. Apply Store did full hardware scan and all is fine. Did clean wipe from Mavrick back

    Imac 27" Intel Core7  CPU 16 Gig RAM. Screen goes black and will not respond except with a push of power button. Second monitor connected via displayport continues to display fine. Apply Store did full hardware diagnostic and all is fine. Did clean wipe from Mavrick back to Mountain Lion but problem remains. Apple Store can do no more.

    I did some more digging, it appears to be a backlight problem only. I can see the screen very dimly if I use a bright flashlight in a very dark room. It also seems to run ok if the brightness is turned down a LOT.
    So I'm thinking this is a LED driver board issue or the display itself. I'll open it up and check the connection between the two and see if I can get any more clues. At least I can use it somewhat now by dimming the display significantly...

  • Null pointer Exception with removeRowWithKey operation

    Hii experts,,,
    I am using JDevelepor 11.1.2.1.0 Version
    I Am new in ADF ,
    In My sample application i select row in iterator by findIterator() method
    then get the specified row by getCurrentRow();
    then i get the rowKey By row.getKey() method..
    I put rowKey as parameter to removeRowWithKey operation
    I have get null pointer Exception with removeRowWithKey operation
    java.lang.NullPointerException
         at oracle.jbo.server.ViewRowSetImpl.prepKeyForFind(ViewRowSetImpl.java:5352)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5394)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5296)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5290)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:11536)
         at oracle.adf.model.binding.DCIteratorBinding.removeRowWithKey(DCIteratorBinding.java:3748)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1598)
    how can solve this???

    thanks Timo
    through this URL i get possible deletion methods...
    pls give more Information about the concept of removeRowWithKey, setCurrentRowWithKey, setCurrentRowWithKeyValue operation.... Just For Knowledge....
    Edited by: NZL on Mar 2, 2012 9:37 AM
    Edited by: NZL on Mar 2, 2012 9:42 AM

  • PI - Proxy processing An exception with the type CX_SY_CONVERSION_NO_NUMBER

    Hi All,
    We have PI sync scenario,SOAP to Proxy.
    We are geeting the below error in Proxy .
    Error during proxy processing An exception with the type CX_SY_CONVERSION_NO_NUMBER occurred, but was neither handled locally, nor declared in a RAISING clause The argument &#39; 1,000.000&#39; cannot be interpreted as a number.
    But when the same data got updated in Proxy.Not sure about the root cause of the error.
    Regards,
    Arun

    Hi ,
    It looks like proxy is not able to convert string to number or the format of number is incorrect. This is only possible reason of this exception.
    The argument ' 1,000.000' cannot be interpreted as a number.
    Check out if the format is correct.. .
    Regards
    Aashish Sinha

  • Flat file data load error: Exception with type CX_SY_CONVERSION_NO_NUM

    Hi Guys,
    I am trying to create a datasource from a flat file (excel data in csv format) and when I create infopackage on the datasource and trying to load, I am getting the error,
    Error 'An exception with the type CX_SY_CONVERSION_NO_NUM' at conversion exit RSDS_CONVERT_NUMBER (field FAB record 480, value 8)
    Can somebody help me with this.
    I am working in BI 7. In the excel sheet I have all cell with general format.
    I tried using PSA Typed and not Typed. Didnt work
    Thanks in advance

    I selected Data Format as "Separated with Separated (for Example CSV),
    Data Separator ,
    Escape Sign ; (this i didnt understand where it comes in csv file) also I left the  Hex check boxes unchecked.
    PSA not Typed is also unchecked.
    Am I missing something? Data types in excel spreadsheet (csv file)?
    Thank you

Maybe you are looking for