cancel
Showing results for 
Search instead for 
Did you mean: 

Null Pointer Exception in custom action block in xMII 12.1

Former Member
0 Kudos

Hello Expert,

I have created simple custom action block for concating two strings The same example explained in the following link

[/people/rupesh.bajaj/blog/2007/12/04/beginners-guide-to-create-custom-action-block |/people/rupesh.bajaj/blog/2007/12/04/beginners-guide-to-create-custom-action-block ]

But in mii i m getting the following exception

:Error executing transaction: ERROR_ON_LOAD [java.lang.NullPointerException]

Thanks for any help in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Problem was resolved

Former Member
0 Kudos

Hi Neha,

The link is for xMII 11.5.

Hope you have updated the code according to MII 12.1 .

Please check the custom action block document for 12.1

https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012002523100009655912009E&;

Thanks

Anshul

Former Member
0 Kudos

Hi Anshul,

Thank you for help.

I have tried simple action example for addind two number in that documentation.I have deployed example in mii. I m able to see action block in mii,but i m unable to see input and output parameter in action block in mii.

Also i m unable to find out syantax for setting icon.

Thank you for help in advance.

Edited by: neha.jadhav on Sep 8, 2011 9:19 AM

Former Member
0 Kudos

Hi neha,

Any error on the console while loading the workbench?

Check for this thread as well.

Regards

Anshul

Former Member
0 Kudos

Hi Anshul,

Thank you for help.

I m not getting any error on console while loading the workbench.

I had gone through the link which you mentioned. I m doing same thing which mentioned in that document using Eclipse.I deployed Jar file and m able to see action block.But not able to see input and output parameter and unable to find out syntax for icon.

Is it necessary that there should not be any runtime error in java code?

Thank you

Edited by: neha.jadhav on Sep 8, 2011 11:44 AM

Former Member
0 Kudos

Hi Anshul,

I missed to use the same name for category entry for the action in xml file.Now I m able to see input and output parameter.

I have assigned values for i/p in action block.

But i m getting error while executing action block as following:

[ERROR] [Tracer_0] Action: Runtime threw an exception. Exception: [Invalid variable: ConcatString_0.Output [Unknown variable: ConcatString_0.Output]]

Regards,

Neha

Former Member
0 Kudos

HI Neha,

The error is caused by InvalidVariableException.

Are you passing the correct variables to the input like Valid Integers only.

Regards

Anshul

Former Member
0 Kudos

Hi Anshul,

Thank you for help.

Using tracer I can see the value assign to the input parameter [say : input 1 and input2] but when assinging the output parameter [output] to the tracer Im getting the following exception error...

[ERROR] [Tracer_0] Link ('Tracer_0.Message' [Assign] from "ConcatString_0.Output") execution threw an exception. Exception: [Invalid variable: ConcatString_0.Output [Unknown variable: ConcatString_0.Output]]

[ERROR] [Tracer_0] Action: Runtime threw an exception. Exception: [Invalid variable: ConcatString_0.Output [Unknown variable: ConcatString_0.Output]]

I guess problem with the output parameter defination...

Rgds

Neha

Former Member
0 Kudos

Hi Neha,

Check for one thing.

Don't directly link the output of custom action to tracer.

Assign it to some local property which is Number Type.

Then trace the number.

Regards

Anshul

Former Member
0 Kudos

Hi Anshul,

I tried with local variable logic but its not working. Im unable to access output variable.

Getting the same error

[ERROR] [Assignment_0] Link ('Transaction.Trx_output' [Assign] from "ConcatString_0.Output") execution threw an exception. Exception: [Invalid variable: ConcatString_0.Output [Unknown variable: ConcatString_0.Output]]

[ERROR] [Assignment_0] Action: Runtime threw an exception. Exception: [Invalid variable: ConcatString_0.Output [Unknown variable: ConcatString_0.Output]]

Thank you for helping.

Rgds

Neha

Former Member
0 Kudos

Hi Anshul,

The error regarding output (ERROR Assignment_0 Link ('Transaction.Trx_output' Assign from "ConcatString_0.Output") execution threw an exception. Exception: [Invalid variable: ConcatString_0.Output Unknown variable: ConcatString_0.Output]

) was resolved.

I m succesfully uploaded simple example action block in sap mii.It's working correctly.The problem is regarding jdk version,

previously m using jdk 1.6 version but it needs jdk 1.5 version.

Thank you for help.

regards,

Neha