Skip to Content
avatar image
Former Member

Data type restriction on context nodes attributes

Hi every body!

I'm facing a problem working with a context node in a component controller that have an atribute of type java.io.Serializable. Whenever I try to access this atribute a got a nullPointerException.

Is there any restriction on the data types that i can use for an attribute?

Regards

Jose Arango

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 09, 2008 at 03:26 AM

    Hi Jose,

    Refer to the following threads which might help you.

    any-type-restrictions-in-context-webdynpro-java

    Passing InputStream to EJB

    Thanks n Regards,

    Jhansi Miryala

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 09, 2008 at 04:40 AM

    Did you initialize that object?

    nikhiL

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 10, 2008 at 05:53 PM

    Hi,

    try out the following code and let me know if you still get null pointer exception:

    if(wdContext.nodeReqFind().size>0)

    {

    wdContext.currentReqFindElement().setId("<any string >");

    }

    regards,

    amit bagati

    Add comment
    10|10000 characters needed characters exceeded

    • Hi jose

      have you solved your issue??

      in my case it works fine with your code. ie by accessing the element of node(cardinality 1,1) as wdContext.current<node_Name>Element().set<attribute_Name>(value);

      also you can try it this way

      wdContext.node<node_Name>.getElementAt(0).getAttributeValue('<attribute_Name>","value");

      Deepak