[JNDI/Naming/Network] - Need to restart JBoss, to avoid Could Not Instantiate Bean E
by amollekurwale
Hi,
I am developing a enterprise application, wherein, sometimes, when GUI user sends a request for a particular operation, and EJB is invoked, I get an exception 'javax.ejb.EJBException Could not instantiate bean'.
When I restart JBOSS, the error goes away.
Had it been my application problem, it would occur whenever the request was sent.
What is the reason for this exception, and how to avoid it?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210921#4210921
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210921
17 years, 2 months
[JBoss jBPM] - persistent execution mode
by galanfish
can anyone give me a persistent execution mode program demo?
i have been stucked..
my testcase and exception jvm method call stack as follow:
public class PersistentExecutionModeTest extends EnvironmentFactoryTestCase {
|
| public void testDeploy() { // seems ok
| // /*
| JbpmConfiguration environmentFactory = (JbpmConfiguration)getEnvironmentFactory();
| ProcessService processService = environmentFactory.get(ProcessService.class);
|
| ClientProcessDefinition processDefinition = ProcessDefinitionBuilder
| .startProcess("test")
|
| .startActivity("start", WaitState.class)
| .initial()
| .flow("end","end")
| .endActivity()
|
| .startActivity("end", AutomaticActivity.class)
| .endActivity()
|
| .endProcess();
|
| Deployment deployment = new DeploymentImpl();
| deployment.addObject("testProcesssss", processDefinition);
|
| ((ProcessServiceImpl) processService).deploy(deployment);
| // */
| }
|
| public void testStartProcessInstance() { // seems ok, 2
|
| JbpmConfiguration environmentFactory = (JbpmConfiguration) getEnvironmentFactory();
| ExecutionService executionService = environmentFactory.get(ExecutionService.class);
| Execution execution = executionService.startProcessInstanceById("test:1", "request17");
| }
|
| public void testResumeProcessInstance(){ // something wrong...
| JbpmConfiguration environmentFactory = (JbpmConfiguration)getEnvironmentFactory();
| ExecutionService executionService = environmentFactory.get(ExecutionService.class);
| Execution execution = executionService.signalExecutionById("test/request17", "end"); // exception occured here
|
| }
|
| }
exception:
Hibernate:
/* delete org.jbpm.pvm.internal.model.ExecutionImpl */ delete
from
JBPM_EXECUTION
where
DBID_=?
and DBVERSION_=?
10:36:37,578 WRN | [JDBCExceptionReporter] SQL Error: 1451, SQLState: 23000
10:36:37,578 SEV | [JDBCExceptionReporter] Cannot delete or update a parent row: a foreign key constraint fails (`jbpm_pvm/jbpm_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm_execution` (`DBID_`))
### EXCEPTION ###########################################
10:36:37,578 SEV | [AbstractFlushingEventListener] Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.pvm.internal.model.ExecutionImpl#4]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2546)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2702)
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:77)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.jbpm.pvm.internal.tx.HibernateSessionResource.prepare(HibernateSessionResource.java:54)
at org.jbpm.pvm.internal.tx.StandardTransaction.commit(StandardTransaction.java:106)
at org.jbpm.pvm.internal.tx.StandardTransaction.complete(StandardTransaction.java:65)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:61)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:52)
at org.jbpm.pvm.internal.model.ProcessInstanceEndedSynchronization.afterCompletion(ProcessInstanceEndedSynchronization.java:52)
at org.jbpm.pvm.internal.tx.StandardSynchronization.afterCompletion(StandardSynchronization.java:41)
at org.jbpm.pvm.internal.tx.StandardTransaction.afterCompletion(StandardTransaction.java:213)
at org.jbpm.pvm.internal.tx.StandardTransaction.commit(StandardTransaction.java:153)
at org.jbpm.pvm.internal.tx.StandardTransaction.complete(StandardTransaction.java:65)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:61)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:52)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.signalExecutionById(ExecutionServiceImpl.java:97)
at org.jbpm.pvm.executionmode.persistence.PersistentExecutionModeTest.testResumeProcessInstance(PersistentExecutionModeTest.java:81)
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 junit.framework.TestCase.runTest(TestCase.java:164)
at org.jbpm.test.BaseJbpmTestCase.runTest(BaseJbpmTestCase.java:81)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210916#4210916
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210916
17 years, 2 months
[JBoss Getting Started Documentation] - Re: JBOSS installation - query
by iinfi
Thanks a lot Peter.
i dont get a Started in xx seconds when i run the run.sh
this is what i get
| [jboss@localhost bin]$ ./run.sh
|
| =========================================================================
|
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as
|
| JAVA: /usr/java/jdk1.6.0_11/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1203m -Xmx1203m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true
|
| CLASSPATH: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/bin/run.jar:/usr/java/jdk1.6.0_11/lib/tools.jar
|
| =========================================================================
|
|
| 08:42:23,129 INFO [Server] Starting JBoss (MX MicroKernel)...
| 08:42:23,137 INFO [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP03 (build: SVNTag=JBPAPP_4_3_0_GA_CP03 date=200810241616)
| 08:42:23,144 INFO [Server] Home Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as
| 08:42:23,294 INFO [Server] Home URL: file:/home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/
| 08:42:23,397 INFO [Server] Patch URL: null
| 08:42:23,399 INFO [Server] Server Name: production
| 08:42:23,400 INFO [Server] Server Home Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production
| 08:42:23,402 INFO [Server] Server Home URL: file:/home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production/
| 08:42:23,403 INFO [Server] Server Log Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production/log
| 08:42:23,405 INFO [Server] Server Temp Dir: /home/jboss/EnterprisePlatform-4.3.0.GA_CP03/jboss-as/server/production/tmp
| 08:42:23,407 INFO [Server] Root Deployment Filename: jboss-service.xml
| 08:42:25,714 INFO [ServerInfo] Java version: 1.6.0_11,Sun Microsystems Inc.
| 08:42:25,716 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b16,Sun Microsystems Inc.
| 08:42:25,717 INFO [ServerInfo] OS-System: Linux 2.6.18-53.el5,i386
| 08:42:27,822 INFO [Server] Core system initialized
| 08:42:39,096 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
| 08:42:39,104 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
|
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210914#4210914
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210914
17 years, 2 months
[Remoting] - Re: CannotConnectException/BindException on running clients
by vink
Prior to 2.4.0.SP1, every call to SLSB was creating a socket; as a result system run out of sockets & it throws cannot connect exception.
I migrated to this version who claimed to solve this bug. Also this version exposed an extra attribute "invokerDestructionDelay", which is used for reusing the socket connection for a given delay.
I've just added this attribute to the default configuration & my system is running without any issues. This attribute is optional, you can just try this new version of remoting.
<mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <attribute name="InvokerLocator">socket://${jboss.bind.address}:3873/?invokerDestructionDelay=5000</attribute>
| <attribute name="Configuration">
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </attribute>
| </mbean>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210911#4210911
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210911
17 years, 2 months