quality@glassfish.java.net

Re: Strange issue deploying JPA application

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Tue, 19 Jan 2010 12:40:46 +0200

Hi Judy

I am having this same issue again.

I still need to create a test case.

regards
Richard.

2010/1/4 Judy Tang <Judy.J.Tang_at_sun.com>

> Hi Richard,
>
> I got fast reply as following from developer Mitesh (thanks!)
>
> "Can you please ask user to send out complete stack trace as the real cause
> of the exception is hidden in one of the nested exceptions. It would be
> great to have a reproducible test case."
>
> Thanks,
> Judy
>
> Judy Tang wrote:
>
>> Thanks Richard for reporting this issue. I have followed up with
>> developer. Let's wait for some time before file issue.
>>
>> "very fishy, trying to recreate in a small example project.", this would
>> be great help. Thanks :-)
>>
>> Judy
>>
>> Richard Kolb wrote:
>>
>>> Hi Cats
>>>
>>> Has anyone seen this issue before ?
>>>
>>> I am deploying a large-ish EJB JPA application.
>>> And I get the below exception and no other errors before or after.
>>>
>>> It was failing to deploy over and over again.
>>> Then when I clicked on debug in NetBeans it deployed.
>>>
>>> very fishy, trying to recreate in a small example project.
>>> regards
>>> Richard
>>>
>>>
>>>
>>> [#|2010-01-04T09:10:59.635+0200|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=28;_ThreadName=Thread-1;|Exception
>>> while preparing the app
>>> javax.persistence.PersistenceException: Exception [EclipseLink-28017]
>>> (Eclipse Persistence Services - 2.0.0.v20091127-r5931):
>>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>>> Exception Description: Unable to predeploy PersistenceUnit [EnygmaTOU] in
>>> invalid state [DeployFailed]
>>> at
>>> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:818)
>>>
>>> at
>>> org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:219)
>>>
>>> at
>>> org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:181)
>>>
>>> at
>>> org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:96)
>>>
>>> at
>>> org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:121)
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:644)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:296)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
>>>
>>> at
>>> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
>>> at
>>> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
>>> at
>>> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
>>> at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
>>>
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>>>
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>>>
>>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>>>
>>> at
>>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>>>
>>> at java.lang.Thread.run(Thread.java:619)
>>> Caused by: Exception [EclipseLink-28017] (Eclipse Persistence Services -
>>> 2.0.0.v20091127-r5931):
>>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>>> Exception Description: Unable to predeploy PersistenceUnit [EnygmaTOU] in
>>> invalid state [DeployFailed]
>>> at
>>> org.eclipse.persistence.exceptions.EntityManagerSetupException.cannotPredeploy(EntityManagerSetupException.java:202)
>>>
>>> ... 34 more
>>> |#]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>