[JBoss jBPM] - Problem ending a process instance
by fjfernandez
Hi everybody,
as i said in previous topics, i'm not an expert using jbpm, so i'm sorry if my doubt is too basic, but i have found nothing using the search tool. I'm working on a web application based in jbpm. Like in the demo there is a button for saving and a button for finishing the task. Also, i have to add a third button (End Process). Its functionality is very easy. It has to end the process instance. The problem is that when i click on the button and when i call the method ProcessInstance.end() (not in a static way, of course), the process instance is marked like ended in the data base (the filed end_ in table jbpm_processinstance is not null), but the window with user's task has the task where i click the End Process button. I'll give you an example. I have 3 tasks. In one of them i push End Process and the process instance is marked as ended, but i have still got 3 tasks. Even i can continue with the next task of the process definition. I hope i have made myself understood.
Any idea or help will be wellcome. Thanks in advanced and regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986210#3986210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986210
19Â years, 7Â months
[EJB 3.0] - Problem with deploying entity EJB 3.0 on Jboss
by hudowski
Hi!
Jboss 4.0.4 GA with EJB 3.0
J have a very simple application.
my-app.ear
-> Meta-inf
   -> application.xml
-> app-ejb-1.0.jar
      -> Meta-inf
         -> persistance.xml
      -> company
         -> app
            -> ejb
               -> entity
                  -> Document.class
                  -> Scan.class
               -> session
                  ->TestStatelessBean.class
            -> interfaces
               -> TestStatelessBeanLocal.class
