[EJB 3.0] - @GeneratedValue(strategy=GenerationType.AUTO) for oracle fai
by rkiran81
Hi All,
My development environment is jboss-4.0.3SP1 server and used jboss-EJB-3.0_RC6-PFD to setup my jboss for ejb3.
Oracle10g.
I have two already existing tables for which i have created the beans.
|
| Parent table with columns PROFILE_ID(bigint) and PROFILE_NAME(nvarchar(64))
|
| Parent Table Bean
| @Entity
| @Table(name="PROFILES")
| public class DomainProfileBean implements Serializable
| {
| static final long serialVersionUID = 5421650648474888865L;
| private long id;
| private String profileName;
| private Collection rolesProfileBean= new ArrayList();
|
| @Id
| @Column(name="PROFILE_ID")
| public long getId()
| {
| return id;
| }
|
| public void setId(long id)
| {
| this.id = id;
| }
| @Column(name="PROFILE_NAME")
| public String getProfileName()
| {
| return profileName;
| }
| public void setProfileName(String profileName)
| {
| this.profileName = profileName;
| }
|
| @OneToMany(cascade = {CascadeType.ALL})
| @JoinColumn(name="PROFILE_ID")
| public Collection getRolesProfileBean()
| {
| return rolesProfileBean;
| }
|
| public void setRolesProfileBean(Collection rolesProfileBean)
| {
| this.rolesProfileBean= rolesProfileBean;
| }
| }
| -----------------------------------------------------------------------------------
|
| Child table with columns ID(bigint),PROFILE_ID(bigint) and ROLE_ID(bigint)
|
| Child Table Bean
| @Entity
| @Table(name="LK_PROFILE_QUERY")
| public class RolesProfileBean implements Serializable
| {
| static final long serialVersionUID = 258127495705939407L;
| private long id;
| private long profileID;
| private long roleID;
|
| @Id
| @GeneratedValue(strategy=GenerationType.AUTO)
| @Column(name="ID")
| public long getId()
| {
| return id;
| }
|
| public void setId(long id)
| {
| this.id = id;
| }
|
| @Column(name="PROFILE_ID")
| public long getProfileID()
| {
| return profileID;
| }
|
| public void setProfileID(long profileID)
| {
| this.profileID = profileID;
| }
|
| @Column(name="ROLE_ID")
| public long getRoleID()
| {
| return roleID;
| }
|
| public void setRoleID(long roleID)
| {
| this.roleID= roleID;
| }
| }
when am trying to persist (creating new record) my parent table bean am also populating the child table beans, but it is failing. Please check the stack trace12:44:30,027 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8081
| 12:44:30,105 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started
| in 1m:41s:459ms
| 12:47:58,657 INFO [FieldsManager] FieldsManager in use = org.jboss.serial.classmetamodel.UnsafeFieldsManager
| 12:47:59,978 WARN [JDBCExceptionReporter] SQL Error: 1, SQLState: 23000
| 12:47:59,978 ERROR [JDBCExceptionReporter] ORA-00001: unique constraint (MPUSERS.SYS_C0031176) violated
|
| 12:47:59,978 WARN [JDBCExceptionReporter] SQL Error: 1, SQLState: 23000
| 12:47:59,978 ERROR [JDBCExceptionReporter] ORA-00001: unique constraint (MPUSERS.SYS_C0031176) violated
|
| 12:47:59,978 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.exception.ConstraintViolationException: could not insert: [com.bis.dbservices.domainprofiledao.RolesProfil
| eBean]
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2140)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2503)
| at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:29
| 7)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:988)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:337)
| at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:473)
| at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1473)
| at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1092)
| at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:306)
| at org.jboss.tm.TxManager.commit(TxManager.java:224)
| at org.jboss.ejb.EnterpriseContext$UserTransactionImpl.commit(EnterpriseContext.java:605)
| at com.bis.dbservices.domainprofiledao.DomainProfileSLBean.createDomainProfile(DomainProfileSLBean.java:209)
| 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.jboss.invocation.Invocation.performCall(Invocation.java:345)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
|
| at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
| at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:158)
| at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154
| )
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
| at org.jboss.ejb.Container.invoke(Container.java:873)
| at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
| at $Proxy89.createDomainProfile(Unknown Source)
| at com.bis.dbservices.domainprofiledao.DomainProfileHandler.createDomainProfile(DomainProfileHandler.java:106)
| at com.bis.sysadmintool.domain.servlets.DADomainProfileCreateServlet.service(DADomainProfileCreateServlet.java:1
| 99)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at com.bis.userauthentication.windows.AuthenticationFilter.doFilter(AuthenticationFilter.java:227)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at com.bis.commonclasses.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:87)
| 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:81)
| 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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
| 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:856)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
| 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.sql.BatchUpdateException: ORA-00001: unique constraint (MPUSERS.SYS_C0031176) violated
|
| at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343)
| at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10657)
| at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:487)
| at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
| at org.hibernate.jdbc.BatchingBatcher.addToBatch(BatchingBatcher.java:34)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2120)
| ... 79 more
Can anybody please suggest on this ASAP.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154147#4154147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154147
17 years, 10 months
[Management, JMX/JBoss] - Re: Nullpointer at MBeanServer server = MBeanServerLocator.l
by MarcusDidiusFalco
| 09:06:47,299 INFO [STDOUT] 09:06:47,284 [main] ERROR reeCacheMBeanSupport - CacheManager konnte nicht instanziert werden: java.lang.NullPointerException
| java.lang.NullPointerException
| at org.jboss.mx.util.MBeanServerLocator.locateJBoss(MBeanServerLocator.java:43)
| at de.dzbw.dnp.cache.TreeCacheMBeanSupport.getCacheManager(TreeCacheMBeanSupport.java:349)
| at de.dzbw.dnp.cache.TreeCacheMBeanSupport.setCacheName(TreeCacheMBeanSupport.java:72)
| at de.dzbw.dnp.migvis.frontend.listener.InitApplicationListener.initCacheManager(InitApplicationListener.java:102)
| at de.dzbw.dnp.migvis.frontend.listener.InitApplicationListener.contextInitialized(InitApplicationListener.java:50)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| 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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
| 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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy54.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy55.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceContro
|
| private TreeCacheMBean getCacheManager()
| {
| if (treeCache == null)
| {
| try
| {
| MBeanServer server = MBeanServerLocator.locateJBoss(); // line 349 of TreeCacheMBeanSupport
| treeCache = (TreeCacheMBean) MBeanProxyExt.create(TreeCacheMBean.class, getCacheManagerConfig(), server);
| if (log.isDebugEnabled())
| {
| log.debug("TreeCache-Konfig.: " + getCacheManagerConfig());
| log.debug("TreeCache Details: " + treeCache.printDetails());
| }
| if (treeCache == null)
| {
| log.warn("Cachemanager konnte nicht erzeugt werden: " + getCacheManagerConfig());
|
| }
|
| } catch (Exception e)
| {
|
| log.error("CacheManager konnte nicht instanziert werden: " + e, e);
| treeCache = null;
|
| }
| }
|
| return treeCache;
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154142#4154142
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154142
17 years, 10 months
[JBoss jBPM] - Trying to implement a loop in JPDL
by WalterTaus
Hello,
I have tried to implement a loop in JPDL. My source looks as follows
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="" name="Pool">
| <start-state name="StartState1212041906165">
| <transition to="LoopBefore3/LoopBefore3LoopCounterInit"></transition>
| </start-state>
| <super-state name="LoopBefore3">
| <node name="LoopBefore3LoopCounterInit">
| <event type="node-enter">
| <script><expression>
| System.out.println(executionContext.getNode().getName() + " entered");
| executionContext.setVariable("_f5Ue8CyoEd2cO4xcRmnV4wLoopCounter", 0);
| executionContext.leaveNode();
| </expression></script></event>
| <transition name="To_f5Ue8CyoEd2cO4xcRmnV4w" to="LoopBefore3LoopDecision"></transition>
| </node>
| <decision name="LoopBefore3LoopDecision">
| <event type="node-enter">
| <script><expression>
| System.out.println(executionContext.getNode().getName() + " entered");
| </expression></script></event>
| <transition name="To_f5Ue8CyoEd2cO4xcRmnV4w" to="LoopBefore3"></transition>
| <transition name="To_mTMyICyoEd2cO4xcRmnV4w" to="../End/End">
| <condition expression="#{contextInstance.variables['_f5Ue8CyoEd2cO4xcRmnV4wLoopCounter']>= '3'}"></condition>
| </transition>
| </decision>
| <task-node name="LoopBefore3">
| <event type="node-enter">
| <script><expression>
| System.out.println(executionContext.getNode().getName() + " entered");
| executionContext.leaveNode();
| </expression></script></event>
| <event type="node-leave">
| <script><expression>
| executionContext.setVariable("_f5Ue8CyoEd2cO4xcRmnV4wLoopCounter", executionContext.getVariable("_f5Ue8CyoEd2cO4xcRmnV4wLoopCounter") + 1);
| </expression></script></event>
| <transition name="To_f5Ue8CyoEd2cO4xcRmnV4w" to="LoopBefore3LoopDecision"></transition>
| <task name="LoopBefore3"></task>
| </task-node>
| </super-state>
| <super-state name="End">
| <end-state name="End">
| <event type="node-enter">
| <script><expression>
| System.out.println(executionContext.getNode().getName() + " entered");
| </expression></script></event>
| </end-state>
| </super-state>
| </process-definition>
|
I receive the following at the Console:
| StartState1212041906165
| LoopBefore3LoopCounterInit entered
| LoopBefore3LoopDecision entered
| LoopBefore3 entered
| LoopBefore3LoopDecision entered
| LoopBefore3 entered
| LoopBefore3LoopDecision entered
| LoopBefore3 entered
| LoopBefore3LoopDecision entered
| End entered
| LoopBefore3LoopDecision entered
| End entered
|
I am totally puzzled with this result, as I am hitting twice the end-state. The first time entering the end state does not seem to have any effect. Can anyone explain what I am doing wrong here.
Thanks,
Walter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154141#4154141
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154141
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Cannot access Jboss AS 4.2.2 GA on port 80 from another
by cardel
I have a problem with running Jboss AS on port 80. I have read, that I must run it under root user, because another users cant user ports lower that 1234. So I have no problem with run jboss with port 80 and I can access my deployed application on localhost. But I cant access on jboss server if i try to connect from another computer.
Tha strange thing is, that if I run apache web server on the same machine, under port 80, I can access it on localhost and also from another computer. So I think it canôt be problem with some firewall. Just to be sure I shutdown firewalls on both machines.
I have windows XP and under it I run vmware workstation where I have openSuse 10.3 installed. I can ping linux machine from windows and windows machine from linux. As I saed I can access apache web server from windows if apache runs under linux on port 80. But I cant access jboss server from windows if it runs on linux under port 80.
I think that it is some problem with jboss configuration.
When I change configuration from port 8080 to port 80, I changed files
jboss-4.2.2.GA\server\default\deploy\http-invoker.sar\META-INF\jboss-service.xml (I changed all 8080 to 80)
and
jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\server.xml (I changed only connector part)
<Connector port="80" address="${jboss.bind.address}"
| maxThreads="250" maxHttpHeaderSize="8192"
| emptySessionPath="true" protocol="HTTP/1.1"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true" />
Thanks for some tips
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154134#4154134
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154134
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Cannot access Jboss AS 4.2.2 GA on port 80 from another mach
by cardel
I have a problem with running Jboss AS on port 80. I have read, that I must run it under root user, because another users cant user ports lower that 1234. So I have no problem with run jboss with port 80 and I can access my deployed application on localhost. But I cant access on jboss server if i try to connect from another computer.
Tha strange thing is, that if I run apache web server on the same machine, under port 80, I can access it on localhost and also from another computer. So I think it can´t be problem with some firewall. Just to be sure I shutdown firewalls on both machines.
I have windows XP and under it I run vmware workstation where I have openSuse 10.3 installed. I can ping linux machine from windows and windows machine from linux. As I saed I can access apache web server from windows if apache runs under linux on port 80. But I cant access jboss server from windows if it runs on linux under port 80.
I think that it is some problem with jboss configuration.
When I change configuration from port 8080 to port 80, I changed files
jboss-4.2.2.GA\server\default\deploy\http-invoker.sar\META-INF\jboss-service.xml (I changed all 8080 to 80)
and
jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\server.xml (I changed only connector part)
Thanks for some tips
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154132#4154132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154132
17 years, 10 months