Anonymous | Login | Signup for a new account | 11-21-2024 22:02 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000103 | [Resin] | minor | always | 04-14-05 00:00 | 05-11-05 00:00 | ||||
Reporter | user125 | View Status | public | ||||||
Assigned To | |||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.0.12 | ||||||
Summary | 0000103: JMS with JDBC on PostgreSQL | ||||||||
Description |
RSN-94 I am trying to send a message in a queue and I get this exception: 11:30:25,790 admin ERROR org.springframework.web.servlet.DispatcherServlet:404 - Could not complete request org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is com.caucho.jms.JMSExceptionWrapper: null; nested exception is com.caucho.jms.JMSExceptionWrapper: null com.caucho.jms.JMSExceptionWrapper at com.caucho.jms.jdbc.JdbcQueue.send(JdbcQueue.java:163) at com.caucho.jms.session.SessionImpl.send(SessionImpl.java:752) at com.caucho.jms.session.MessageProducerImpl.send(MessageProducerImpl.java:161) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:776) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:762) at org.springframework.jms.core.JmsTemplate$2.doInJms(JmsTemplate.java:739) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:706) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:718) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:737) at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:788) at com.nobelglobe.common.model.security.service.impl.SecurityServiceImpl.sendUserSyncMessage(SecurityServiceImpl.java:176) at com.nobelglobe.common.model.security.service.impl.SecurityServiceImpl.createUser(SecurityServiceImpl.java:145) 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:324) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy14.createUser(Unknown Source) at com.nobelglobe.common.controller.controllers.security.UserController.onSubmit(UserController.java:53) at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:248) at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:243) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:128) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:675) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:623) at org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:384) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:353) at javax.servlet.http.HttpServlet.service(HttpServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:90) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99) at com.nobelglobe.common.controller.filters.logging.LogMdcFilter.doFilterInternal(LogMdcFilter.java:27) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.nobelglobe.common.controller.filters.security.SecurityFilter.doFilterInternal(SecurityFilter.java:119) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:172) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:341) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:467) at com.caucho.util.ThreadPool.run(ThreadPool.java:408) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.NegativeArraySizeException at org.postgresql.jdbc2.PreparedStatement.setBinaryStream(PreparedStatement.java:582) at com.caucho.sql.UserPreparedStatement.setBinaryStream(UserPreparedStatement.java:343) at com.caucho.sql.UserPreparedStatement.setBinaryStream(UserPreparedStatement.java:343) at com.caucho.jms.jdbc.JdbcMessage.send(JdbcMessage.java:289) at com.caucho.jms.jdbc.JdbcQueue.send(JdbcQueue.java:161) ... 53 more I use springframework 1.2.RC 1. My code looks like this: private void sendUserSyncMessage(final User user, final int type) { jmsTemplate.convertAndSend(jmsQueue, user); jmsTemplate.send(jmsQueue, new MessageCreator() { public Message createMessage(Session session) throws JMSException { Message message = session.createObjectMessage(user); return message; } }); } My JMS related configurations on Resin are: <database> <jndi-name>jdbc/nobelservices</jndi-name> <driver type="org.postgresql.Driver"> <url>jdbc:postgresql://localhost:5432/nobelservices</url> [^] <user>nobelservices</user> <password>nobelservices</password> </driver> <prepared-statement-cache-size>8</prepared-statement-cache-size> <max-connections>200</max-connections> <max-idle-time>30s</max-idle-time> </database> <resource jndi-name="jms/factory" type="com.caucho.jms.ConnectionFactoryImpl"> <init> <data-source>jdbc/nobelservices</data-source> </init> </resource> <resource jndi-name="jms/security-queue" type="com.caucho.jms.jdbc.JdbcQueue"> <init> <queue-name>security-queue</queue-name> <data-source>jdbc/nobelservices</data-source> </init> </resource> If I have time, will try this on a newer postgres with a newer driver to see if it's a PostgreSQL related issue. |
||||||||
Additional Information | Red Hat Linux 8, Resin 3.0.12, Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05), PostgreSQL 7.2.1, JDBC driver: pg72jdbc2.jar | ||||||||
Attached Files | |||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
04-14-05 00:00 | user125 | New Issue | |
11-30-05 00:00 | administrator | Fixed in Version | => 3.0.13 |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
39 total queries executed. 29 unique queries executed. |