[JBoss JIRA] (BAM-84) Package persistence specific files in distribution
by Gary Brown (JIRA)
[ https://issues.jboss.org/browse/BAM-84?page=com.atlassian.jira.plugin.sys... ]
Gary Brown commented on BAM-84:
-------------------------------
Have made db configuration part of the overlord-bam.properties file.
Need to check whether remaining two properties in persistence.xml can be moved into the properties file, and then test against other databases.
> Package persistence specific files in distribution
> --------------------------------------------------
>
> Key: BAM-84
> URL: https://issues.jboss.org/browse/BAM-84
> Project: Business Activity Monitoring
> Issue Type: Feature Request
> Reporter: Gary Brown
> Assignee: Gary Brown
> Priority: Critical
> Fix For: 1.0.0.M5
>
>
> When the JPA activity store is selected, then we need to deploy additional files (persistence.xml) and possibly datasource.
> An example of the persistence.xml is found in the jpa module's test resources. Shows example of using hibernate ORM and OGM.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months
[JBoss JIRA] (BAM-119) Exception in call trace builder
by Gary Brown (JIRA)
Gary Brown created BAM-119:
------------------------------
Summary: Exception in call trace builder
Key: BAM-119
URL: https://issues.jboss.org/browse/BAM-119
Project: Business Activity Monitoring
Issue Type: Bug
Reporter: Gary Brown
Assignee: Gary Brown
Fix For: 1.0.0.M4
The following exception occurs after the same transaction is performed multiple times (i.e. with the same id).
{noformat}
Caused by: java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102) [rt.jar:1.7.0_07]
at org.overlord.bam.call.trace.CallTraceProcessor$CTState.finalizeScope(CallTraceProcessor.java:791) [call-trace-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.bam.call.trace.CallTraceProcessor.processAU(CallTraceProcessor.java:285) [call-trace-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.bam.call.trace.CallTraceProcessor.processAU(CallTraceProcessor.java:270) [call-trace-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.bam.call.trace.CallTraceProcessor.processAUs(CallTraceProcessor.java:164) [call-trace-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.bam.call.trace.CallTraceProcessor.createCallTrace(CallTraceProcessor.java:92) [call-trace-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.bam.call.trace.rest.RESTCallTraceServer.getCallTrace(RESTCallTraceServer.java:141) [call-trace-rests-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.overlord.bam.call.trace.rest.RESTCallTraceServer.instance(RESTCallTraceServer.java:110) [call-trace-rests-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_07]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_07]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_07]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_07]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) [resteasy-jaxrs-2.3.2.Final.jar:]
{noformat}
Need to find a way to deal with data that may be corrupt, or invalid, without blowing up.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months
[JBoss JIRA] (BAM-118) Exception during schema creation in H2
by Gary Brown (JIRA)
Gary Brown created BAM-118:
------------------------------
Summary: Exception during schema creation in H2
Key: BAM-118
URL: https://issues.jboss.org/browse/BAM-118
Project: Business Activity Monitoring
Issue Type: Bug
Reporter: Gary Brown
Assignee: Gary Brown
Fix For: 1.0.0.M4
The exception is:
{noformat}
11:33:02,209 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5) HHH000227: Running hbm2ddl schema export
11:33:02,210 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5) HHH000231: Schema export unsuccessful: java.sql.SQLException: You cannot set autocommit during a managed transaction!
at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:888)
at org.jboss.jca.adapters.jdbc.WrappedConnection.setAutoCommit(WrappedConnection.java:715)
at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:60) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.DatabaseExporter.<init>(DatabaseExporter.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:368) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:305) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:294) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:452) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at org.overlord.bam.activity.store.jpa.JPAActivityStore.init(JPAActivityStore.java:95) [activity-store-jpa-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_07]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_07]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_07]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_07]
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:174) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:391) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:174) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:294) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:620) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:686) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:123) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:709) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:718) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:161) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:157) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:131) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:153) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:293) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:620) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:686) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:123) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:709) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:718) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:161) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:157) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:131) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:153) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:293) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:620) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:686) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:123) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:709) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:718) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.SessionBean$1$1.proceed(SessionBean.java:176) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.weld.bean.SessionBean$1.inject(SessionBean.java:173) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]
at org.jboss.as.weld.injection.WeldEEInjection.inject(WeldEEInjection.java:78) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:60) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
11:33:02,240 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-5) HHH000230: Schema export complete
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months
[JBoss JIRA] (SRAMP-141) Derivers unable to create relationships from original artifact to derived
by Eric Wittmann (JIRA)
[ https://issues.jboss.org/browse/SRAMP-141?page=com.atlassian.jira.plugin.... ]
Eric Wittmann resolved SRAMP-141.
---------------------------------
Resolution: Done
Altered the persist logic for artifacts so that these relationships are possible. The artifact persist needed to happen in two stages.
1) the source artifact is persisted
2) the deriver is called (which will possible modify the source artifact properties & relationships)
3) any derived artifacts are persisted
4) the source artifact is updated (persisted again)
> Derivers unable to create relationships from original artifact to derived
> -------------------------------------------------------------------------
>
> Key: SRAMP-141
> URL: https://issues.jboss.org/browse/SRAMP-141
> Project: S-RAMP
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Eric Wittmann
> Assignee: Eric Wittmann
> Fix For: Milestone 3 (Workflow and Relationships)
>
>
> If a deriver creates a relationship from the original artifact to a derived artifact, the persist of the original fails. Likely because the derived artifact has not yet been persisted. Will need to persist in two stages or change the order of persistence.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 9 months