cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

iCommand and xacuteQuery Error

Former Member
0 Likes
356

I'm trying to use and iCommand to invoke a BLS Transaction via xacuteQuery

Everything works till the exacuteQuery. When I execute the icommand i receive the error Server name cannot be blank; enter a server name.

What I'm doing wrong?

MII 12.0.5

Any help is really appreciated!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Mauro,

Are you sure that you are using the Xacute Query. There server name is not required. In your case you might be going throug the SQL Query with Command Mode.Thats why you are getting this error.So go to Xacute Query,server will be Xacute Connector,select Query Mode and select the particular transaction in Transaction Tab and run the query.

Another chance might be the Xacute Connector acces is not mapped to the user or role from which you are using. Just map the Xacute Connector server to the user or role you are using. For this do the following:

1) SAP xMII Administration Menu screen, choose Security Services -


> Data Access.

2) Select Xacute Connector server from the dropdown list.

3) Select a role and use the arrow buttons to add it to or remove it from the Roles Assigned to Server list.

4) Save the changes.

-Suresh

Edited by: Suresh Hiremath on Dec 22, 2009 12:29 PM

Former Member
0 Likes

Solved.

It was a mistake in the HTML code : I wrote mayscript="

However the Suresh's response was really helpful to confirm me that i did the whole steps in the right way.

Thanks

jcgood25
Active Contributor
0 Likes

Mauro,

To shed some light on the error "Server name cannot be blank..." --> all applets use their query template and when processed look for either Service (Admin, SystemInfo, etc.) then Server (Simulator, XacuteConnector, etc.) so I would speculate that you had a typo in the path to the query template itself (or perhaps didn't have one defined at all). If a template is missing I would also expect errors in the NW logs about not being able to find the template in the db, but if it's not found and the query is processed (essentially an empty query) you will get this server name blank error.

I could be mistaken, but I would also expect that mayscript issues would only impact you when trying to use the applet events to call javascript functions and this would also lead to errors in the java console.

If you had permission issues to use the service or data server defined in the template, you would typically receive a "Not Authorized" type of error message.

Hopefully this aids anyone running into similar troubleshooting situations in the future - I am glad to see that you started by looking into the logs

Regards,

Jeremy

Former Member
0 Likes

Thank you Jeremy.

As you said, I found the mistake seeing NetWeaver error log. The root problem, however, was the typo in the <applet> tag, I wrote mayscript=" and this prevented the correct execution of the iCommand applet.

This is the wrong code

<applet name="myCommand" codebase="/XMII/Classes" code="iCommand" archive="illum8.zip" mayscript=">
	<param name="QueryTemplate" value="TestICommand/Query/xacute_testTransaction"/>
</applet>

Former Member
0 Likes

I have some difficulties to post code samples.

this is NW log

Full Message Text

application [XMII] Processing HTTP request to servlet [Illuminator] finished with error.

The error is: com.sap.xmii.Illuminator.logging.LHException: Server name cannot be blank; enter a server name

Exception id: [005056A1442F006B000004D900000A2800047B4EAEF53E61]

info 2009-12-22 11:29:30:507 ACCESS.OK: Authorization check for caller assignment to J2EE security role [SAP-J2EE-Engine : guests].

/System/Security/Audit/J2EE com.sap.engine.services.security.roles.SecurityRoleImpl sap.com/xappsxmiiear sita1801m1 Server 0 2_20262

Full Message Text

ACCESS.OK: Authorization check for caller assignment to J2EE security role [SAP-J2EE-Engine : guests].