You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/11/03 16:55:51 UTC

[Bug 57176] New: CTDefinedNamesImpl.getDefinedNameList causes ClassNotFoundException

https://issues.apache.org/bugzilla/show_bug.cgi?id=57176

            Bug ID: 57176
           Summary: CTDefinedNamesImpl.getDefinedNameList causes
                    ClassNotFoundException
           Product: POI
           Version: 3.10-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: jan.plesingr@aeb.com

/* my test code */

public class TestPOI {

    public static void main(String[] args) throws Exception {
        try (InputStream in = new FileInputStream("d:/tmp/TEST.xlsx")) {
            XSSFWorkbook workbook = new XSSFWorkbook(in);
            CTDefinedNames definedNames =
workbook.getCTWorkbook().getDefinedNames();
            List<CTDefinedName> definedNameList =
definedNames.getDefinedNameList();
            for (CTDefinedName defName : definedNameList) {
                System.out.println(defName.getName() + ": " +
defName.getStringValue());
            }
        }
    }

}

/* result when calling definedNames.getDefinedNameList() */

Exception in thread "main" java.lang.NoClassDefFoundError:
org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTDefinedNamesImpl$1DefinedNameList
    at
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTDefinedNamesImpl.getDefinedNameList(Unknown
Source)
    at test.poi.TestPOI.main(TestPOI.java:25)
Caused by: java.lang.ClassNotFoundException:
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTDefinedNamesImpl$1DefinedNameList
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57176] CTDefinedNamesImpl.getDefinedNameList causes ClassNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57176

Jan <ja...@aeb.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WORKSFORME

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57176] CTDefinedNamesImpl.getDefinedNameList causes ClassNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57176

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Please see this FAQ Entry - http://poi.apache.org/faq.html#faq-N10025

We'll need a small test file showing the problem if we're to get that class
into the minimal poi-ooxml-schemas jar

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57176] CTDefinedNamesImpl.getDefinedNameList causes ClassNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57176

--- Comment #4 from Jan <ja...@aeb.com> ---
Thanks for the link/hint, I think it will be OK to use the full jar.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57176] CTDefinedNamesImpl.getDefinedNameList causes ClassNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57176

--- Comment #2 from Jan <ja...@aeb.com> ---
Created attachment 32184
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32184&action=edit
File to reproduce the bug

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57176] CTDefinedNamesImpl.getDefinedNameList causes ClassNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57176

--- Comment #3 from Jan <ja...@aeb.com> ---
test file - see attachment

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 57176] CTDefinedNamesImpl.getDefinedNameList causes ClassNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57176

--- Comment #5 from Nick Burch <ap...@gagravarr.org> ---
Unit test added in r1636634, which will see the class added to future small
poi-ooxml-schemas jars

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org