Hi ,
My COMBODYN2 widgets throws an exception whenever I choose an option from them.I don’t see any effect on front end but some exception appears in log.
java.lang.Exception: Property text is not supported with com.softwareag.cis.server.util.ValidValueLine@1f9bdc4
at com.softwareag.cis.server.InteractionModel.getPropertyValue(Unknown Source)
at com.softwareag.cis.server.util.ObjectAccessUtil.getPropertyValue(Unknown Source)
at com.softwareag.cis.server.Adapter.a(Unknown Source)
at com.softwareag.cis.server.Adapter.openIdValueCombo(Unknown Source)
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:585)
at com.softwareag.cis.server.InteractionModel.invokeMethodInternally(Unknown Source)
at com.softwareag.cis.server.InteractionModel.invokeMethod(Unknown Source)
at com.softwareag.cis.server.XMLProcessor.processXML(Unknown Source)
at com.softwareag.cis.server.Connector.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Combo definition
<combodyn2 valueprop="channel" validvaluesprop="validChannels" renderasfield="true">
</combodyn2>
Relevant Class Codes
...
...
...
private String m_channel;
private COMBODYNValidValues m_validChannels = new COMBODYNValidValues();
...
...
...
public void init() {
...
...
for (int i = 0; i < channels.size(); i++) {
ChannelDM channel = (ChannelDM) channels.get(i);
getValidChannels().addValidValue(String.valueOf(i),channel.getChannelName());
...
...
}
public ValidValueLine[] findValidValuesForChannel()
{
return getValidChannels().getItems();
}
...
...
According to developer’s guide setting render as field option to true has a disadvantage .It says “When selecting a value from the valid value list then the value is displayed with its id - not with its
description”. As I seen it doesn’t has that disadvantage.It just works well except the “exception” thing.
Did I missed any attributes to set or any code to do ? Any suggestions ?
Thanks .