[JCA/JBoss] - Re: How can persist JCA Mbean's attributes using Persistenc
by makas
Sorry for cross-port.
Persistence of the attributes is necessary to I have a possibility to edit JCA connector's parameters and that after reboot JBoss this changes remained.
I think to do this something like this http://www.jboss.org/community/docs/DOC-12775.
But, when I specifi the DelegatingPersistenceManager in jboss-service.xml descriptor
<mbean code="org.jboss.resource.connectionmanager.ConnectionFactoryBindingService"
| name="jboss.jca:name=Aurora/baxi/green/maxi,service=ConnectionFactoryBinding"
| xmbean-dd="">
| <description>PersistentServiceExample</description>
| <descriptors>
| <persistence persistPolicy="OnUpdate"/>
| <persistence-manager value="org.jboss.mx.persistence.DelegatingPersistenceManager"/>
| <descriptor name="attribute-persistence-operation" value="apmCreate"></descriptor>
| </descriptors>
| <class>org.jboss.resource.connectionmanager.ConnectionFactoryBindingService</class>
|
| <!-- Attributes -->
|
| <attribute access="read-write" getMethod="getJndiName" setMethod="setJndiName">
| <name>JndiName</name>
| <type>java.lang.String</type>
| </attribute>
| </mbean>
I catch MBeanRegistrationException which reports that this bean has been registered.
How can I say that JBoss will not regist new MBean and persist needed Mbean?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197304#4197304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197304
17 years, 6 months
[Remoting] - Re: org.jboss.remoting.marshal.InvalidMarshallingResource: C
by mindflyer
We have this exception too. Our application is JBoss EJB3 + rich client application. JBoss 4.2.2.GA; JBossRemoting Version 2.2.2.SP10
Most of the time everything is OK, but sometimes this exception occurs. It can occur and then disappear in one instance of client app without restarting client and server.
Sometimes it is problem for our customer.
| Caused by: org.jboss.remoting.marshal.InvalidMarshallingResource: Can not find a valid marshaller for data type: serializable
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:79)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at net.uk.topdog.td2.security.clientserver.SecurityInterceptor.invoke(SecurityInterceptor.java:37)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197298#4197298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197298
17 years, 6 months
[JBoss jBPM] - Not able to save/evaluate the values provided with websale p
by rinkigoyal
Hello everyone,
I downloaded JBOSS AS 4.2.2 and deploy JBPM ear file on it by jbpm-installer-3.3.0.GA.jar installer.
While installing JBOM by jbpm-installer-3.3.0.GA.jar, I provide the path for server the path where JBOSS AS is installed.
I am able to start the server and see the JBPM console by " http://localhost:8080/jbpm-console/" URL.
By default, some of the process are available as example.
I tried using the process definition "websale ".
I logged in as manager and create a instance of above process.
When it comes to task named "Create enw web Sale order", we have to provide the values for fields "item,quantity,address".
On providing the data for the above fileds, click on evaluate button ......
Following exception is showing:
"Error completing task: An exception of type
"org.jbpm.graph.def.DelegationException" was thrown. The message is: Cannot open connection
Closing the database context failed: An exception of type org.hibernate.exception.GenericJDBCException was thrown, with the message: Cannot open connection "
and exception is shown in stack trace as due to non creation of timer.
the atsck trace is as follows:
13:49:49,141 ERROR [GraphElement] action threw exception: Failed to create timer
javax.ejb.TransactionRolledbackLocalException: Failed to create timer
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:262)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:65)
at $Proxy63.createTimer(Unknown Source)
at org.jbpm.scheduler.ejbtimer.EntitySchedulerService.createTimer(EntitySchedulerService.java:45)
at org.jbpm.scheduler.def.CreateTimerAction.execute(CreateTimerAction.java:80)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:256)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
at org.jbpm.taskmgmt.exe.TaskInstance.create(TaskInstance.java:156)
at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.taskmgmt.exe.TaskMgmtInstance_$$_javassist_7.createTaskInstance(TaskMgmtInstance_$$_javassis
at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168)
at org.jbpm.graph.def.Node.enter(Node.java:314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.java)
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:389)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.graph.node.StartState_$$_javassist_44.leave(StartState_$$_javassist_44.java)
at org.jbpm.graph.exe.Token.signal(Token.java:192)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.graph.exe.Token_$$_javassist_64.signal(Token_$$_javassist_64.java)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:471)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:385)
at org.jbpm.jsf.core.action.CompleteTaskActionListener.handleAction(CompleteTaskActionListener.java:47)
at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
at javax.faces.component.UICommand.broadcast(UICommand.java:368)
at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.broadcast(UITaskFormButtonBase.java:56)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.ejb.EJBException: Failed to create timer
at org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:262)
Please help me in solve the above problem.
Thanks in advance,
rinki goyal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197284#4197284
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197284
17 years, 6 months
[Beginners Corner] - javax.ejb.EJBException: javax.persistence.PersistenceExcepti
by vinhtran08
Hi everybody,
I'm very new to JBoss AS and trying to do EJB persistence but I got this problem. I don't know how to solve it. Let me state my problem so you can help.
I tried to develop a simple Stateless session bean as follows:
@Stateless
public class StockTypeFacade implements StockTypeFacadeRemote {
@PersistenceContext
private EntityManager entityManager;
/**
* Find all User entities.
*
* @return List all User entities
*/
@SuppressWarnings("unchecked")
public List findAll() {
LogUtil.log("finding all StockType instances", Level.INFO, null);
try {
final String queryString = "select model from StockType model";
Query query = entityManager.createQuery(queryString);
return query.getResultList();
} catch (RuntimeException re) {
LogUtil.log("find all failed", Level.SEVERE, re);
throw re;
}
}
}
Then deployed it to JBoss-4.2.2.GA with the following result:
13:54:17,384 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
13:54:17,384 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU with dependencies:
13:54:17,384 INFO [JmxKernelAbstraction] jboss.jca:name=DefaultDS,service=DataSourceBinding
13:54:17,384 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:17,415 INFO [Ejb3Configuration] found EJB3 Entity bean: Address
13:54:17,431 INFO [Ejb3Configuration] found EJB3 Entity bean: Stock
13:54:17,431 INFO [Ejb3Configuration] found EJB3 Entity bean: StockPriceHistory
13:54:17,446 INFO [Ejb3Configuration] found EJB3 Entity bean: StockType
13:54:17,462 INFO [Ejb3Configuration] found EJB3 Entity bean: Transaction
13:54:17,462 INFO [Ejb3Configuration] found EJB3 Entity bean: User
13:54:17,571 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
13:54:17,571 INFO [Ejb3Configuration] [PersistenceUnit: HelloEBJDatabasePU] no META-INF/orm.xml found
13:54:17,571 INFO [AnnotationBinder] Binding entity from annotated class: Address
13:54:17,571 INFO [EntityBinder] Bind entity Address on table address
13:54:17,587 INFO [AnnotationBinder] Binding entity from annotated class: Stock
13:54:17,587 INFO [EntityBinder] Bind entity Stock on table stock
13:54:17,603 INFO [AnnotationBinder] Binding entity from annotated class: StockPriceHistory
13:54:17,603 INFO [EntityBinder] Bind entity StockPriceHistory on table stock_price_history
13:54:17,603 INFO [AnnotationBinder] Binding entity from annotated class: StockType
13:54:17,603 INFO [EntityBinder] Bind entity StockType on table stock_type
13:54:17,603 INFO [AnnotationBinder] Binding entity from annotated class: Transaction
13:54:17,603 INFO [EntityBinder] Bind entity Transaction on table transaction
13:54:17,618 INFO [AnnotationBinder] Binding entity from annotated class: User
13:54:17,618 INFO [EntityBinder] Bind entity User on table user
13:54:17,634 INFO [CollectionBinder] Mapping collection: Address.users -> user
13:54:17,634 INFO [CollectionBinder] Mapping collection: Stock.transactions -> transaction
13:54:17,634 INFO [CollectionBinder] Mapping collection: Stock.stockPriceHistories -> stock_price_history
13:54:17,634 INFO [CollectionBinder] Mapping collection: StockType.stocks -> stock
13:54:17,634 INFO [CollectionBinder] Mapping collection: User.transactions -> transaction
13:54:17,696 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
13:54:17,696 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
13:54:17,696 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
13:54:17,696 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
13:54:17,696 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
13:54:17,712 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
13:54:17,712 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
13:54:17,712 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
13:54:17,712 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
13:54:17,712 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
13:54:17,712 INFO [SettingsFactory] JDBC batch size: 15
13:54:17,712 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
13:54:17,712 INFO [SettingsFactory] Scrollable result sets: enabled
13:54:17,712 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
13:54:17,712 INFO [SettingsFactory] Connection release mode: auto
13:54:17,712 INFO [SettingsFactory] Default batch fetch size: 1
13:54:17,712 INFO [SettingsFactory] Generate SQL with comments: disabled
13:54:17,712 INFO [SettingsFactory] Order SQL updates by primary key: disabled
13:54:17,712 INFO [SettingsFactory] Order SQL inserts for batching: disabled
13:54:17,712 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
13:54:17,712 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
13:54:17,712 INFO [SettingsFactory] Query language substitutions: {}
13:54:17,712 INFO [SettingsFactory] JPA-QL strict compliance: enabled
13:54:17,712 INFO [SettingsFactory] Second-level cache: enabled
13:54:17,728 INFO [SettingsFactory] Query cache: disabled
13:54:17,728 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
13:54:17,728 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
13:54:17,728 INFO [SettingsFactory] Cache region prefix: HelloEBJDatabase_jar,HelloEBJDatabasePU
13:54:17,728 INFO [SettingsFactory] Structured second-level cache entries: disabled
13:54:17,728 INFO [SettingsFactory] Statistics: disabled
13:54:17,728 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
13:54:17,728 INFO [SettingsFactory] Default entity-mode: pojo
13:54:17,728 INFO [SettingsFactory] Named query checking : enabled
13:54:17,743 INFO [SessionFactoryImpl] building session factory
13:54:17,915 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:17,915 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
13:54:17,915 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:17,915 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
13:54:17,915 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
13:54:17,946 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:54:17,946 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=HelloEBJDatabase.jar,name=AddressFacade,service=EJB3 with dependencies:
13:54:17,946 INFO [JmxKernelAbstraction] persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:17,978 INFO [EJBContainer] STARTED EJB: AddressFacade ejbName: AddressFacade
13:54:18,040 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:54:18,040 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=HelloEBJDatabase.jar,name=StockFacade,service=EJB3 with dependencies:
13:54:18,056 INFO [JmxKernelAbstraction] persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:18,087 INFO [EJBContainer] STARTED EJB: StockFacade ejbName: StockFacade
13:54:18,134 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:54:18,134 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=HelloEBJDatabase.jar,name=StockPriceHistoryFacade,service=EJB3 with dependencies:
13:54:18,134 INFO [JmxKernelAbstraction] persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:18,197 INFO [EJBContainer] STARTED EJB: StockPriceHistoryFacade ejbName: StockPriceHistoryFacade
13:54:18,228 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:54:18,228 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=HelloEBJDatabase.jar,name=StockTypeFacade,service=EJB3 with dependencies:
13:54:18,228 INFO [JmxKernelAbstraction] persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:18,259 INFO [EJBContainer] STARTED EJB: StockTypeFacade ejbName: StockTypeFacade
13:54:18,290 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:54:18,290 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=HelloEBJDatabase.jar,name=TransactionFacade,service=EJB3 with dependencies:
13:54:18,290 INFO [JmxKernelAbstraction] persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:18,322 INFO [EJBContainer] STARTED EJB: TransactionFacade ejbName: TransactionFacade
13:54:18,353 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:54:18,353 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=HelloEBJDatabase.jar,name=UserFacade,service=EJB3 with dependencies:
13:54:18,353 INFO [JmxKernelAbstraction] persistence.units:jar=HelloEBJDatabase.jar,unitName=HelloEBJDatabasePU
13:54:18,431 INFO [EJBContainer] STARTED EJB: UserFacade ejbName: UserFacade
13:54:18,493 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.2.GA/server/default/deploy/HelloEBJDatabase.jar/
===============================================
Then I tried to run the following client application
public static void main(String[] args) {
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
System.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interface");
System.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
try {
Context ctx = new InitialContext(System.getProperties());
StockTypeFacadeRemote stF = (StockTypeFacadeRemote)ctx.lookup("StockTypeFacade/remote");
List sTypes = stF.findAll();
for (Iterator _iterator = sTypes.iterator(); _iterator.hasNext();) {
StockType _stockType = (StockType) _iterator.next();
System.out.println(_stockType.getStockTypeDescriptoin());
}
}
}
======================================
Then the following error shows up:
Exception in thread "main" javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query; nested exception is: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:73)
at StockTypeFacade.findAll(StockTypeFacade.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
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:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
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.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
at $Proxy1.findAll(Unknown Source)
at _ClientProgram.main(_ClientProgram.java:56)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
at $Proxy1.findAll(Unknown Source)
at _ClientProgram.main(_ClientProgram.java:56)
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2223)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
at StockTypeFacade.findAll(StockTypeFacade.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
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:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
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.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
Caused by: java.sql.SQLException: invalid schema name: STOCKTRACKER in statement [select stocktype0_.STOCK_TYPE_ID as STOCK1_15_, stocktype0_.STOCK_TYPE_DESCRIPTOIN as STOCK2_15_ from stocktracker.stock_type stocktype0_]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.doPrepareStatement(BaseWrapperManagedConnection.java:349)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:337)
at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:187)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:505)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:423)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
... 42 more
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query; nested exception is: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
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:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
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.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:73)
at StockTypeFacade.findAll(StockTypeFacade.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
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:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
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.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
at $Proxy1.findAll(Unknown Source)
at _ClientProgram.main(_ClientProgram.java:56)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
at $Proxy1.findAll(Unknown Source)
at _ClientProgram.main(_ClientProgram.java:56)
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2223)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
at StockTypeFacade.findAll(StockTypeFacade.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
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:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
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.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
Caused by: java.sql.SQLException: invalid schema name: STOCKTRACKER in statement [select stocktype0_.STOCK_TYPE_ID as STOCK1_15_, stocktype0_.STOCK_TYPE_DESCRIPTOIN as STOCK2_15_ from stocktracker.stock_type stocktype0_]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.doPrepareStatement(BaseWrapperManagedConnection.java:349)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:337)
at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:187)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:505)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:423)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
... 42 more
It seems that the error is about INVALID SCHEMA NAME but it cannot be since the schema on my MySQL is exactly the same.
Can anyone please explain me what's wrong happening?
Thanks,
Vinh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197277#4197277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197277
17 years, 6 months
[JBoss jBPM] - Re: serialization or parallel in a tasknode
by aspider
anonymous wrote :
| No, I disagree. 'Co-signing' for for me is having a set of people agree on a businessdocument. In real life (if it is a paper document) that can only be done in sequence. Electronically it can be done in parallel. Furthermore the 'co-signing PROCESS can be complicated. Maybe a manager has to sign to if e.g. just 2 out of 4 that have to sign agree and there is a stand-off. He also 'just signs' but it is part of a flow.
|
| Can you explain to me why you need identical tasks in sequence? What is the relation between them? I get the feeling you need to start thinking out of the box and also take into account that current real-life processes *should not* be modelled as-is electronically. Always take business process redesign into account
|
in my understanding, co-signing maybe is that, in a tasknode, several same tasks are delivered paralel automatically to several person, tasknode will finish if all/one of/majority of person(s) agree/disagree.
why i need serialization or parallel same tasks is because in our system, one step of process will be approved by several person with sequence, but what they do are almost same. so i want to do it in one task-node, as co-signing does. If difficult to implement, i will change it to one person one task-node. Is it the correct way?
Thanks for your 2 link, i will read it and hopefully get useful information.
anonymous wrote :
| anonymous wrote : I read ForEachForkAH example from Wiki, i am a little confused about that. It seems to create several node in parallel, not tasknode, so is different to co-sign. right?
| Learn jBPM a little more in the basics... you can put anything in there, tasknodes, subprocesses.... you name it...
I read JBPM doc, but i cant get any useful stuff in such situation.
Could you tell me more?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197275#4197275
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197275
17 years, 6 months