[jBPM Users] - Sending e-mails with mail tasks
by sebastian.s
I can't send e-mails with mail tasks. In the unit tests it worked but on my Tomcat server I am getting this:
| Caused by: javax.mail.NoSuchProviderException: smtp
| at javax.mail.Session.getService(Session.java:794)
| at javax.mail.Session.getTransport(Session.java:718)
| at javax.mail.Session.getTransport(Session.java:661)
| at javax.mail.Session.getTransport(Session.java:641)
| at javax.mail.Session.getTransport(Session.java:696)
| at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl
| .java:48)
|
I use the same configuration as for the unit test and I already checked that the SMTP-server is reachable from the box with Tomcat.
I tried raising the loglevel but regarding this exception I don't see more ever with a higher level.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260250#4260250
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260250
16 years, 8 months
[jBPM Users] - Jbpm/MySQL not working on linux, but fine on Windows
by dleerob
Hi,
I have Jbpm 3.2.6 running on a Windows 2008 server, with Tomcat 5.0.28 and MySQL 5.0.27 as the DB running on local windows machine. It works perfectly.
As soon as I use MySQL 5.0.67 on a separate linux server (SLES11), and use that as my db/datasource with the exact same data/permissions, I get exception saying that tables cannot be found. Basically, it says no tables exist, even when I can see that they do. Tomcat shows me the following exception:
WARN JbpmJobExecutor@10.11.5.61:1 org.hibernate.util.JDBCExceptionReporter - SQL Error: 1146, SQLState: 42S02
| ERROR JbpmJobExecutor@10.11.5.61:1 org.hibernate.util.JDBCExceptionReporter - Table 'jbpm3.JBPM_JOB' doesn't exist
| ERROR JbpmJobExecutor@10.11.5.61:1 org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting 5000 milliseconds
| org.jbpm.JbpmException: could not get first acquirable job
| at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:59)
| at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:115)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
| Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
| 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.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
| at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:52)
| ... 2 more
| Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'jbpm3.JBPM_JOB' doesn't exist
| at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
| at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
| at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
| at com.mysql.jdbc.Connection.execSQL(Connection.java:3124)
| at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1149)
| at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1262)
| at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
| at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
| at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
| at org.hibernate.loader.Loader.doQuery(Loader.java:674)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
| at org.hibernate.loader.Loader.doList(Loader.java:2220)
| ... 11 more
And it's not just 'jbpm3.JBPM_JOB' that apparently doesn't exist, it happens everywhere jbpm tries to access the db.
Does anyone know why JBPM 3.2.6 is not working on MySQL 5.0.67 when its running on a linux operating system?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260249#4260249
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260249
16 years, 8 months
[jBPM Users] - Re: Question and remark about mail-templates
by sebastian.s
Sorry for the mess. By accident I pushed Submit and not preview. Editing posts is really a feature I would highly appreciate.
Okay, how to define mail templates in the configuration for the Tomcat demo setup:
1. Grab the jbpm.cfg.jar which was created during the run of ant demo.setup.tomcat. It's in the lib-Folder of the Tomcat installation.
2. Put it in an empty directory and unjar it by using the command:
| jar -xfv jbpm.cfg.jar
|
3. Create a file named jbpm.mail.templates.xml
4. Create your template or templates in the following form inside this file:
| <jbpm-configuration>
| <process-engine-context>
| <mail-template name="template1">
| ..
| </mail-template>
| </process-engine-context>
| </jbpm-configuration>
|
5. Add the following line in the jbpm.cfg.xml:
| <import resource="jbpm.mail.templates.xml" />
|
6. Create a new version of jbpm.cfg.jar by using the command:
| jar -cfmv jbpm.cfg.jar *.* ./META-INF/MANIFEST.MF
|
7. Replace the jbpm.cfg in your Tomcat lib-Folder with the newly created one. Don't forget to restart Tomcat.
Is there a better way to specify additional configuration settings before the jbpm.cfg.jar is created by the ant task? In build.xml you can set the property mail.smtp.host but not the from-address for example.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260242#4260242
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260242
16 years, 8 months
[JBoss Tools Users] - JBossTools & JMX Poller - Server failed to start
by derget
Hi!
I'm using the following combination:
Win32
Java 1.6 U16
Eclipse Galileo 3.5 SR1
JBoss Tools 3.1.0.M3
JBoss 3.2.7
When starting the 'default' configuration everything is fine, but any other config fails. I've got the following error:
"Server JBoss 3.2 Runtime Server failed to start.
An exception stack trace is not available."
After searching the filesystem for any clues or hints what's going wrong, I found a logfile in the metadir of my workspace @
".metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_3.2_Runtime_Server\log" with the following content:
!ENTRY org.jboss.ide.eclipse.as.core 4 16842752 2009-10-14 10:19:48.580
!MESSAGE Failure in Poll Thread
!STACK 0
org.jboss.ide.eclipse.as.core.server.IServerStatePoller$PollingException: java.lang.Boolean cannot be cast to java.lang.String
at org.jboss.ide.eclipse.as.core.extensions.polling.JMXPoller$PollerRunnable.handleException(JMXPoller.java:166)
at org.jboss.ide.eclipse.as.core.extensions.polling.JMXPoller$PollerRunnable.run(JMXPoller.java:106)
at java.lang.Thread.run(Thread.java:619)
After that I switch the Server Polling method from "JMX Poller" to "Timeout Poller" and the server starts, but the plugin never reached the state "Started" - it remains in the the state "Starting".
In the default config the JMX Poller works as expected.
Can someone help me?
Thx in advance
Derget
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260240#4260240
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260240
16 years, 8 months
[JBoss Messaging Users] - Slow consumer is blocking producer
by PoonamAgarwal
Hi,
I am using Jboss 4.2.0 and JBoss Messaging 1.4.4.
I am facing a performance issue.
I am using 1 publisher and 1 subscriber to a Topic.
I am trying to post 36000 messages to the topic from the producer.
The subscriber(consumer) takes each message and does some processing.
But, what I have observed is that the publisher is slow in posting messages on the topic. If I comment out the processing code on the consumer(MessageListener) , just print the received message, then I see the postToTopic becomes fast.
I was of the view that Jboss Messaging is asynchronous. but, the above observation shows that a consumer is blocking producer which is like a synchronous call.
I have tried to make Slow Consumer true and also increasing the pre-fetchsize but, nothing seems to make it faster. My framework performance is kinda disturbed bcoz of this behaviour.
Can somebody help me to solve this problem please?
-Poonam.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260232#4260232
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260232
16 years, 8 months