You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Timothy Simecsek (JIRA)" <ji...@apache.org> on 2015/03/21 07:49:38 UTC
[jira] [Commented] (ISIS-1066) Moving CustomRepresentationService
to dom - There is no application attached to current thread main
[ https://issues.apache.org/jira/browse/ISIS-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14372562#comment-14372562 ]
Timothy Simecsek commented on ISIS-1066:
----------------------------------------
Hi Dan,
Is there any possibility to get this working under isis 1.8? I would need that for our current project.
Thank you.
Br Timothy
> Moving CustomRepresentationService to dom - There is no application attached to current thread main
> ---------------------------------------------------------------------------------------------------
>
> Key: ISIS-1066
> URL: https://issues.apache.org/jira/browse/ISIS-1066
> Project: Isis
> Issue Type: Bug
> Components: Core: Viewer: RestfulObjects
> Affects Versions: core-1.8.0
> Reporter: Timothy Simecsek
> Assignee: Dan Haywood
> Fix For: 1.9.0
>
> Attachments: patch.txt
>
>
> Hi,
> We are using something similar to CustomRepresentationService of todoapp, we use it to get a simple JSON representation.
> Our CustomRepresentationService is annotated as DomainService, its package is registered in isis.properties (isis.services.ServicesInstallerFromAnnotation.packagePrefix but not in isis.services!) and it is located in the dom module.
> With apache isis 1.7 it was working, now we migrated to isis 1.8 and now this causes an error during maven install:
> WicketRuntimeException: There is no application attached to current thread main
> {noformat}
> 16:05:09,146 [IsisTransaction main INFO ] abort transaction IsisTransaction@2a49af03[state=MUST_ABORT,commands=0]
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.018 sec <<< FAILURE! - in ase.integration.test.ESIntegTest
> ase.integration.test.ESIntegTest Time elapsed: 10.018 sec <<< ERROR!
> java.lang.RuntimeException: org.apache.isis.core.runtime.system.transaction.IsisTransactionManagerException: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main
> at org.apache.isis.core.integtestsupport.IsisSystemForTest.setUpSystem(IsisSystemForTest.java:350)
> at ase.integration.AddressSearchEngineSystemInitializer.initIsft(AddressSearchEngineSystemInitializer.java:46)
> at ase.integration.AbstractAseIntegTest.initClass(AbstractAseIntegTest.java:13)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> {noformat}
> When I run the application on tomcat everything seems to work, the UI is available and I can access the CustomRepresentationService through Rest API.
> I did the described changes on the todoapp for isis 1.8 and I'm getting same result (I attached my changes with patch.txt).
> I moved the CustomRepresentationService to dom module because I need an possibility to unit test the generated JSON strings.
> Please fix that issue or assist me in creating a workaround.
> Thanks,
> Timothy
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)