---------------------------------------------------------------------------------
Persistance.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence-unit name="app">
<jta-data-source>java:appDS</jta-data-source>
</persistence-unit>
------------------------------------------------------------------------------------
oracle9i-ds.xml (deployed on Jboss):
<local-tx-datasource>
<jndi-name>appDS</jndi-name>
<connection-url>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx)(PORT=1521)))(CONNECT_DATA=(SID=yyy)(SRVR=DEDICATED)))
</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
...
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<check-valid-connection-sql>select sysdate from dual</check-valid-connection-sql>
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
J have this connection url( (DESCRIPTION=(ADDRESS....) defined in tnsames.ora so i think it's correct.
------------------------------------------------------------------------------
Document.java:
@Entity
@Table(name = "DOCUMENTS")
public class Document implements java.io.Serializable
{
private static final long serialVersionUID = -2324201610375801418L;
private int doc_id;
private String name;
@Id
public int getDoc_id()
{
return doc_id;
}
public void setDoc_id(int id)
{
this.doc_id = id;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
}
Scan.java is very similar to Document.java
-----------------------------------------------------------------------------------
My problem: Entity beans don't deploy. I see on Jboss:
[EARDeployer] Init J2EE application: file:/C:/jboss-4.0.4.GA/server/app/deploy/1app-ear-jboss-1.0.ear
[Ejb3Deployment] EJB3 deployment time took: 15
[JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=1app-ear-jboss-1.0.ear,jar=app-ejb-1.0.jar,name=TestStatelessBean,service=EJB3 with dependencies:
[EJBContainer] STARTED EJB: comarch.app.ejb.session.TestStatelessBean ejbName: TestStatelessBean
[EJB3Deployer] Deployed: file:/C:/jboss-4.0.4.GA/server/app/tmp/deploy/tmp542761app-ear-jboss-1.0.ear-contents/app-ejb-1.0.jar
[EARDeployer] Started J2EE application: file:/C:/jboss-4.0.4.GA/server/app/deploy/1app-ear-jboss-1.0.ear
When I'm trying add into TestStatelessBean.java:
@PersistenceContext
private EntityManager manager;
i see warning:
WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=app-ejb-1.0.jar
java.lang.RuntimeException: Field private javax.persistence.EntityManager comarch.app.ejb.session.TestStatelessBean.manager @PersistenceUnit in error: EMPTY STRING unitName but there is no deployments in scope
I think my Jboss doesn't see this Entity Beans. Maybe it's a problem with my definition of data source? I don't know how can I verify this data source. In oracle9i-ds.xml is '
<check-valid-connection-sql>select sysdate from dual
</check-valid-connection-sql>
but i can write bad connections (e.g. host which doesn't exist) and this ds is every time deployed on the Jboss without error.
I haven't got any idea where is the problem.
Please, help me!
Rafal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986208#3986208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986208
19Â years, 7Â months
[JCA/JBoss] - Exception: Unable to fill pool
by rhino247365
I get the following error intermittently (sometimes on startup of JBoss with the quartz scheduler, sometimes not) and have read all FAQ and Wiki material, tried all the connection checkers/sql statements in the oracle-xa-ds.xml config but nothing effects it.
I am using JBoss-4.0.4.GA and Oracle RAC with latest drivers. This only appears on production environment - repeat, intermittently - not on test environment which is not Oracle RAC, just Oracle DB.
Any help greatly appreciated.
Thanks.
2006-11-13 14:24:33,182 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Io exception: Socket is not connected)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:153)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:539)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:228)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:454)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:324)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:379)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
at org.hibernate.loader.Loader.doQuery(Loader.java:661)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2145)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
at org.hibernate.loader.Loader.list(Loader.java:2024)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:392)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:333)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:756)
at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:63)
at com.version1.iib.model.slsb.DataTransferSLSB.findCaseUsingSolasId(DataTransferSLSB.java:259)
at com.version1.iib.model.slsb.DataTransferSLSB.processCase(DataTransferSLSB.java:331)
at com.version1.iib.model.slsb.DataTransferSLSB.processCases(DataTransferSLSB.java:231)
at com.version1.iib.model.slsb.DataTransferSLSB.processCaseMessage(DataTransferSLSB.java:149)
at sun.reflect.GeneratedMethodAccessor190.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
at $Proxy127.processCaseMessage(Unknown Source)
at com.version1.iib.model.mdb.DataTransferMDB.onMessage(DataTransferMDB.java:149)
at sun.reflect.GeneratedMethodAccessor187.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.mdb.MDB.localInvoke(MDB.java:865)
at org.jboss.ejb3.mdb.MDB.localInvoke(MDB.java:844)
at org.jboss.ejb3.mdb.MDB$MessageListenerImpl.onMessage(MDB.java:1074)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:902)
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
at org.jboss.mq.SpySession.run(SpySession.java:323)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: Io exception: Socket is not connected
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:420)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:297)
at oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:472)
at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:159)
at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:133)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:145)
... 83 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986207#3986207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986207
19Â years, 7Â months
[JBoss Seam] - PhaseListener as Seam Component
by iakneissl
Hi,
is it possible, to annotate a phase listener as seam bean and to inject another bean?
my code looks like this:
##############
the phase listener:
@Name("keeper")
@Scope(ScopeType.SESSION)
@Intercept(InterceptionType.ALWAYS)
public class KeeperPhaseListener implements PhaseListener {
public KeeperPhaseListener() { }
@In(value="navBean", create=true, required=true)
private NavigationBean navBean;
public void beforePhase(PhaseEvent e) { }
public void afterPhase(PhaseEvent e) {
keep(e, e.getFacesContext().getViewRoot().getViewId());
}
protected void keep(PhaseEvent e, String viewId) {
navBean.setCurrentPage(viewId);
}
public PhaseId getPhaseId() {
return PhaseId.RENDER_RESPONSE;
}
}
###################
and the annotation of the bean to inject:
@Name("navBean")
@Scope(ScopeType.SESSION)
public class NavigationBean implements Serializable {
...
in all other beans, the injection works fine.
Both beans are deployed as seam components, but the BijectionInterceptor doesn't work for the KeeperPhaseListener. navBean is null and the required annotation is ignored.
Thanks for help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986206#3986206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986206
19Â years, 7Â months
[JBoss Seam] - @Formula Hibernate error
by anescu
Hi,
I modified the seam issue tracking example, I have 2 entities, Type & Expense. Expense has a value field, of type Integer. In the Type entity I have a field expenseValue which should keep the sum of all the Expenses for a Type.
The code looks like this:
@Formula("(select sum(i.value) from Expense i where i.type_name = name)")
public int getExpenseValue()
{
return expenseValue;
}
The result should be displayed on the Type list (first page that gets displayed). I get an error with this stacktrace:
If I change the type from int to Integer its working, but I get no value on the types that have no expenses.
Caused by: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.jboss.seam.example.issues.Type.expenseValue
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:641)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:73)
at org.jboss.seam.example.issues.TypeFinderBean.executeQuery(TypeFinderBean.java:39)
at org.jboss.seam.example.issues.TypeFinderBean.findTypes(TypeFinderBean.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
......
... 80 more
Caused by: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.jboss.seam.example.issues.Type.expenseValue
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:85)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:337)
at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:200)
at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3499)
I use JBossAS 4.0.5 (from jems installer, EJB3 config) and Seam GA 1.0.1.
I can send you the code, if necessary. Is this a bug or am I missing something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986189#3986189
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986189
19Â years, 7Â months
[JBoss Seam] - Re: @Log and NullPointerException
by bsmithjj
I haven't been able to try a CVS build since your post asking me to try it but I wanted to provide some more data around the problem.
- first adding a no-arg constructor to LogImpl didn't help (but again, I haven't tried the request CVS stuff yet)
- second, let me explain the execution context a bit.
I have an .ear application - the EJB's reside in their own jar, the webapp resides in a .war. The class that is experiencing the exception from LogImpl has an @Observer method for an event generated by a SFSB in the EJB jar. - NOTE - the class that has the @Observer method is bundled in the .war. It seems that in all our other uses of @Logger in the EJB's, there are no such issues. It's this one class in the war that has the problems.
Another aspect of the problem is when I remove the @Logger and convert over to a typical commons-logging Log - LogFactory impl in the observer class, I get a different type of exception
| javax.faces.FacesException: java.io.NotSerializableException: org.apache.log4j.Level
| at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:190)
| at org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:150)
| at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState(HtmlResponseStateManager.java:102)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspStateManagerImpl.java:430)
| at org.jboss.seam.jsf.SeamStateManager.writeState(SeamStateManager.java:66)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:606)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at com.evergreen.filter.RequestDumper.doFilter(RequestDumper.java:78)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at com.evergreen.fastpass.catalina.CASSSOAuthenticatorValve.invoke(CASSSOAuthenticatorValve.java:371)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.io.NotSerializableException: org.apache.log4j.Level
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
| at java.util.HashMap.writeObject(HashMap.java:985)
| at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
| at java.util.HashMap.writeObject(HashMap.java:985)
| at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
| at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
|
|
The idea behind the class in the war is that it maintains a collection of 'applications' (application is an entity in our domain). The event-generating SFSB sends out an event whenever an applications editted, added, activated, deactivated, and we need to update the collection in response to such an event. The SFSB is a DAO of sorts for application and collections of applications. The .war class that maintains a collection has no logic for querying the applications - rather, it delegates the loading to the SFSB.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986185#3986185
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986185
19Â years, 7Â months