cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Global Variable

Former Member
0 Kudos

Hi

We are using MII 12.1 Sp 05 version.

Every time when i try to save any global property we are getting error as

"Sting index out of Range -1 "

At the server end it records as Catelog service exception .

No other clues.

Any body have experienced this error before.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I have the exact same error on 12.1 SP07. When I try to add a global variable I get "String Index out of range: -1" Unfortutnatly, the workaround in Note 1463182 - "Global properties not being saved properly" does not work either.

0 Kudos

Doug,

In my MII instance, 12.1.7 b47 (Patch 2), I am able to create any number of global properties. What build are you using?

Thanks,

Sam

erik_schrampf
Active Participant
0 Kudos

Did you make sure to clear out the Java WS cache as well so a new version of the workbench will load. If you open the WB go to Help Settings and it will tell you your MII and WB version. If they are not the same and the WB is lower make sure to clear out the java ws cache and try again. Depending on your version of Java WS it will be different so do a web search.

Former Member
0 Kudos

Thanks for your replies.

I could not save even a single variable of any type integer, string or any data type

I have checked the SAP note and tried the temporary patch and still same error .

My server is patched with SP07 last week

Not sure any pre setup is required like creating globals.xml file before start using the Globals properties.

Any clues please

Former Member
0 Kudos

Hi,

before going into more details, please try this:

- open the MII System Management > Configurations

- uncheck the Select All, only mark "Global"

- click export

Can you export the file (xmiibackup.xml)? Check the contents. Enter a value and import the file. Can you see the global property in the workbench?

Michael

Former Member
0 Kudos

Hi Michael,

i have tried to export and enter a value and again import. It is working fine and i am seeing the values in the Work bench.

But if i try edit the values (add/delete /change) i am getting string index outof bouds Exception.

The Logged error message is given below

Catalog Service Error

[EXCEPTION]

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1809)

at com.sap.xmii.system.FileManager.select(FileManager.java:723)

at com.sap.xmii.common.CatalogUtil.doSave(CatalogUtil.java:262)

at com.sap.xmii.servlet.Catalog.handleSave(Catalog.java:873)

at com.sap.xmii.servlet.Catalog.service(Catalog.java:147)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)

at com.sap.xmii.system.SecurityFilter.doFilter(SecurityFilter.java:96)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:461)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)

at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:243)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)

at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)

at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)

at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)

Any other clue pease

Former Member
0 Kudos

Hi,

it is good news that you have got a workaround to add or change a global value using the export / import function.

I would recommend to open a SAP ticket to let the SAP guys work on this problem. You should be able to add / edit / delete the global properties inside the workbench.

Michael

agentry_src
Active Contributor
0 Kudos

What version of NW CE do you have installed?

0 Kudos

Hello,

Why are you writing to a Global variable? I thought that at Runtime these properties were read only.

From the help ([http://help.sap.com/saphelp_mii121/helpdata/en/46/1c82f9be635872e10000000a11466f/content.htm|http://help.sap.com/saphelp_mii121/helpdata/en/46/1c82f9be635872e10000000a11466f/content.htm]):

"Global Properties

You can define global property values and use them in multiple transactions. You can link them to transactions or subordinate action properties."

If you're looking to write to a value use a shared memory property available in 12.1 and newer.

Also, what specifically are you trying to accomplish by writing to a "Global"?

Regards,

Sam

Former Member
0 Kudos

Hi,

please check the [SAP Note 1463182 - Global Properties not being saved properly - MII 12.1 SP06|https://service.sap.com/sap/support/notes/1463182]. Maybe it applies to your problem.

Michael

Former Member
0 Kudos

Hi,

I faced that error with string functions of link editor.

for example my string length is 3 and i am trying to get 4th character of same than such type of error will comes.

check your link which you have assigned to your global variable evaluate same in workbench.

Regards,

Manoj Bilthare