Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-28 Thread hwaastad
Ah, maybe a servletcontextlistener(?). I'll check it out. Thanks! br hw -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/IllegalStateException-1-0-2-1-0-3-tp4659216p4659296.html Sent from the Apache DeltaSpike Incubator Discussions mailing

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-28 Thread Romain Manni-Bucau
You can alternatively use a "startup event" to create the timer. Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-10-28 22:18 GMT+01:00 hwaastad : > Hi, > just wanted to let you know I found out whats causing this part

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-28 Thread hwaastad
Hi, just wanted to let you know I found out whats causing this particular issue. I had a @startup @singleton creating a intervaltimer in my war (part of ear) which had a little too short initialduration, so it was firering during container startup. increasing the initial delay made the error messa

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-27 Thread hwaastad
Hi, I found out that I have issues with JMS aswell using repositories and CM JTA. https://github.com/hwaastad/DeltaDataTest.git entitymanager obviously fails. There is a test, JmsTest which just pushes a message to the queue and the jmslistener uses a repository to write the object. repository

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread hwaastad
Tried now to inject enittymanager and that works fine. jta em. br hw -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/IllegalStateException-1-0-2-1-0-3-tp4659216p4659249.html Sent from the Apache DeltaSpike Incubator Discussions mailing list

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread Thomas Hug
Hmm. Could be related to the way PartialBeans handle concrete method calls. Those calls are not routed through the Repository extension code - maybe we miss some initialization when calling entityManager(). The EM should be found in a ThreadLocal. Is injecting the EM in the repository and then usi

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread hwaastad
I really try to reproduce this:-| anyway, did a try-catch around the createnamedquery: Caused by: org.apache.deltaspike.data.api.QueryInvocationException: Failed calling Repository: [Repository=org.waastad.repository.ZoneLocaleTextRepository,entity=org.waastad.entity.TZoneLocaleText,method=entity

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread Romain Manni-Bucau
Missing transaction? Le 26 oct. 2014 14:06, "Thomas Hug" a écrit : > Sounds strange. If you get an Arquillian test project up on e.g. GitHub > that would certainly help a lot. > > On Sun, Oct 26, 2014 at 1:53 PM, hwaastad wrote: > > > I think I finally figured it out. > > > > somewhere in my rep

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread Thomas Hug
Sounds strange. If you get an Arquillian test project up on e.g. GitHub that would certainly help a lot. On Sun, Oct 26, 2014 at 1:53 PM, hwaastad wrote: > I think I finally figured it out. > > somewhere in my repositories I did a lookup like this: > > @repository > public abstract extends abs

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread hwaastad
I think I finally figured it out. somewhere in my repositories I did a lookup like this: @repository public abstract extends abstactentityrepository<> public function(){ Query query = this.entityManager().createNamedQuery() .. .. } this one fails (silently) EL Info]: 2014-10-26 13:48:17.

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread hwaastad
OK, another step forward. I belive it might be caused by ear packaging. My ear will have ds libs in /lib (not core-impl though) I'm using tomee jars plugin so core-api/core-impl will also bee in web-app. If I make make ear with "traditional" skinny wars it's with all jars is ear/lib it's ok. Now

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-25 Thread hwaastad
I've made som progress. It might be the result of a timerservice. I'ts implemented as @singleton @startup . . @Resource private TimerService timerService; @Inject @RemoteEJB thisEjb; I'm producing remote ejbs, using ejb-refs in web.xml. I will do some more testing. Right now everything goes hay

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-25 Thread Romain Manni-Bucau
Could it be linked to another ServletContextListener? Le 25 oct. 2014 16:36, "hwaastad" a écrit : > In my quest now to find this issue, i've noticed that in my project having > this issue this is found in logs: > > org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator > contextIniti

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-25 Thread hwaastad
In my quest now to find this issue, i've noticed that in my project having this issue this is found in logs: org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator contextInitialized and then the error. In my other project which I'm trying to reproduce the issue, I cannot see this me

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-25 Thread hwaastad
OK, I'll try to reproduce my production code in a demo project. br hw -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/IllegalStateException-1-0-2-1-0-3-tp4659216p4659218.html Sent from the Apache DeltaSpike Incubator Discussions mailing lis

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-25 Thread Gerhard Petracek
hi, that part wasn't changed in v1.0.3. -> please provide a link to a demo-app which illustrates the issue. regards, gerhard 2014-10-25 13:01 GMT+02:00 hwaastad : > Hi, > I have a project which fails when upgrading ds from 1.0.2 - > 1.0.3 > > Does anyone have a clue why? > > primefaces 5.1.1

IllegalStateException 1.0.2 -> 1.0.3

2014-10-25 Thread hwaastad
Hi, I have a project which fails when upgrading ds from 1.0.2 - > 1.0.3 Does anyone have a clue why? primefaces 5.1.1 tomee 1.7.1 br hw java.lang.IllegalStateException: Could not find beans for Type=class org.apache.deltaspike.jsf.api.config.JsfModuleConfig and qualifiers:[] org.apache.deltasp