-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Illegal character in URL
PostPosted: Thu Jul 27, 2006 5:40 pm 
Newbie

Joined: Thu Jul 27, 2006 5:33 pm
Posts: 6
I am having the connection.url = jdbc:oracle:thin:@ormdv101.flowserve.net:1562:viscfg


I am getting exception with message "Illegal character in URL"


The mapping file....

<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-
3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.url">jdbc:oracle:thin:@ormdv101.flowserve.net:1562:viscfg</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.username">xyz</property>
<property name="connection.password">123</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<mapping resource="keste/flowserve/pumps/model/datasource/beans/fs_cz_diagram_names.hbm.xml"/>
<mapping resource="keste/flowserve/pumps/model/datasource/beans/fs_cz_diagrams.hbm.xml"/>
<mapping resource="keste/flowserve/pumps/model/datasource/beans/fs_cz_diagram_attributes.hbm.xml"/>
<mapping resource="keste/flowserve/pumps/model/datasource/beans/fs_cz_diagram_attribute_values.hbm.xml"/>
</session-factory>
</hibernate-configuration>




I am getting exception with message "Illegal character in URL"



The exception is .....

org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1296)
at keste.flowserve.pumps.model.datasource.HibernateUtil.<clinit>(HibernateUtil.java:15)
at keste.flowserve.pumps.model.datasource.DiagramApi.getDiagramName(DiagramApi.java:17)
at keste.flowserve.pumps.model.datasource.DiagramApiTest.testGetDiagramName(DiagramApiTest.java:12)
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:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:111)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
Caused by: org.dom4j.DocumentException: Illegal character in URL Nested exception: Illegal character in URL
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
... 20 more


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.