This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 109948 - Web Service can not support Folder with SPACE
Summary: Web Service can not support Folder with SPACE
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Dongmei Cao
URL: https://glassfish.dev.java.net/issues...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 04:27 UTC by pocket
Modified: 2009-11-02 11:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Two projects for the issue (71.23 KB, application/octet-stream)
2007-07-18 03:08 UTC, pocket
Details
ISBNBook.java (4.84 KB, text/plain)
2007-10-01 16:22 UTC, Milan Kuchtiak
Details
FileNotFoundException from toplink (59.53 KB, text/plain)
2007-10-30 13:09 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pocket 2007-07-17 04:27:17 UTC
I develop a web service project use another project as library.
All the projects' folder name has SPACE.
The service does not work and the error is:

javax.ejb.EJBException
......
Caused by: java.lang.ExceptionInInitializerError
        at test.NewWebServiceFromWSDL.isbnInsert(NewWebServiceFromWSDL.java:30)
        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:597)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2884)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3975)
        at com.sun.ejb.containers.WebServiceInvocationHandler.invoke (WebServiceInvocationHandler.java:189)
        ... 62 more
Caused by: Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b53-rc (06/27/2007))):
oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: EJBClassLoader :
urlSet = [URLEntry :
file:/C:/Documents%20and%20Settings/Liang%20ZHANG/My%20Documents/GoldenPig_v2_Caesar/CAESAR_NB_PRJ_NB6M10/CAESAR_Service_Test/build/jar/,
URLEntry : file:/C:/Program%20Files/glassfish-v2-b53/domains/domain1/generated/ejb/j2ee-modules/CAESAR_Service_Test/, 
........
file:/C:/Documents%20and%20Settings/Liang%20ZHANG/My%20Documents/GoldenPig_v2_Caesar/CAESAR_NB_PRJ_NB6M10/CAESAR_Service_Test/build/jar/toplink-
essentials-agent.jar, URLEntry :
file:/C:/Documents%20and%20Settings/Liang%20ZHANG/My%20Documents/GoldenPig_v2_Caesar/CAESAR_NB_PRJ_NB6M10/CAESAR_Service_Test/build/jar/toplink-essentials.jar]
doneCalled = false
 Parent -> EJBClassLoader :
urlSet = []
doneCalled = false
 Parent -> java.net.URLClassLoader@578dfb
Internal Exception: java.io.FileNotFoundException:
C:\Documents%20and%20Settings\Liang%20ZHANG\My%20Documents\GoldenPig_v2_Caesar\CAESAR_NB_PRJ_NB6M10\CAESAR_Service_Test\build\jar\CAESAR_Entity_JPA.jar
(???????????)
        at
oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
        at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives
(PersistenceUnitProcessor.java:252)
        at
oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:231)
        at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize (JavaSECMPInitializer.java:250)
        at
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:140)
        at javax.persistence.Persistence.createEntityManagerFactory (Persistence.java:96)
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:73)
        at com.ginp.gp.caesar.content.ContentMedia.<clinit>(ContentMedia.java:186)
        ... 72 more 
......

The ?????? is the Chinese characters means "System can not find the path.". When I move all the projects to the folder
whose name do not has the SPACE, the service works.
Comment 1 Milan Kuchtiak 2007-07-17 15:58:15 UTC
From the error description I see no relation to web services support in Netbeans.
Perhaps the server issue.
Please, atach the zipped project(s) to see what's the problem.
Also append the server type (SJSAS or Tomcat) and server version.
Comment 2 pocket 2007-07-18 03:06:31 UTC
I use NB6M10. So the server is Sun server.

I attach my projects. 
You can put these projects into the folder whose name does not have "SPACE" and test the service "ISBN_ServiceService"
in project CAESAR_Service_Test. It works.
Then put these projects into the folder whose name has "SPACE" and test the service "ISBN_ServiceService" in project
CAESAR_Service_Test. You can see the exceptions.
Comment 3 pocket 2007-07-18 03:08:17 UTC
Created attachment 45276 [details]
Two projects for the issue
Comment 4 Milan Kuchtiak 2007-10-01 16:18:54 UTC
From the exception  thrown by GlassFish looks like some GlassFish Java Persistant API problem.
I already reported a GlassFish issue ;
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3712

Passing also to JPA experts to evaluate.
Comment 5 Milan Kuchtiak 2007-10-01 16:21:30 UTC
A web service is doing nothing more then trying to instantiate the following class from java library module.
See tha attachment : ISBNBook
Comment 6 Milan Kuchtiak 2007-10-01 16:22:53 UTC
Created attachment 49902 [details]
ISBNBook.java
Comment 7 David Konecny 2007-10-30 13:09:41 UTC
Created attachment 51998 [details]
FileNotFoundException from toplink
Comment 8 David Konecny 2007-10-30 13:35:51 UTC
This is not NetBeans problem. It is Toplink problem which was filed as

 https://glassfish.dev.java.net/issues/show_bug.cgi?id=3712

Keeping this issue open for tracking purpose.

mkuchtiak, the issue you filed for glassfish - could you add comment there please (because I cannot edit your report) to
change persistence.xml in JPA_109948 project to any local available database (in NB6b2 eg. sample) plus change Table
Generation Strategy to Drop and Create and then the issue is easily reproducible with provided projects.

I also attached log file with the same exception.
Comment 9 Dongmei Cao 2008-11-19 08:08:07 UTC
low priority bug. Fix as time permits.
Comment 10 Quality Engineering 2009-11-02 11:14:02 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX