[jbosstools-issues] [JBoss JIRA] Commented: (JBDS-830) Spaces in project path causes JTA exception

Olivier Cailloux (JIRA) jira-events at lists.jboss.org
Mon Dec 14 12:44:30 EST 2009


    [ https://jira.jboss.org/jira/browse/JBDS-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12499832#action_12499832 ] 

Olivier Cailloux commented on JBDS-830:
---------------------------------------

Just in case it is useful, the bug is still there with eclipse Hibernate tools 3.2.4.v200909151014R-H192-GA, and does not seem to be related to Seam. Well, I guess it is the same bug.

I don't use seam, but the rest is identical to the post here above. The bug is triggered when I try to open the console configuration bound to a project located in a folder whose path contains a space.

The stack trace reported is hereunder, and attached as an image.

org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
Could not create JPA based Configuration
  <No message>
  java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException: <no message>
    java.lang.reflect.InvocationTargetException
    javax.persistence.PersistenceException: java.lang.IllegalArgumentException: Unable to visit JAR file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes. Cause: Illegal character in path at index 36: file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes
    java.lang.IllegalArgumentException: Unable to visit JAR file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes. Cause: Illegal character in path at index 36: file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes
    java.lang.IllegalArgumentException: Unable to visit JAR file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes. Cause: Illegal character in path at index 36: file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes
    Unable to visit JAR file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes. Cause: Illegal character in path at index 36: file:/home/olivier/Logiciels/eclipse workspace/residences/target/classes


> Spaces in project path causes JTA exception
> -------------------------------------------
>
>                 Key: JBDS-830
>                 URL: https://jira.jboss.org/jira/browse/JBDS-830
>             Project: JBoss Developer Studio
>          Issue Type: Bug
>          Components: seam
>    Affects Versions: 2.1.0
>            Reporter: Ondrej Skutka
>            Priority: Critical
>             Fix For: 3.0.0.M4
>
>
> Steps to reproduce:
> 1) Create a new Seam project with database
> 2) Go to Hibernate Configurations view
> 3) Unfold the configuration
> following exception is thrown:
> org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
> Could not create JPA based Configuration
>   <No message>
>   java.lang.reflect.InvocationTargetException
>     java.lang.reflect.InvocationTargetException: <no message>
>     java.lang.reflect.InvocationTargetException
>     javax.persistence.PersistenceException: java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes
>     java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes
>     java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes
>     Unable to visit JAR file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/jbossqa/workspace.jbds/ear220CR2v2-ejb/build/classes
> Furturemore you cannot generate seam entities, because of "Couldn't connect to Database".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list