updatecenter2
  1. updatecenter2
  2. UPDATECENTER2-2172

Update Tool changes empty files in package, breaks example code

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: updatetool
    • Labels:
      None
    • Environment:

      Windows XP
      Update Tool 2.3.2 in Java EE SDK 6u2 b33

      Description

      The Java EE 6 Tutorial is installed as an IPS package as part of the Java EE 6 SDK using Update Tool 2.3.2. We've recently had reports of some of our examples breaking with the following exception:
      Caused by: org.jboss.weld.xml.WeldXmlException: WELD-001202 Error parsing org.xml.sax.SAXParseException: Premature end of file.
      at org.jboss.weld.xml.BeansXmlParser.getDocument(BeansXmlParser.java:103)
      at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:85)
      at org.jboss.weld.bootstrap.BeanDeployment.parseBeansXml(BeanDeployment.java:107)
      at org.jboss.weld.bootstrap.BeanDeployment.<init>(BeanDeployment.java:85)
      at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:204)
      at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:181)
      at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:302)
      at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:162)
      ... 30 more

      We traced the problem back to how Update Tool installs empty files in the Tutorial package.

      These examples use CDI, which requires an empty file named beans.xml packaged as part of the example. In our Subversion workspace, this is a 0 byte file. When it is installed as part of the IPS package, however, it is a 1 byte file, and causes the "Premature end of file" error above when the example is deployed.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ian Evans
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: