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 150164 - GFESB: Build and eventually deploy of projects fail with "[Fatal Error] catalog.xml:1:1: Premature end of file."
Summary: GFESB: Build and eventually deploy of projects fail with "[Fatal Error] catal...
Status: REOPENED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P1 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-15 07:50 UTC by us159569
Modified: 2010-02-11 20:15 UTC (History)
3 users (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 us159569 2008-10-15 07:50:28 UTC
Filing this based on the below issue:

##########################
https://open-esb.dev.java.net/issues/show_bug.cgi?id=729

Clean and build 'DPL_OneWayEJBService1' and 'RedeliveryDeleteBpel' projects
present in attached zip. Create a new comp app and add above mentioned two
projects as jbi modules. Now try to 'clean and build' comp app and notice the
following error "[Fatal Error] catalog.xml:1:1: Premature end of file." in
jbi-clean-build output. Even though it says, 'Build Successful' at the end, an
attempt to deploy compapp fails with the same fatal exception.


###########(build.xml(jbi-clean-build)):
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
init-deploy:
deps-clean:
JBI/QE pre-init patch: generating C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1/nbproject/private/private.properties
patch_jbi_project:
init:
deps-clean:
Deleting directory C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build
Deleting directory C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\dist
clean:
init:
Deleting directory C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\RedeliveryDeleteBpel\build
clean:
do-clean:
post-clean:
clean:
deps-jar:
init:
Created dir: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\RedeliveryDeleteBpel\build
C:/Documents and Settings/Administrator/My
Documents/NetBeansProjects/RedeliveryDeleteBpel/src/RedeliveryDelete.bpel:20: 16
WARNING: The multipleRecordsPerFile attribute indicates multiple-record
processing, but no record delimiter is defined. If the records are intended to
be read from a file, define the recordDelimiter attribute, or define
maxBytesPerRecord to process fixed-length records. If the records are intended
to be written to a file, specify the recordDelimiter attribute or set addEOL
attribute to 'true' to demarcate the records.

Copying 4 files to C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\RedeliveryDeleteBpel\build
Building jar: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\RedeliveryDeleteBpel\build\SEDeployment.jar
dist_se:
Expanding: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\RedeliveryDeleteBpel\build\SEDeployment.jar into
C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\src\jbiServiceUnits\RedeliveryDeleteBpel
Moving 1 file to C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\src\jbiServiceUnits\RedeliveryDeleteBpel
Moving 1 file to C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\src\jbiServiceUnits\META-INF\RedeliveryDeleteBpel
deps-javaee-jar:
JBI/QE pre-init patch: generating C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1/nbproject/private/private.properties
patch_jbi_project:
init:
deps-jar:
wsimport-init:
Created dir: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\generated\wsimport\service
Created dir: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\generated\wsimport\binaries
Created dir: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\jar
wsimport-service-check-OneWayEJBService1:
wsimport-service-OneWayEJBService1:
Consider using <depends>/<produces> so that wsimport won't do unnecessary
compilation
command line: wsimport -d "C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\generated\wsimport\binaries"
-extension -keep -s "C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\generated\wsimport\service"
-catalog "C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\catalog.xml" -verbose
"C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1/src/conf/xml-resources/web-services/OneWayEJBService1/wsdl/OneWayEJBService1WSDL.wsdl"
parsing WSDL...


generating code...

org\netbeans\j2ee\wsdl\onewayejbservicewsdl\OneWayEJBService1WSDLService.java
org\netbeans\j2ee\wsdl\onewayejbservicewsdl\OneWayEJBServiceWSDLPortType.java

compiling code...

javac -d C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\generated\wsimport\binaries
-classpath
E:\gfesb\netbeans\java2\ant\lib\ant-antlr.jar;E:\gfesb\netbeans\java2\ant\lib\ant-apache-bcel.jar;E:\gfesb\netbeans\java2\ant\lib\ant-apache-bsf.jar;E:\gfesb\netbeans\java2\ant\lib\ant-apache-log4j.jar;E:\gfesb\netbeans\java2\ant\lib\ant-apache-oro.jar;E:\gfesb\netbeans\java2\ant\lib\ant-apache-regexp.jar;E:\gfesb\netbeans\java2\ant\lib\ant-apache-resolver.jar;E:\gfesb\netbeans\java2\ant\lib\ant-commons-logging.jar;E:\gfesb\netbeans\java2\ant\lib\ant-commons-net.jar;E:\gfesb\netbeans\java2\ant\lib\ant-jai.jar;E:\gfesb\netbeans\java2\ant\lib\ant-javamail.jar;E:\gfesb\netbeans\java2\ant\lib\ant-jdepend.jar;E:\gfesb\netbeans\java2\ant\lib\ant-jmf.jar;E:\gfesb\netbeans\java2\ant\lib\ant-jsch.jar;E:\gfesb\netbeans\java2\ant\lib\ant-junit.jar;E:\gfesb\netbeans\java2\ant\lib\ant-launcher.jar;E:\gfesb\netbeans\java2\ant\lib\ant-netrexx.jar;E:\gfesb\netbeans\java2\ant\lib\ant-nodeps.jar;E:\gfesb\netbeans\java2\ant\lib\ant-starteam.jar;E:\gfesb\netbeans\java2\ant\lib\ant-stylebook.jar;E:\gfesb\netbeans\java2\ant\lib\ant-swing.jar;E:\gfesb\netbeans\java2\ant\lib\ant-testutil.jar;E:\gfesb\netbeans\java2\ant\lib\ant-trax.jar;E:\gfesb\netbeans\java2\ant\lib\ant-weblogic.jar;E:\gfesb\netbeans\java2\ant\lib\ant.jar;C:\jdev\paths\jbidev\jbi\shasta\engines\Bpel\bpel1160;E:\gfesb\netbeans\mobility8\modules\ext\jakarta-oro-2.0.8.jar;E:\gfesb\netbeans\mobility8\modules\ext\commons-net-1.4.1.jar;E:\gfesb\netbeans\ide9\modules\ext\jsch-0.1.24.jar;e:\gfesb\netbeans\platform8\lib\boot.jar;e:\gfesb\netbeans\platform8\lib\org-openide-modules.jar;e:\gfesb\netbeans\platform8\lib\org-openide-util.jar;c:/java/jdk1.6.0_04\lib\dt.jar;c:/java/jdk1.6.0_04\lib\tools.jar
-Xbootclasspath/p:C:\Java\jdk1.6.0_04\jre\lib\endorsed\javaee.jar;C:\Java\jdk1.6.0_04\jre\lib\endorsed\javaee.jar
C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\generated\wsimport\service\org\netbeans\j2ee\wsdl\onewayejbservicewsdl\OneWayEJBService1WSDLService.java
C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\generated\wsimport\service\org\netbeans\j2ee\wsdl\onewayejbservicewsdl\OneWayEJBServiceWSDLPortType.java

wsimport-service-generate:
Copying 2 files to C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\jar\META-INF
wsimport-service-compile:
Compiling 2 source files to C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\jar
Compiling 1 source file to C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\jar
Copying 1 file to C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\build\jar
compile:
library-inclusion-in-archive:
Created dir: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\dist
Building jar: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\dist\DPL_OneWayEJBService1.jar
dist:
Expanding: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\dist\DPL_OneWayEJBService1.jar
into C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\src\jbiServiceUnits\DPL_OneWayEJBService1
Expanding: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\DPL_OneWayEJBService1\dist\DPL_OneWayEJBService1.jar
into C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\src\jbiServiceUnits\META-INF\DPL_OneWayEJBService1
Starting build on JavaEE Project:../DPL_OneWayEJBService1
jbi-build:
Created dir: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\build\META-INF
Building jar: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\build\BCDeployment.jar
Duplicate PortType:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBServiceWSDLPortType
Duplicate Binding:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1WSDLBinding
Duplicate ParnerLinkType:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1Plink
Duplicate PortType:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBServiceWSDLPortType
Duplicate Binding:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1WSDLBinding
Duplicate ParnerLinkType:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1Plink
Duplicate Service:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1WSDLService
Duplicate Port:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1WSDLService.OneWayEJBService1WSDLPort
Duplicate Service:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1WSDLService
Duplicate Port:
{http://j2ee.netbeans.org/wsdl/OneWayEJBServiceWSDL}OneWayEJBService1WSDLService.OneWayEJBService1WSDLPort
Generating Service Engine Service Units...
Resolving connections...
Writing connections out to connections.xml...
Generating Service Assembly jbi.xml...
Merging component projects' catalogs...
[Fatal Error] catalog.xml:1:1: Premature end of file.
Exception: A processing error occurred; org.xml.sax.SAXParseException: Premature
end of file.
Generating Binding Component Service Units...
  creating sun-http-binding.jar
  creating sun-file-binding.jar
Creating/Updating CASA...
Operation aborted due to : java.io.FileNotFoundException: C:\Documents and
Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\src\jbiServiceUnits\catalog.xml
(The system cannot find the file specified)
Operation aborted due to : java.io.FileNotFoundException: C:\Documents and
Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\src\jbiServiceUnits\catalog.xml
(The system cannot find the file specified)
Filtering Java EE Endpoints...
Deleting: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\build\BCDeployment.jar
Created dir: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\dist
Building jar: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\dist\testing_redilivery_jbi.zip
Building jar: C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\testing_redilivery_jbi\dist\testing_redilivery_jbi.zip
jbi-clean-build:
BUILD SUCCESSFUL (total time: 11 seconds)

###########

------- Additional comments from us159569 Tue Oct 7 07:14:16 +0000 2008 -------

Created an attachment (id=361)
projects to reproduce

------- Additional comments from gbadescu Thu Oct 9 21:57:09 +0000 2008 -------

Please try and reproduce

------- Additional comments from vinayram Tue Oct 14 20:18:17 +0000 2008 -------

This is a netbeans issue and not bpel runtime. Please file this bug against 
netbeans.

------- Additional comments from deepakhp Wed Oct 15 06:27:53 +0000 2008 -------

Assigned to Uttam for verification

#########################
Comment 1 Petr Blaha 2008-10-15 09:11:38 UTC
Is it consider as stopper in NB 6.5 RC1? Please, evaluate the bug ASAP. Thanks
Comment 2 Sergey Lunegov 2008-10-15 09:47:42 UTC
Petr, it's related to GF ESB and not related to NB 6.5.
Comment 3 Tientien Li 2008-10-15 18:03:30 UTC
The project deployed OK. The [Fatal Error] message in the ant build log was generated by the xml parser complaining 
about an empty catalog file in the bpel service unit, RedeliveryDeleteBpel. The compapp build process was successful in 
generating the SA. I added a warning message to indicate which invalid catalog file was skipped:

Merging component projects' catalogs...
[Fatal Error] :-1:-1: Premature end of file.
Skip Invalid SU Catalog:
    D:\nbugs\CompositeApp1\src\jbiServiceUnits\META-INF\RedeliveryDeleteBpel\catalog.xml

Sergey, can you have the bpel project team take a look and see why the empty catalog.xml was generated.

Thanks,

--
Tientien Li
Comment 4 Tientien Li 2008-10-15 18:13:30 UTC
In the last message, what I tried to say was it build OK, but deployment failed. The deployment error was again caused 
by the empty catalog file in bpel SU.

    * Component: sun-bpel-engine
      ERROR: (BPJBI-4001:BPELSE) BPJBI-7004:Service unit CompositeApp1-RedeliveryDeleteBpel failed to load deployment 
C:\openesb\glassfish-v2-ur2-b04-patch-20080819\domains\domain1\jbi\service-assemblies\CompositeApp1\CompositeApp1-
RedeliveryDeleteBpel\sun-bpel-engine : BPJBI-6024:Error while loading BPEL file C:\openesb\glassfish-v2-ur2-b04-patch-
20080819\domains\domain1\jbi\service-assemblies\CompositeApp1\CompositeApp1-RedeliveryDeleteBpel\sun-bpel-
engine\RedeliveryDelete.bpel, Exception details are BPMOD-7001:Parsing error encountered in file :C:\openesb\glassfish-
v2-ur2-b04-patch-20080819\domains\domain1\jbi\service-assemblies\CompositeApp1\CompositeApp1-RedeliveryDeleteBpel\sun-
bpel-engine\META-INF\catalog.xml, message :Premature end of file.
    * Component: sun-javaee-engine


Comment 5 Kirill Sorokin 2008-10-16 15:50:50 UTC
Point taken. The catalog packaging routine threw an exception when it encountered an invalid stale entry in the catalog.
Comment 6 Kirill Sorokin 2008-10-16 16:26:50 UTC
Fixed. The catalog packaging routine now properly avoids failing when it encounters an invalid entry. A warning message
is displayed instead. Likewise if the catalog cannot be created at the build will fail.

Changeset in {soa-dev}: http://hg.netbeans.org/soa-dev/rev/0fbcc71ca827
Comment 7 schmandt 2008-10-21 05:13:44 UTC
i was able to build the 2 bpel projects and then build and
and deploy the comp app OK on 1019 build.
Comment 8 us159569 2008-10-21 07:24:05 UTC
This bug was filed based on QE automated test failures. There are no more failures related to this bug in the
20081017-1525 - WinXP build run of QE automated tests. So, closing this bug as it is resolved.
Comment 9 GKSONG 2010-02-11 20:15:27 UTC
Hi,

  My environment re-generated the same situation.
  Could you give the correction procedure?

Thanks