cancel
Showing results for 
Search instead for 
Did you mean: 

text must not be null

former_member192766
Participant
0 Kudos

Hi,

I am importing a Web Service as Model an bind a DropDownList to the Context node.

I am getting the following error when running the application:

The initial exception that caused the request to fail, was:

java.lang.IllegalArgumentException: text must not be null

Any idea's?

Thanks,

Ridouan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

It looks like you have missed the binding of DropDownByIndex text property to the respective Context attribute

Could be because you might have missed one of the mandatory parameter for the WebService.

If you could post the entire stack trace for the error it would be of real help.

Regards

Ayyapparaj

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

is there any attribute with name "text" ?

then do like this

if(value!=null)

wdContext.----


.settext(value);

Regards,

ramesh

former_member192766
Participant
0 Kudos

Hi,

No, there is no attribute with the name "text".

This is the code I use to bind a DropDownList with the Context node.

LangModel model = new LangModel();

Request_GetLanguage language = new Request_GetLanguage(model);

wdContext.nodeRequest_GetLanguage().bind(language);

try {

wdContext.currentRequest_GetLanguageElement().modelObject()

.execute();

wdContext.nodeResponse().invalidate();

} catch (Exception e) {

wdComponentAPI.getMessageManager().reportException(

e.getLocalizedMessage());

Thanks,

Ridouan

former_member192434
Active Contributor
0 Kudos

Hi

did you try

Invalidating Node first and then excute BAPI

Thanks

former_member192766
Participant
0 Kudos

Thanks guy's.

No idea what it was, I just restarted the whole system and it's is now OK.

I have done this before, perhaps a bug in NW CE 7.1.

Cheers,

Ridouan

former_member192434
Active Contributor
0 Kudos

Hi

You might be passing Illegal Argument as a input parameter,

Plz check the your defined data type

Thanks

former_member192766
Participant
0 Kudos

Thanks guys!. The text is mapped to the correct Context node.

It's a String and that 's ok. The other methods in the Web Service are working OK.