Results 1 to 2 of 2

Thread: Strange problem

  1. #1
    Tamir is offline Member
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    Question Strange problem

    I am using eclipse IDE. This piece of code is giving me some strange behavior. The problem that i am facing is as follows

    InsuredOrPrincipalInfoType insuredOrPrinInfoType =
    currInsuredOrPrincipal.getInsuredOrPrincipalInfo() ;
    if(insuredOrPrinInfoType.getMembershipInd() != null)
    {

    When I do inspect on insuredOrPrinInfoType variable I see the following , watch the MembershipInd


    <xml-fragment>
    <x/:InsuredOrPrincipalRoleCd>Insured</x/:InsuredOrPrincipalRoleCd>
    <x/:MembershipTypeCd>AARP</x/:MembershipTypeCd> <x/:MembershipInd>1</x/:MembershipInd> <x/:MembershipNumber>022835573</x/:MembershipNumber>
    <x/:PersonInfo>
    <x/:GenderCd>M</x/:GenderCd>
    <x/:BirthDt>1976-03-05</x/:BirthDt>
    <x/:MaritalStatusCd>S</x/:MaritalStatusCd>
    <x/:OccupationDesc>Employed</x/:OccupationDesc>
    </x/:PersonInfo>
    <x/:PrincipalInfo/>
    </xml-fragment>


    And when I do an inspect on insuredOrPrinInfoType.getMembershipInd() it says null. When the previous inspect did show me this value is not null.


    Do you know what could be the possible reason ?

    Thanks
    Tamir

  2. #2
    Tamir is offline Member
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    Default

    The problem was with my namespaces this is fixed now . Thanks

Similar Threads

  1. What is the answer to this strange problem:
    By willemjav in forum New To Java
    Replies: 5
    Last Post: 08-11-2008, 09:31 PM
  2. Strange behaviour in swing
    By cbalu in forum AWT / Swing
    Replies: 1
    Last Post: 05-23-2008, 09:23 PM
  3. Need help on a strange file access prob
    By squad in forum Advanced Java
    Replies: 0
    Last Post: 03-21-2008, 10:55 AM
  4. System.in.read(); strange error!
    By kantze in forum New To Java
    Replies: 2
    Last Post: 03-19-2008, 01:44 PM
  5. Strange error message "Source not found"
    By ppayal in forum Eclipse
    Replies: 0
    Last Post: 11-25-2007, 06:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •