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 98452 - Building SQL SE project passes with java.net.MalformedURLException: & jbi.xml is missing
Summary: Building SQL SE project passes with java.net.MalformedURLException: & jbi.xml...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: SQL Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: Pavan Veeravarapu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 12:27 UTC by umeshvats
Modified: 2007-04-02 10:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description umeshvats 2007-03-21 12:27:13 UTC
Not able to build SQL SE project through IDE. It 
gives "java.net.MalformedURLException: unknown protocol: c" exception. Also 
jbi.xml is missing from META-INF folder.

Steps to reproduce:-
---------------------
1> Create a new SQL SE project.
2> Edit the connectivityInfo.xml file with proper jndi name.
3> add a sql file with statement "select * from customer"
4> build the project.

Expected result:-
------------------
1> build should successful without any error or exception.

Actual result:-
---------------
1> build passes with following exception:-

--------------
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init-taskdefs:
init:
pre-dist:
Using Database URL value: jdbc:derby://localhost:1527/sample
jndi value: jdbc/QEDatabasePool
java.net.MalformedURLException: unknown protocol: c
        at java.net.URL.<init>(URL.java:574)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity
(XMLEntityManager.java:650)
        at 
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion
(XMLVersionDetector.java:186)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:771)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
(XMLParser.java:107)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse
(DOMParser.java:225)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse
(DocumentBuilderImpl.java:283)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)
        at org.netbeans.modules.sql.project.anttasks.SQLMapReader.parse
(SQLMapReader.java:55)
        at org.netbeans.modules.sql.project.anttasks.JBIFileWriter.writeJBI
(JBIFileWriter.java:55)
        at org.netbeans.modules.sql.project.anttasks.GenerateWSDL.execute
(GenerateWSDL.java:183)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
(BridgeImpl.java:256)
        at org.apache.tools.ant.module.run.TargetExecutor.run
(TargetExecutor.java:438)
        at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:129)
dist_se:
Building jar: C:\Documents and Settings\uv198593\My 
Documents\NetBeansProjects\SQLApp1\build\SEDeployment.jar
do-dist:
post-dist:
dist:
BUILD SUCCESSFUL (total time: 0 seconds)
---------------------

netbeans build:-
-----------------
NetBeans IDE Dev (Build 200703191900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_US (nb); Cp1252
Comment 1 Venkat Srinivasan 2007-03-21 15:28:10 UTC
Pavan, please look into this
Comment 2 Pavan Veeravarapu 2007-03-29 13:11:08 UTC
JDK 1.6 is giving the error.

DocumentBuilder().parse(String URI);
the above step is giving the error of the directory path contains spaces in it.
Resolved.
Comment 3 umeshvats 2007-04-02 10:50:08 UTC
Verified in following build.

NetBeans IDE Dev (Build 200703291800)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Windows XP version 5.1 running on x86
en_US (nb); Cp1252