Errors while using CodeType [message #1840442] |
Thu, 15 April 2021 09:46 |
J D Messages: 103 Registered: February 2021 |
Senior Member |
|
|
Hi there everyone,
I adapted the GenderCodeType found in the Scout Technical Guide for my use case by adding a Gender X as follows:
@Order(3000)
public static class XCode extends AbstractCode<String> {
private static final long serialVersionUID = 3L;
public static final String ID = "X";
@Override
protected String getConfiguredText() {
return TEXTS.get("X");
}
@Override
public String getId() {
return ID;
}
}
However anytime I call the GenderCodeType in a form as follows:
@Override
protected Class<? extends ICodeType<?, String>> getConfiguredCodeType() {
// return super.getConfiguredCodeType();
return GenderCodeType.class;
}
I get the following error listing
2021-04-15 11:38:17,699 ERROR [scout-model-thread-5 Processing JSON request] org.eclipse.scout.rt.platform.exception.ExceptionHandler.handlePlatformException(ExceptionHandler.java:124) - - MDC[principal=jd, uiSession=1:1hgrbn19ckk42ka3pn45flg6i3tq96jk9bvomvgem6c1jdbjkdeg, scoutSession=ir7u34mcegm9rerrc12b5697levnl3hl04am5o6mevg0vej0q0l, jobName=Processing JSON request, cid=aV7TU6NW2kv/5]
org.eclipse.scout.rt.shared.servicetunnel.http.HttpServiceTunnelException: Service tunnel request failed with status code 500 [user=jd, remote-service.name=org.eclipse.scout.rt.shared.cache.IRemoteCacheService, remote-service.operation=get, innerClass=class org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeeForm$MainBox$GeneralBox$GenderGroup, innerClass=class org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeeForm$MainBox$GeneralBox, innerClass=class org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeeForm$MainBox, ui.event=action, ui.adapter=Menu[id=51, modelClass=org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeePage$Table$NewMenu, parentId=41]]
at org.eclipse.scout.rt.shared.servicetunnel.http.RemoteServiceInvocationCallable.call(RemoteServiceInvocationCallable.java:83)
at org.eclipse.scout.rt.shared.servicetunnel.http.RemoteServiceInvocationCallable.call(RemoteServiceInvocationCallable.java:1)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxMandatory(TransactionProcessor.java:156)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:139)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:78)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:158)
at org.eclipse.scout.rt.platform.context.RunContextRunner.intercept(RunContextRunner.java:38)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.job.internal.CallableChainExceptionHandler.intercept(CallableChainExceptionHandler.java:33)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.lambda$0(JobFutureTask.java:106)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.run(JobFutureTask.java:175)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.eclipse.scout.rt.platform.job.internal.NamedThreadFactory$1.run(NamedThreadFactory.java:63)
at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:64)
at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:40)
at org.eclipse.scout.rt.shared.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:192)
at org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelProxyProducer.invoke(ServiceTunnelProxyProducer.java:51)
at org.eclipse.scout.rt.platform.interceptor.DecoratingProxy.invokeImpl(DecoratingProxy.java:137)
at org.eclipse.scout.rt.platform.interceptor.DecoratingProxy$P_InvocationHandler.invoke(DecoratingProxy.java:170)
at com.sun.proxy.$Proxy22.get(Unknown Source)
at org.eclipse.scout.rt.client.cache.RemoteCacheValueResolver.resolve(RemoteCacheValueResolver.java:40)
at org.eclipse.scout.rt.platform.cache.BasicCache.get(BasicCache.java:79)
at org.eclipse.scout.rt.platform.cache.AbstractCacheWrapper.get(AbstractCacheWrapper.java:44)
at org.eclipse.scout.rt.shared.services.common.code.CodeService.getCodeType(CodeService.java:101)
at org.eclipse.scout.rt.shared.services.common.code.CodeTypeProducer.produce(CodeTypeProducer.java:24)
at org.eclipse.scout.rt.shared.services.common.code.CodeTypeProducer.produce(CodeTypeProducer.java:1)
at org.eclipse.scout.rt.platform.internal.BeanImplementor.getInstance(BeanImplementor.java:98)
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:58)
at org.eclipse.scout.rt.shared.services.lookup.CodeLookupCall.resolveCodes(CodeLookupCall.java:277)
at org.eclipse.scout.rt.shared.services.lookup.CodeLookupCall.getDataByAll(CodeLookupCall.java:225)
at org.eclipse.scout.rt.client.ui.form.fields.radiobuttongroup.AbstractRadioButtonGroup.getLookupRows(AbstractRadioButtonGroup.java:411)
at org.eclipse.scout.rt.client.ui.form.fields.radiobuttongroup.AbstractRadioButtonGroup.injectFieldsInternal(AbstractRadioButtonGroup.java:253)
at org.eclipse.scout.rt.client.ui.form.fields.radiobuttongroup.AbstractRadioButtonGroup.initConfig(AbstractRadioButtonGroup.java:196)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.lambda$0(ObjectExtensions.java:84)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfig(ObjectExtensions.java:100)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfigAndBackupExtensionContext(ObjectExtensions.java:62)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField.initConfigInternal(AbstractFormField.java:177)
at org.eclipse.scout.rt.client.ui.AbstractWidget.callInitializer(AbstractWidget.java:70)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField.<init>(AbstractFormField.java:144)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractValueField.<init>(AbstractValueField.java:81)
at org.eclipse.scout.rt.client.ui.form.fields.radiobuttongroup.AbstractRadioButtonGroup.<init>(AbstractRadioButtonGroup.java:83)
at org.eclipse.scout.rt.client.ui.form.fields.radiobuttongroup.AbstractRadioButtonGroup.<init>(AbstractRadioButtonGroup.java:79)
at org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeeForm$MainBox$GeneralBox$GenderGroup.<init>(EmployeeForm.java:236)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.eclipse.scout.rt.platform.reflect.ConfigurationUtility.newInnerInstance(ConfigurationUtility.java:198)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractCompositeField.initConfig(AbstractCompositeField.java:121)
at org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox.initConfig(AbstractGroupBox.java:373)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.lambda$0(ObjectExtensions.java:84)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfig(ObjectExtensions.java:100)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfigAndBackupExtensionContext(ObjectExtensions.java:62)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField.initConfigInternal(AbstractFormField.java:177)
at org.eclipse.scout.rt.client.ui.AbstractWidget.callInitializer(AbstractWidget.java:70)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField.<init>(AbstractFormField.java:144)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractCompositeField.<init>(AbstractCompositeField.java:54)
at org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox.<init>(AbstractGroupBox.java:68)
at org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox.<init>(AbstractGroupBox.java:64)
at org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeeForm$MainBox$GeneralBox.<init>(EmployeeForm.java:192)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.eclipse.scout.rt.platform.reflect.ConfigurationUtility.newInnerInstance(ConfigurationUtility.java:198)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractCompositeField.initConfig(AbstractCompositeField.java:121)
at org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox.initConfig(AbstractGroupBox.java:373)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.lambda$0(ObjectExtensions.java:84)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfig(ObjectExtensions.java:100)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfigAndBackupExtensionContext(ObjectExtensions.java:62)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField.initConfigInternal(AbstractFormField.java:177)
at org.eclipse.scout.rt.client.ui.AbstractWidget.callInitializer(AbstractWidget.java:70)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField.<init>(AbstractFormField.java:144)
at org.eclipse.scout.rt.client.ui.form.fields.AbstractCompositeField.<init>(AbstractCompositeField.java:54)
at org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox.<init>(AbstractGroupBox.java:68)
at org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox.<init>(AbstractGroupBox.java:64)
at org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeeForm$MainBox.<init>(EmployeeForm.java:189)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.eclipse.scout.rt.platform.reflect.ConfigurationUtility.newInnerInstance(ConfigurationUtility.java:198)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.initConfig(AbstractForm.java:669)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.lambda$0(ObjectExtensions.java:84)
at org.eclipse.scout.rt.shared.extension.ExtensionRegistry.runInContext(ExtensionRegistry.java:740)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfig(ObjectExtensions.java:97)
at org.eclipse.scout.rt.shared.extension.ObjectExtensions.initConfig(ObjectExtensions.java:58)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.lambda$0(AbstractForm.java:270)
at org.eclipse.scout.rt.platform.util.concurrent.Callables.lambda$0(Callables.java:31)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxMandatory(TransactionProcessor.java:156)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:139)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:78)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:158)
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:139)
at org.eclipse.scout.rt.platform.context.RunContext.run(RunContext.java:110)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.initConfigInternal(AbstractForm.java:270)
at org.eclipse.scout.rt.client.ui.AbstractWidget.callInitializer(AbstractWidget.java:70)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.<init>(AbstractForm.java:229)
at org.eclipse.scout.rt.client.ui.form.AbstractForm.<init>(AbstractForm.java:213)
at org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeeForm.<init>(EmployeeForm.java:50)
at org.eclipse.scout.apps.ygclient.client.integrationproject.employee.EmployeePage$Table$NewMenu.execAction(EmployeePage.java:98)
at org.eclipse.scout.rt.client.ui.action.AbstractAction$LocalActionExtension.execAction(AbstractAction.java:656)
at org.eclipse.scout.rt.client.extension.ui.action.ActionChains$ActionActionChain$1.callMethod(ActionChains.java:57)
at org.eclipse.scout.rt.client.extension.ui.action.ActionChains$ActionActionChain$1.callMethod(ActionChains.java:1)
at org.eclipse.scout.rt.shared.extension.AbstractExtensionChain.callChain(AbstractExtensionChain.java:113)
at org.eclipse.scout.rt.client.extension.ui.action.ActionChains$ActionActionChain.execAction(ActionChains.java:60)
at org.eclipse.scout.rt.client.ui.action.AbstractAction.interceptAction(AbstractAction.java:680)
at org.eclipse.scout.rt.client.ui.action.AbstractAction.doActionInternal(AbstractAction.java:352)
at org.eclipse.scout.rt.client.ui.action.AbstractAction.doAction(AbstractAction.java:343)
at org.eclipse.scout.rt.client.ui.action.AbstractAction$P_UIFacade.fireActionFromUI(AbstractAction.java:629)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.scout.rt.client.ModelContextProxy.lambda$1(ModelContextProxy.java:49)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxMandatory(TransactionProcessor.java:156)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:139)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:78)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:158)
at org.eclipse.scout.rt.client.ModelContextProxy.lambda$0(ModelContextProxy.java:49)
at com.sun.proxy.$Proxy31.fireActionFromUI(Unknown Source)
at org.eclipse.scout.rt.ui.html.json.action.JsonAction.handleUiAction(JsonAction.java:159)
at org.eclipse.scout.rt.ui.html.json.action.JsonAction.handleUiEvent(JsonAction.java:151)
at org.eclipse.scout.rt.ui.html.json.JsonEventProcessor.processEvent(JsonEventProcessor.java:52)
at org.eclipse.scout.rt.ui.html.json.JsonEventProcessor.processEvents(JsonEventProcessor.java:37)
at org.eclipse.scout.rt.ui.html.UiSession.processJsonRequestInternal(UiSession.java:817)
at org.eclipse.scout.rt.platform.util.concurrent.Callables.lambda$0(Callables.java:31)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
at org.eclipse.scout.rt.platform.job.internal.ExceptionProcessor.intercept(ExceptionProcessor.java:41)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:227)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxMandatory(TransactionProcessor.java:156)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.runTxRequired(TransactionProcessor.java:139)
at org.eclipse.scout.rt.platform.transaction.TransactionProcessor.intercept(TransactionProcessor.java:78)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.security.auth.Subject.doAs(Subject.java:423)
at org.eclipse.scout.rt.platform.security.SubjectProcessor.intercept(SubjectProcessor.java:43)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:158)
at org.eclipse.scout.rt.platform.context.RunContextRunner.intercept(RunContextRunner.java:38)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.job.internal.CallableChainExceptionHandler.intercept(CallableChainExceptionHandler.java:33)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:222)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:170)
at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.lambda$0(JobFutureTask.java:106)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.run(JobFutureTask.java:175)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.eclipse.scout.rt.platform.job.internal.NamedThreadFactory$1.run(NamedThreadFactory.java:63)
What am I doing wrong?
Thanks a lot for your assistance.
Cheers,
JD
[Updated on: Thu, 15 April 2021 09:47] Report message to a moderator
|
|
|
Re: Errors while using CodeType [message #1840446 is a reply to message #1840442] |
Thu, 15 April 2021 14:34 |
|
Hi JD
You've posted the Stacktrace of your Scout client and it says: "Service tunnel request failed with status code 500".
This means something went wrong on the Scout server. So you should have a look at the server log to see what's wrong (or post it here, if you need assistance).
Cheers
André
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
Re: Errors while using CodeType [message #1840477 is a reply to message #1840462] |
Fri, 16 April 2021 06:53 |
|
Your Scout client seems to try to call the Scout server anyway ;) At least, that's what the client log above says in this line:
at org.eclipse.scout.rt.shared.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:64)
I see that you have a Java module: "org.eclipse.scout.apps.ygclient.client". Is there a "org.eclipse.scout.apps.ygclient.server" module in your workspace too?
Some questions:
- Which Scout version do you use?
- Are you following the Day One Tutorial here? https://eclipsescout.github.io/10.0/beginners-guide.html#cha-large_example
- In the config.properties file of your "ui.html" module, is there a property "scout.backendUrl"?
- How do you launch your Scout application?
André
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
Powered by
FUDForum. Page generated in 0.05190 seconds