[JBoss Tools] - MSSQL Server datasource cause exception whenever one start up the server
by Guillermo López
Guillermo López [https://community.jboss.org/people/gmlopezdev] created the discussion
"MSSQL Server datasource cause exception whenever one start up the server"
To view the discussion, visit: https://community.jboss.org/message/798971#798971
--------------------------------------------------------------
I have an issue whenever I try to startup the AS7 runtime from eclipse servers view. I've setup an mssql server datasource and it throws an ssl exception. The server is not configured to require ssl. This does not happen when I start it up from command line by issueing a standalone.bat.
Any ideas???
The exception I get is as the following:
java.ext.dirs: C:\Program Files\Java\jdk1.7.0_13\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
20:01:57,191 WARN [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] (MSC service thread 1-7) HHH000342: Could not obtain connection to query metadata : javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/gisDS
20:01:57,204 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-7) HHH000400: Using dialect: org.hibernate.dialect.SQLServerDialect
20:01:57,199 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (MSC service thread 1-3) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Could not create connection
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:277)
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235)
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761)
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:343)
at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397)
at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365)
at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:329)
at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:368)
at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:464)
at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:129)
at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:67) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:253) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:119) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_13]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_13]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_13]
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "RSA premaster secret error". ClientConnectionId:98e0dfa4-42e8-42a1-8d37-c0f8ec7098e1
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1667)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1668)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1323)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:249)
... 30 more
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
at sun.security.ssl.RSAClientKeyExchange.<init>(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.ClientHandshaker.serverHelloDone(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.Handshaker.processLoop(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.Handshaker.process_record(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) [jsse.jar:1.7.0_13]
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) [jsse.jar:1.7.0_13]
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1618)
... 35 more
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not available
at javax.crypto.KeyGenerator.<init>(KeyGenerator.java:158) [jce.jar:1.7.0_10]
at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:207) [jce.jar:1.7.0_10]
at sun.security.ssl.JsseJce.getKeyGenerator(Unknown Source) [jsse.jar:1.7.0_13]
... 45 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/798971#798971]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JBoss Tools] - m2e-wtp 0.17.0 has been released!
by Fred Bricon
Fred Bricon [https://community.jboss.org/people/fbricon] modified the blog post:
"m2e-wtp 0.17.0 has been released!"
To view the blog post, visit: https://community.jboss.org/community/tools/blog/2013/02/20/m2e-wtp-0170-...
--------------------------------------------------------------
h2. With bits of JBoss Tools in it
On behalf of the m2e-wtp team, I'm pleased to announce the immediate availability of m2e-wtp 0.17.0, right on time to accompany the Juno SR2 release.
This 0.17.0 release primarily introduces new optional Java EE configurators, contributed by the JBoss Tools and JBoss Developer Studio team.
https://community.jboss.org/servlet/JiveServlet/showImage/38-5147-20349/M... https://community.jboss.org/servlet/JiveServlet/downloadImage/38-5147-203...
* JAX-RS project configurator : installs the JAX-RS Facet to war projects having JAX-RS dependencies
* JSF project configurator : installs the JSF Facet to war projects having a WEB-INF/faces-config.xml, JSF dependencies or defining a FacesServlet in web.xml
* JPA project configurator : installs the JPA Facet to java projects having a META-INF/persistence.xml descriptor
Read the http://wiki.eclipse.org/M2E-WTP/New_and_Noteworthy/0.16 New and Noteworthy and https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced&bug_statu... changelog to learn more about the new features and fixes this version brings to you.
h2. Installation and gotchas
m2e-wtp requires at least m2e 1.1 but *1.3* is **strongly** recommended, in order to take advantage of the eclipse-to-maven project conversion improvements, as well as some fixes in classpath resolution for launch configurations.
Since WTP's Dali project changed its API between Juno and Kepler, so m2e-wtp is now available from 2 different update sites :
* http://download.eclipse.org/m2e-wtp/releases/juno http://download.eclipse.org/m2e-wtp/releases/juno for Indigo and Juno
* http://download.eclipse.org/m2e-wtp/releases/kepler http://download.eclipse.org/m2e-wtp/releases/kepler for Indigo and Juno
You can also install m2e-wtp from the Eclipse Marketplace (http://marketplace.eclipse.org/node/441371).
*Please note that, m2e-wtp and JBoss Tools JPA, JSF JAX-RS Configurators overlap and can not be installed together.*
* In Eclipse versions prior to Juno SR2, if you try to update your Eclipse installation via "*+Help > Install New Software...+*", the optional configurators won't install because of the conflict with JBoss Tools. If you updated your version of Eclipse to Juno SR2, the m2e-wtp configurators should be seen as suitable replacement for their JBoss Tools counterparts.
* For all Eclipse versions, if you add the m2e-wtp update site to your list of Available Update Sites, doing "*+Help > Find Updates+*" everything should update properly.
As always, the safest path to upgrade is to start from a clean Eclipse installation.
h2. Destination Kepler
In the next version, we'll make sure Java EE 7 is given some proper love (i.e. make sure all the new upcoming Facet will be properly configured automatically).
And if everything goes according to plan, starting from Kepler Milestone 6, m2e-wtp.next should be included in the Eclipse Java EE distribution.
Enjoy,
Fred.
https://twitter.com/#!/fbricon https://twitter.com/#!/fbricon
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/community/tools/blog/2013/02/20/m2e-wtp-0170-...]
12 years, 10 months
[EJB3] - EJB3 is slow sometimes
by Kalaiselvam P
Kalaiselvam P [https://community.jboss.org/people/kalaiselvamp] created the discussion
"EJB3 is slow sometimes"
To view the discussion, visit: https://community.jboss.org/message/799317#799317
--------------------------------------------------------------
Hi,
We have EJB(EJB3.0) application which is deployed on JBoss 5.0, we feel sometimes EJB takes long time to return the data(data volume is always same) to invoker.
@Stateless(name = "RequiresNewSessionBean")
@RemoteBinding (jndiBinding = "N_All/RequiresNewSessionBean/remote")
@LocalBinding (jndiBinding = "N_All/RequiresNewSessionBean/local")
@TransactionManagement(TransactionManagementType.CONTAINER)
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
*com.test.ejb.RequiresNewSessionBean*
*com.test.ejb.LocalSessionBeanInvoker* (this class has only invoking parts) will invoke "*com.test.ejb.RequiresNewSessionBean*"
As you see the below 3 scenarios, execution of "*com.test.ejb.RequiresNewSessionBean*" has been finished but it takes time to return to invoker.
The time taken is changing from "*8 ms*" to maximum "*150 ms*" in my local system.
But in our production server this time taken is went up to "*3000 ms"* (only sometimes not all the times, by default it will be within 1 ~ 2 ms in Production server)
Please share your suggestions to overcome this issue.
Scenario 1
----------
17:02:15,052 DEBUG [LocalSessionBeanInvoker] 20130225-080213979 0001 com.test.ejb.LocalSessionBeanInvoker has started.20130225080215052
17:02:15,054 DEBUG [RequiresNewSessionBean] 20130225-080213979 0001 com.test.ejb.RequiresNewSessionBean has started.20130225080215053
17:02:15,094 DEBUG [RequiresNewSessionBean] 20130225-080213979 0001 com.test.ejb.RequiresNewSessionBean has finished.20130225080215093
17:02:15,094 DEBUG [RequiresNewSessionBean] 20130225-080213979 0001 *[com.test.ejb.RequiresNewSessionBean]Elapsed time is 41 ms.*
17:02:15,101 DEBUG [LocalSessionBeanInvoker] 20130225-080213979 0001 com.test.ejb.LocalSessionBeanInvoker has finished.20130225080215101
17:02:15,101 DEBUG [LocalSessionBeanInvoker] 20130225-080213979 0001 *[com.test.ejb.LocalSessionBeanInvoker]Elapsed time is 49 ms.*
Scenario 2
----------
17:11:35,343 DEBUG [LocalSessionBeanInvoker] 20130225-081135291 0001 com.test.ejb.LocalSessionBeanInvoker has started.20130225081135343
17:11:35,344 DEBUG [RequiresNewSessionBean] 20130225-081135291 0001 com.test.ejb.RequiresNewSessionBean has started.20130225081135344
17:11:35,402 DEBUG [RequiresNewSessionBean] 20130225-081135291 0001 com.test.ejb.RequiresNewSessionBean has finished.20130225081135402
17:11:35,402 DEBUG [RequiresNewSessionBean] 20130225-081135291 0001 *[com.test.ejb.RequiresNewSessionBean]Elapsed time is 53 ms.*
17:11:35,417 DEBUG [LocalSessionBeanInvoker] 20130225-081135291 0001 com.test.ejb.LocalSessionBeanInvoker has finished.20130225081135417
17:11:35,417 DEBUG [LocalSessionBeanInvoker] 20130225-081135291 0001 *[com.test.ejb.LocalSessionBeanInvoker]Elapsed time is 71 ms.*
Scenario 3
----------
17:32:25,705 DEBUG [LocalSessionBeanInvoker] 20130225-083225641 0001 com.test.ejb.LocalSessionBeanInvoker has started.20130225083225705
17:32:25,708 DEBUG [RequiresNewSessionBean] 20130225-083225641 0001 com.test.ejb.RequiresNewSessionBean has started.20130225083225708
17:32:25,775 DEBUG [RequiresNewSessionBean] 20130225-083225641 0001 com.test.ejb.RequiresNewSessionBean has finished.20130225083225775
17:32:25,775 DEBUG [RequiresNewSessionBean] 20130225-083225641 0001 *[com.test.ejb.RequiresNewSessionBean]Elapsed time is 67 ms.*
17:32:25,789 DEBUG [LocalSessionBeanInvoker] 20130225-083225641 0001 com.test.ejb.LocalSessionBeanInvoker has finished.20130225083225789
17:32:25,789 DEBUG [LocalSessionBeanInvoker] 20130225-083225641 0001 *[com.test.ejb.LocalSessionBeanInvoker]Elapsed time is 84 ms.*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799317#799317]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM] - Problem with WorkItems on gwt-console
by elbocia
elbocia [https://community.jboss.org/people/elbocia] created the discussion
"Problem with WorkItems on gwt-console"
To view the discussion, visit: https://community.jboss.org/message/777114#777114
--------------------------------------------------------------
I have deployed jbpm (drools-guvnora and jbpm console) on Tomcat 6.0.35.
I have created a simple process (Start --> Task Log (default WorkItem) --> End) in guvnor but when I execute this process on console I have this error:
*exception*
org.jboss.resteasy.spi.UnhandledException: org.jbpm.workflow.instance.WorkflowRuntimeException: [defaultPackage.processo1:1 - Log:3] -- Could not find work item handler for Log org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
*root cause*
org.jbpm.workflow.instance.WorkflowRuntimeException: [defaultPackage.processo1:1 - Log:3] -- Could not find work item handler for Log org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130) org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188) org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303) org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168) org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138) org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:120) org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39) org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367) org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223) org.jbpm.integration.console.CommandDelegate.startProcess(CommandDelegate.java:120) org.jbpm.integration.console.ProcessManagement.newInstance(ProcessManagement.java:88) org.jboss.bpm.console.server.FormProcessingFacade.startProcessWithUI(FormProcessingFacade.java:197) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
*root cause*
org.drools.WorkItemHandlerNotFoundException: Could not find work item handler for Log org.drools.persistence.jpa.processinstance.JPAWorkItemManager.throwWorkItemNotFoundException(JPAWorkItemManager.java:62) org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:57) org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105) org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188) org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303) org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168) org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138) org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:120) org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39) org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367) org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223) org.jbpm.integration.console.CommandDelegate.startProcess(CommandDelegate.java:120) org.jbpm.integration.console.ProcessManagement.newInstance(ProcessManagement.java:88) org.jboss.bpm.console.server.FormProcessingFacade.startProcessWithUI(FormProcessingFacade.java:197) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
Why the console doesn't see the workitem?
Sorry for my english.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777114#777114]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JBoss Tools] - How to avoid should be mapped with insert="false" update="false"
by Christian Filippi
Christian Filippi [https://community.jboss.org/people/christian1976] created the discussion
"How to avoid should be mapped with insert="false" update="false""
To view the discussion, visit: https://community.jboss.org/message/799016#799016
--------------------------------------------------------------
Hi
I'm facing a problem when i try to use the hql query editor in eclipse.
[Repeated column in mapping for entity (should be mapped with insert="false" update="false")]
I have my Mysql db filled with tables with relations and data
I need to generate all the reversed-eng classes and xml, so in the hibernate config i select Hibernate Version 3.6 (but seems that there are no differences if i choose other, like in the options, i can choose mysql innodb dialect or mysql... seems the same)
Then i open the "Hibernate Code generation configurations..."
I check in the Main:
Generate basic typed composite ids
Detect optimistic lock colums
Detect many-to-many tables
Detect one-to-one associations
In the Exporters:
Domain code (.java)
Hibernate XML Mappings
Hibernate XML configuration
The generation runs fine, but when i try to operate a simple hql query (from tablename) i got this error:
(generated by hbm2java)
Unhandled event loop exception
org.hibernate.MappingException: Repeated column in mapping for entity: my.test.hibernate.SicComDdtOut column: SCDO-comm (should be mapped with insert="false" update="false")
I understand where the problem is and how i can avoid it is explained(should be mapped with insert="false" update="false")
But, i have many tables with many relations, and i'm still developing the database, so that means that i'll make some changes for sure.
If i follow the suggestion i must edit each problem everytime that i re-generate the code.
So i'm asking for help, is that the right way to solve this problem?
Am i missing something?
Thankyou in advance.
I'm using:
Eclipse: Version: 4.2.1.v20120814-120134...
Hibernate Tools for Eclipse Version: 3.6.0.Final-v20121205-1936-B77
Please, forgive me if i posted in a wrong section. :)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799016#799016]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JBoss Web Services] - Error with registering a RESTeasy Providerfactory
by M Longman
M Longman [https://community.jboss.org/people/tamuren] created the discussion
"Error with registering a RESTeasy Providerfactory"
To view the discussion, visit: https://community.jboss.org/message/799444#799444
--------------------------------------------------------------
Hi,
I get the following error:
java.lang.ClassCastException: com.sun.jersey.server.impl.provider.RuntimeDelegateImpl cannot be cast to org.jboss.resteasy.spi.ResteasyProviderFactory at org.jboss.resteasy.spi.ResteasyProviderFactory.getInstance(ResteasyProviderFactory.java:330) at de.webshop.test.util.RegisterResteasy.register(RegisterResteasy.java:11) at de.webshop.test.BestellverwaltungTest.setup(BestellverwaltungTest.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:617) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
After I run this code:
*package* de.webshop.test.util; *import* org.jboss.resteasy.plugins.providers.RegisterBuiltin; *import* org.jboss.resteasy.spi.ResteasyProviderFactory; *public* *abstract* *class* RegisterResteasy { *private* *static* *boolean* registered = *false*; *public* *static* *void* register() { *if* (!registered) { ResteasyProviderFactory resteasyProviderFactory = ResteasyProviderFactory.getInstance(); RegisterBuiltin.register( resteasyProviderFactory ); registered = *true*; } } }
What can be the reason ? Thanks for help in advance. And don't just say 'You're mixing Jersey and Resteasy', I don't know what that means and there's no Jersey dependencies in my pom.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799444#799444]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM] - Connection TimeOut while getting assigned tasks
by Prashanth Karnam
Prashanth Karnam [https://community.jboss.org/people/pras_karnam] created the discussion
"Connection TimeOut while getting assigned tasks"
To view the discussion, visit: https://community.jboss.org/message/648811#648811
--------------------------------------------------------------
Hi All,
We are using the BlockingSummaryTaskHandler to get assigned tasks and we are getting the following timeout errors while fetching results.This is very critical , can anyone please help on this
48322772 26/01 08:27:43,710[http-8082-7] INFO emirates.sds.wf.exit - Exit [CTaskClient] CTaskClient method
Hibernate: select task0_.id as col_0_0_, task0_.processInstanceId as col_1_0_, names5_.text as col_2_0_, subjects3_.text as col_3_0_, descriptio4_.text as col_4_0_, task0_.status as col_5_0_, task0_.priority as col_6_0_, task0_.skipable as col_7_0_, task0_.actualOwner_id as col_8_0_, task0_.createdBy_id as col_9_0_, task0_.createdOn as col_10_0_, task0_.activationTime as col_11_0_, task0_.expirationTime as col_12_0_, task0_.processId as col_13_0_, task0_.processSessionId as col_14_0_ from Task task0_ left outer join OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id left outer join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left outer join I18NText subjects3_ on task0_.id=subjects3_.Task_Subjects_Id left outer join I18NText descriptio4_ on task0_.id=descriptio4_.Task_Descriptions_Id left outer join I18NText names5_ on task0_.id=names5_.Task_Names_Id, OrganizationalEntity organizati6_ where organizati6_.id=? and (organizati6_.id in (select potentialo9_.entity_id from PeopleAssignments_PotOwners potentialo9_ where task0_.id=potentialo9_.task_id)) and (names5_.language=? or (select count(names10_.Task_Names_Id) from I18NText names10_ where task0_.id=names10_.Task_Names_Id)=0) and (subjects3_.language=? or (select count(subjects11_.Task_Subjects_Id) from I18NText subjects11_ where task0_.id=subjects11_.Task_Subjects_Id)=0) and (descriptio4_.language=? or (select count(descriptio12_.Task_Descriptions_Id) from I18NText descriptio12_ where task0_.id=descriptio12_.Task_Descriptions_Id)=0) and (task0_.expirationTime is null)
48332776 26/01 08:27:53,714[http-8082-7] ERROR emirates.sds.wf.error - [CWorkflowDesignerMBean] method : getAssignedTasks:*Timeout : unable to retrieve results trace : java.lang.RuntimeException: Timeout : unable to retrieve results*
1. *java.lang.RuntimeException: Timeout : unable to retrieve results*
at org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)
at com.emirates.sds.workflow.mbean.CWorkflowDesignerMBean.getAssignedTasks(CWorkflowDesignerMBean.java:1592)
at com.emirates.sds.workflow.mbean.CWorkflowDesignerMBean.getTasks(CWorkflowDesignerMBean.java:2921)
at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:71)
at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:178)
at javax.faces.component.UIData.getValue(UIData.java:554)
at org.ajax4jsf.component.UIDataAdaptorBase.getValue(UIDataAdaptorBase.java:1647)
at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
at org.richfaces.component.UIExtendedDataTable.resetDataModel(UIExtendedDataTable.java:390)
at org.ajax4jsf.component.UIDataAdaptorBase.beforeRenderResponse(UIDataAdaptorBase.java:1656)
at org.richfaces.component.UIExtendedDataTable.beforeRenderResponse(UIExtendedDataTable.java:417)
at org.ajax4jsf.component.RenderPhaseUIDataAdaptorVisitor.beforeComponent(RenderPhaseUIDataAdaptorVisitor.java:44)
at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:47)
at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
at org.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:71)
at org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:188)
at org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:510)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)
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:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648811#648811]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months