cancel
Showing results for 
Search instead for 
Did you mean: 

Table Filter error: java.lang.IllegalArgumentException:

udaykumar_kanike
Active Contributor
0 Kudos

Hi All,

I am unable to trace where this error is being thrown. please help me.

java.lang.IllegalArgumentException:

at com.sap.tc.webdynpro.clientserver.data.DataContainer.createLocalPath(DataContainer.java:1350)

at com.sap.tc.webdynpro.clientserver.data.DataContainer.updateAttribute(DataContainer.java:454)

at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateAttribute(AbstractAdapter.java:653)

at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$FilterField.onINPUTFIELDCHANGE(TableAdapter.java:4231)

at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter.onINPUTFIELDCHANGE(TableAdapter.java:10597)

... 46 more

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:981)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.updateEventQueue(HtmlClient.java:380)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.prepareTasks(AbstractClient.java:93)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:308)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)

at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)

at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)

at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)

at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1257)

at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:325)

at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:826)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)

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

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

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

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

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

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

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:331)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:973)

... 41 more

Caused by: java.lang.IllegalArgumentException:

at com.sap.tc.webdynpro.clientserver.data.DataContainer.createLocalPath(DataContainer.java:1350)

at com.sap.tc.webdynpro.clientserver.data.DataContainer.updateAttribute(DataContainer.java:454)

at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateAttribute(AbstractAdapter.java:653)

at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$FilterField.onINPUTFIELDCHANGE(TableAdapter.java:4231)

at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter.onINPUTFIELDCHANGE(TableAdapter.java:10597)

... 46 more

Thanks

Uday

Accepted Solutions (1)

Accepted Solutions (1)

Qualiture
Active Contributor
0 Kudos

Hi,

Have you initialized lead selection? Looks to me lead selection is not set

Robin

udaykumar_kanike
Active Contributor
0 Kudos

yes robin,

i initialized the node.

I am also getting another error just now.

java.lang.ArrayIndexOutOfBoundsException: -1

at com.sap.mw.jco.JCO$Record.getString(JCO.java:12780)

at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:669)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:427)

at com.sap.tc.webdynpro.tests.Zhr_Ess_Fm_Quarter_Grouping_Output.getQ1_Ratext(Zhr_Ess_Fm_Quarter_Grouping_Output.java:299)

at com.sap.wdp.IPublicPMS_New$IOutput_countElement.wdGetString(IPublicPMS_New.java:2841)

Thanks

uday

Qualiture
Active Contributor
0 Kudos

That last error may indicate that your model is not in sync with your backend RFC.

Try if re-importing your model may solve this issue

udaykumar_kanike
Active Contributor
0 Kudos

I tried that robin, but no luck.

Qualiture
Active Contributor
0 Kudos

That is odd... are you absolutely sure neither your model nor the back-end RFC have been changed?

Qualiture
Active Contributor
0 Kudos

Upon re-importing your model, have you also restarted the J2EE engine? When re-importing your model, 'sometimes' the J2EE engine caches the model metadata, which leads your application to think it still uses the old model

udaykumar_kanike
Active Contributor
0 Kudos

I did asked my basis team to clear cache from NWA from portal end. will have to wait and see if clearing the cache would make any difference.

vijay_kumar49
Active Contributor
0 Kudos

Hi

while re import the RFC u will get some error. By cache invalidation and Re Start the J2EE Engine Server you can solve the problem.

After Re-Import the model you can do cache invalidation

There is a need to restart the portal system to clear the cache. Once its done your application would work fine.

Another thing that you can try to clear the cache is

1. Go to link http://<servername>; : <portname> /webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole

2. Click on the last link in detail navigation "Invalidation of ARFC Metadata Cache"

3. From "Adaptive RFC Metadata Cache Invalidation " tray, choose the JCO that you are using

4. From " Dictionaries Cache Invalidation" tray, choose the dictionary(model) whose cache you want to clear.

The above option saves time but in case it doesnu2019t work, you can go in for Portal restart. It would surely work.

If you have more clarification please read the [Document|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df]

Hope this helps!!

Best Regards

Vijay K

udaykumar_kanike
Active Contributor
0 Kudos

Thanks Vijay,

I do know this procedure. But I feel that the error I am getting is because of some problem with TableFilter.java files I am using or may be the source node I am trying to bind to the table has some problem.

Thanks anyway to one and all. My functional consultant changed requirement and i am doing this in a different way.

Regards

Uday

Former Member
0 Kudos

Hi Uday,

I am also stuck in the same condition, in my case I am not getting any error but still there is no filter in the table.

1. My table is dynamically created and I dont have any properties of table in the context which I can set.

2. Still I set some parameters using methods to the nodes but still it does not seem to work.

3. What was the requirement your functional changed and were you able to achieve filtering in some other way ?

Please help me my mail id: gaurav.jss@gmail.com

Thanks.

udaykumar_kanike
Active Contributor
0 Kudos

Hi Gaurav,

        Are you getting any errors ? Can you paste that log trace here so that we can find out the reason.

My requirement has been only to show tablefilter if possible. Later I changed this TableFiler.java class which I was using and it worked.

Regards

Uday

Former Member
0 Kudos

Hi Uday,

Thanks for teh quick response.

There is no error, but no filtering as well and no filter row as well. I also need to implement just filtering and no sorting. But my table is not bound to the model like normal, only code is there for table creation no layout view is available. I think the node bindings are not proper in my case, I dont figure out what should be the correct names of properties in my nodes.

Please help.

Regards,

Gaurav.

udaykumar_kanike
Active Contributor
0 Kudos

Hi Gaurav,

           Because you have mentioned that your table is dynamically created, there may not likely be any view in your case. However, you do need to figure out in which node you are storing those table values and to that node you can apply table filter. I am quite not sure how it works with dynamic table creation. Please wait for others responses or post separate thread for the same.

Regards

Uday

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Uday,

Even i had same issue when i was developing this first time.

This may cause because of cardinality  for that node. This cardinality must be 1..1.after changing this value this was working fine for me

Thanks & Regards,

Channa Mallaiah.