Problems starting the service: Throwable while attempting to get a new connection: null

1,531 views
Skip to first unread message

Soren Christensen

unread,
Aug 14, 2015, 5:18:01 PM8/14/15
to dcm4che
Hi,
 I have been trying to install dcm4chee for the first time. I am using postgres 8.4 and Centos 6.4 and have followed the set up instructions.
When I start the run script, I get

=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /home/sorenc/DCM4CHEE/dcm4chee-2.17.1-psql

  JAVA: /usr/java/jdk1.5.0_22//bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=128m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.messaging.ServerPeerID=0 -Djavax.xml.transform.TransformerFactory=com.sun.org
.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Djava.awt.headless=true -Dapp.name=dcm4chee -Djava.net.preferIPv4Stack=true -Djava.library.path=/home/sorenc/DCM4CHEE/dcm4chee-2.17.1-psql/bin/native

  CLASSPATH: /home/sorenc/DCM4CHEE/dcm4chee-2.17.1-psql/bin/run.jar:/usr/java/jdk1.5.0_22//lib/tools.jar

=========================================================================

13:01:47,318 INFO  [Server] Starting JBoss (MX MicroKernel)...
... [lots of INFO entries]
...
....
... [then:]
13:01:58,321 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=arrDS' to JNDI name 'java:arrDS'
13:01:58,367 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
13:01:58,388 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=pacsDS' to JNDI name 'java:pacsDS'
13:01:58,411 WARN  [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: org.postgresql.Driver; - nested throwable: (java.lang.ClassNotFoundException: Un
expected error during load of: org.postgresql.Driver, msg=Bad version number in .class file))
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:190)
        at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:619)
....
....


I can
 psql -h localhost    [or  just psql] to connect:
psql (8.4.20)
Type "help" for help.
postgres=# \l
                                  List of databases
   Name    |  Owner   | Encoding |  Collation  |    Ctype    |   Access privileges   
-----------+----------+----------+-------------+-------------+-----------------------
 arrdb     | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 pacsdb    | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
                                                             : postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
                                                             : postgres=CTc/postgres
(5 rows)



Is set
server/default/deploy/pacs-postgres-ds.xml to  <type-mapping>PostgreSQL 8.4</type-mapping> in order to match the options in standardjbosscmp-jdbc.xml
Actually I am using 8.4.4 but I don't think this is a valid entry given standardjbosscmp-jdbc.xml lists only 8.4. If I do write in 8.4.4 I get one step further and get an error "Cannot create timer table", but I am not sure if that is a step forward or backwards...


What am I missing - is there a good way to pin it down?


Thanks in advance!
Soren



fleetwoodfc

unread,
Aug 15, 2015, 10:41:58 AM8/15/15
to dcm4che
Try using at least jdk 1.6

Soren Christensen

unread,
Aug 17, 2015, 3:25:28 PM8/17/15
to dcm...@googlegroups.com
Thank you!
This solved the issue and the server starts with no errors.

I get the below.
I installed jdk1.8.0_51. Should I use something lower?  

Thanks again!
Soren


:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 151 in the jsp file: /inspectMBean.jsp
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
148:             else if (String.valueOf(attrValue).indexOf(sep) == -1)
149:             {
150: %>
151:             <input type="text" name="<%= attrName %>" value="<%= attrValue.replace("\"","&quot;") %>" <%= readonly %>>
152: <%
153:             }
154:             else


An error occurred at line: 151 in the jsp file: /inspectMBean.jsp
The method replace(char, char) in the type String is not applicable for the arguments (String, String)
148:             else if (String.valueOf(attrValue).indexOf(sep) == -1)
149:             {
150: %>
151:             <input type="text" name="<%= attrName %>" value="<%= attrValue.replace("\"","&quot;") %>" <%= readonly %>>
152: <%
153:             }
154:             else


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:220)
	org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:96)
	org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:77)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/kl73OsxcHgk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

Soren Christensen

unread,
Aug 17, 2015, 3:46:55 PM8/17/15
to dcm...@googlegroups.com
Worked with jdk1.6.0_45
Thanks!
Reply all
Reply to author
Forward
0 new messages