Re: [wiki2xhtml-users] Nullpointer Exception whilegenerating doc_de.wiki, doc_design_de.wiki and li
Brought to you by:
granjow
From: Axel B. <tow...@gm...> - 2009-04-07 07:50:15
|
Hi Simon, Simon Eugster schrieb: > Hi Axel, > > Could you try to use javac with the argument «-source 1.6» then? It > seems to believe that the source code is Java 1.4 or so. > I have updated the build script too. > > Simon i'm sorry, but it is the same failure with your new option. But there are not so much error messages. abirndt@UBUNTUNB:/media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current$ java -jar wiki2xhtml.jar wiki2xhtml 3.4b3 (Feb 26, 2008) Öffne GUI. Dateien: /media/suse_home/apache/lxpool034.wob.vw.vwg/websysteme/Wiki_Quelltexte/WAS_6.1_EJB_3.0_Feature_Pack.wiki doc-design-de.txt Exception in thread "main" java.lang.NullPointerException at program.GUI.updateSettings(GUI.java:153) at program.GUI.gui(GUI.java:1510) at program.UserInterface.runGui(UserInterface.java:81) at program.Handler_Arguments.handleCommandLineArguments(Handler_Arguments.java:141) at program.UserInterface.main(UserInterface.java:139) ------------------------------------------------------------- java -version java version "1.6.0_06" Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode) ==> which runtime of the java jvm do you using? Do you use the same one? Error Messages while Ant is running: ---------------------------------------------------------------------------------------- abirndt@UBUNTUNB:/media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current$ ./build.sh Generating .po files ... .................... fertig. ................... fertig. .................... fertig. ................... fertig. ................... fertig. ................... fertig. .................... fertig. ................... fertig. ................... fertig. ................... fertig. .................... fertig. Generating l10n class files ... Compiling wiki2xhtml ... Annotation processing got disabled, since it requires a 1.6 compliant JVM ---------- 1. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nFactory.java (at line 114) public static I18n getI18n(final Class clazz) ^^^^^ Class is a raw type. References to generic type Class<T> should be parameterized ---------- 2. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nFactory.java (at line 125) public static I18n getI18n(final Class clazz, final Locale locale) ^^^^^ Class is a raw type. References to generic type Class<T> should be parameterized ---------- 3. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nFactory.java (at line 160) public static I18n getI18n(final Class clazz, final Locale locale, final int flags) ^^^^^ Class is a raw type. References to generic type Class<T> should be parameterized ---------- 4. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nFactory.java (at line 189) public static I18n getI18n(final Class clazz, final String bundleName) ^^^^^ Class is a raw type. References to generic type Class<T> should be parameterized ---------- 5. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nFactory.java (at line 200) public static I18n getI18n(final Class clazz, final String bundleName, final Locale locale) ^^^^^ Class is a raw type. References to generic type Class<T> should be parameterized ---------- 6. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nFactory.java (at line 211) public static I18n getI18n(final Class clazz, final String bundleName, final Locale locale, int flags) ^^^^^ Class is a raw type. References to generic type Class<T> should be parameterized ---------- ---------- 7. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nCache.java (at line 41) private final Map i18nByPackage = Collections.synchronizedMap(new HashMap()); ^^^ Map is a raw type. References to generic type Map<K,V> should be parameterized ---------- 8. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nCache.java (at line 41) private final Map i18nByPackage = Collections.synchronizedMap(new HashMap()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: Unchecked invocation synchronizedMap(Map) of the generic method synchronizedMap(Map<K,V>) of type Collections ---------- 9. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/commo ns/i18n/I18nCache.java (at line 41) private final Map i18nByPackage = Collections.synchronizedMap(new HashMap()); ^^^^^^^^^^^^^ Type safety: The expression of type HashMap needs unchecked conversion to conform to Map<K,V> ---------- 10. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 41) private final Map i18nByPackage = Collections.synchronizedMap(new HashMap()); ^^^^^^^ HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized ---------- 11. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 58) List list = (List)i18nByPackage.get(packageName); ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 12. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 58) List list = (List)i18nByPackage.get(packageName); ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 13. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 61) for (Iterator it = list.iterator(); it.hasNext();) { ^^^^^^^^ Iterator is a raw type. References to generic type Iterator<E> should be parameterized ---------- 14. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 74) List list; ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 15. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 76) list = (List)i18nByPackage.get(packageName); ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 16. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 78) list = Collections.synchronizedList(new ArrayList(2)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: Unchecked invocation synchronizedList(List) of the generic method synchronizedList(List<T>) of type Collections ---------- 17. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 78) list = Collections.synchronizedList(new ArrayList(2)); ^^^^^^^^^^^^^^^^ Type safety: The expression of type ArrayList needs unchecked conversion to conform to List<T> ---------- 18. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 78) list = Collections.synchronizedList(new ArrayList(2)); ^^^^^^^^^ ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized ---------- 19. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 79) i18nByPackage.put(packageName, list); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: The method put(Object, Object) belongs to the raw type Map. References to generic type Map<K,V> should be paramet erized ---------- 20. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 82) list.add(i18n); ^^^^^^^^^^^^^^ Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized ---------- 21. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 87) List[] lists; ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 22. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 89) lists = (List[])i18nByPackage.values().toArray(new List[0]); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: The method toArray(Object[]) belongs to the raw type Collection. References to generic type Collection<E> should be parameterized ---------- 23. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 92) List list = lists[i]; ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 24. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nCache.java (at line 94) for (Iterator it2 = list.iterator(); it2.hasNext();) { ^^^^^^^^ Iterator is a raw type. References to generic type Iterator<E> should be parameterized ---------- ---------- 25. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 46) List i18ns = Collections.synchronizedList(new ArrayList()); ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 26. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 46) List i18ns = Collections.synchronizedList(new ArrayList()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: Unchecked invocation synchronizedList(List) of the generic method synchronizedList(List<T>) of type Collections ---------- 27. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 46) List i18ns = Collections.synchronizedList(new ArrayList()); ^^^^^^^^^^^^^^^ Type safety: The expression of type ArrayList needs unchecked conversion to conform to List<T> ---------- 28. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 46) List i18ns = Collections.synchronizedList(new ArrayList()); ^^^^^^^^^ ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized ---------- 29. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 49) List localeChangeListeners = new ArrayList(); ^^^^ List is a raw type. References to generic type List<E> should be parameterized ---------- 30. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 49) List localeChangeListeners = new ArrayList(); ^^^^^^^^^ ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized ---------- 31. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 78) i18ns.add(i18n); ^^^^^^^^^^^^^^^ Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized ---------- 32. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 100) for (Iterator it = i18ns.iterator(); it.hasNext();) { ^^^^^^^^ Iterator is a raw type. References to generic type Iterator<E> should be parameterized ---------- 33. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 120) localeChangeListeners.add(listener); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized ---------- 34. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 140) localeChangeListeners.add(new WeakLocaleChangeListener(listener)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized ---------- 35. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 184) listeners = (LocaleChangeListener[])localeChangeListeners.toArray(new LocaleChangeListener[0]); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: The method toArray(Object[]) belongs to the raw type List. References to generic type List<E> should be parameter ized ---------- 36. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 196) private WeakReference reference; ^^^^^^^^^^^^^ WeakReference is a raw type. References to generic type WeakReference<T> should be parameterized ---------- 37. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 200) reference = new WeakReference(listener); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety: The constructor WeakReference(Object) belongs to the raw type WeakReference. References to generic type WeakRefer ence<T> should be parameterized ---------- 38. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/I18nManager.java (at line 200) reference = new WeakReference(listener); ^^^^^^^^^^^^^ WeakReference is a raw type. References to generic type WeakReference<T> should be parameterized ---------- ---------- 39. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/EmptyResourceBundle.java (at line 30) public Enumeration getKeys() ^^^^^^^^^^^ Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized ---------- 40. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/EmptyResourceBundle.java (at line 30) public Enumeration getKeys() ^^^^^^^^^^^ Type safety: The return type Enumeration for getKeys() from the type EmptyResourceBundle needs unchecked conversion to conform to Enumeration<String> from the type ResourceBundle ---------- 41. WARNING in /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/./org/xnap/comm ons/i18n/EmptyResourceBundle.java (at line 40) private static class EmptyStringEnumeration implements Enumeration ^^^^^^^^^^^ Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized ---------- 41 problems (41 warnings)Creating .jar file ... Buildfile: build.xml [jar] Building jar: /media/suse_home/abirndt/Downloads/wiki2xhtml/wiki2xhtml_Subversion_Checkout/wiki2xhtml-current/wiki 2xhtml.jar BUILD SUCCESSFUL Total time: 2 seconds |