[Installation, Configuration & Deployment] - Re: log4j email appender not working with jboss
by ALRubinger
Upon setting "Log4jQuietMode" to "false" in the JMX Console for the Log4J Service, reloading the configuration and manually throwing an exception to trigger an ERROR, I receive the following stacktrace, noting the SMTPAppender attempting to contact port 465 (SMTP over SSL). Why is Log4J attemping port 465?
Before I deploy my application, I receive emailed errors properly.
13:04:46,171 ERROR [STDERR] javax.mail.MessagingException: Could not connect to SMTP host: myhost.com, port: 465;
| nested exception is:
| java.net.ConnectException: Connection refused: connect
| 13:04:46,171 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
| 13:04:46,171 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
| 13:04:46,171 ERROR [STDERR] at javax.mail.Service.connect(Service.java:275)
| 13:04:46,171 ERROR [STDERR] at javax.mail.Service.connect(Service.java:156)
| 13:04:46,171 ERROR [STDERR] at javax.mail.Service.connect(Service.java:105)
| 13:04:46,171 ERROR [STDERR] at javax.mail.Transport.send0(Transport.java:168)
| 13:04:46,171 ERROR [STDERR] at javax.mail.Transport.send(Transport.java:98)
| 13:04:46,171 ERROR [STDERR] at org.apache.log4j.net.SMTPAppender.sendBuffer(Unknown Source)
| 13:04:46,171 ERROR [STDERR] at org.apache.log4j.net.SMTPAppender.append(Unknown Source)
| 13:04:46,171 ERROR [STDERR] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
| 13:04:46,171 ERROR [STDERR] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
| 13:04:46,171 ERROR [STDERR] at org.apache.log4j.Dispatcher.run(AsyncAppender.java:310)
| 13:04:46,171 ERROR [STDERR] Caused by: java.net.ConnectException: Connection refused: connect
| 13:04:46,171 ERROR [STDERR] at java.net.PlainSocketImpl.socketConnect(Native Method)
| 13:04:46,171 ERROR [STDERR] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| 13:04:46,171 ERROR [STDERR] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| 13:04:46,171 ERROR [STDERR] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| 13:04:46,171 ERROR [STDERR] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| 13:04:46,171 ERROR [STDERR] at java.net.Socket.connect(Socket.java:516)
| 13:04:46,171 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:549)
| 13:04:46,171 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)
| 13:04:46,171 ERROR [STDERR] at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
| 13:04:46,171 ERROR [STDERR] at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163)
| 13:04:46,171 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
| 13:04:46,171 ERROR [STDERR] ... 11 more
| 13:04:47,265 ERROR [STDERR] log4j:ERROR Error occured while sending e-mail notification.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958887#3958887
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958887
19 years, 9 months
[JBoss jBPM] - JBPM TaskCreation at RunTime
by abbasshah
Hi, I am having problem while getting taskInstance Id while creating Task at run time.
This is what i have
TASKNODE A which has task 1a and 2a , when a1 is completed process is transited(leaving task 2a dangling) to Node TASKNODE B , which at rumtime creats task 1b.
I have action ActionHandler on " event type='task-create' " which is set to task a1, a2 and b1 and prints tasksInstance id using
executionContext.getTaskInstance().getId()
on a1 and a2 event relavent taskInstanceId are printed fine but on
b1 i get taskinstanceId = 0 ( all this activity i am testing in a junit test and everything happing within same transaction and in the end i rollback)
Why b1 taskinstance id is 0 t?????????? Any clues and help would be great...!!!
follwing is my process defination
< process-definition xmlns='' name='TestCallIssue'>
< start-state name='start'>
< transition name='' to='setup'>< /transition>
< /start-state>
< node name='setup'>
< action class='com.sample.SetupProcessActionHandler'/>
< transition name='' to='Test_Node'>< /transition>
< /node>
< task-node name='Test_Node' signal='never' create-tasks='false'>
< event type='node-enter'>
< action class='com.sample.testTask.OnNodeEnter'/>
< /event>
< task name='MG_CALL_AGREED'>
< event type='task-create'>
< action class='com.sample.testTask.OnTaskCreation'/>
< /event>
< event type='task-end'>
< action class='com.sample.testTask.OnComplete'/>
< /event>
< /task>
< task name='MG_CALL_SYSTASK_DATA_UPDATE'>
< event type='task-create'>
< action class='com.sample.testTask.OnTaskCreation'/>
< /event>
< event type='task-end'>
< action class='com.sample.testTask.OnComplete'/>
< /event>
< /task>
< transition name='on_update_msg' to='Test_Node2'>< /transition>
< /task-node>
< task-node name='Test_Node2' signal='never' create-tasks='false'>
< event type='node-enter'>
< action class='com.sample.testTask.OnNodeEnter2'/>
< /event>
< task name='MG_CALL_AGREED2'>
< event type='task-create'>
< action class='com.sample.testTask.OnTaskCreation'/>
< /event>
< event type='task-end'>
< action class='com.sample.testTask.OnComplete'/>
< /event>
< /task>
< transition name='' to='end'>< /transition>
< /task-node>
< node name='loopback'>
< transition name='' to='Test_Node'>< /transition>
< /node>
< end-state name='end'>< /end-state>
< /process-definition>
< code>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958882#3958882
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958882
19 years, 9 months
[JBoss Seam] - Re: Persistence - Switching DB to Postgres - Schema Export f
by tkrah
Ok resolved the classloader issue, removed the jar from WEB-INF/lib and copyed it do server/default/lib from jboss install.
Works now except:
| Caused by: org.postgresql.util.PSQLException: FEHLER: Wert zu lang fuer Typ character varying(1024)
| at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
| at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
| at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
| at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
| at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:332)
| at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:324)
| at org.jboss.resource.adapter.jdbc.WrappedStatement.execute(WrappedStatement.java:82)
| at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:252)
| ... 165 more
|
|
How can i find out which table, column and which dataset goind to insert causes this?
And how to fix this? The schema mapping might be little bit wrong, if it maps a column to varchar(1024) but examples being inserted are bigger, so how to find out whre exactly this exception raises and where can i fix the mapping to allow verchar(4096) or anything else?
kind regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958875#3958875
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958875
19 years, 9 months