[ 
https://issues.apache.org/jira/browse/ISIS-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothy Simecsek updated ISIS-1066:
-----------------------------------
    Description: 
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.

Thank you!

  was:
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 moved the CustomRepresentationService to dom module because I need an 
possibility to unit test the generated JSON strings.

Thank you!


> 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
>    Affects Versions: core-1.8.0
>            Reporter: Timothy Simecsek
>            Assignee: Dan Haywood
>         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.
> Thank you!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to