Java Question BADoclet Issue

Discussion in 'Libraries developers questions' started by jahswani, Jul 5, 2015.

  1. jahswani

    jahswani Active Member Licensed User

    I'm having this issue while compiling my lib.Not sure to know where is the real PB.
    Code:
    Starting step: Compiling Java code.
    Completed successfully.
    Starting 
    step: Creating jar file.
    Completed successfully.
    Starting 
    step: Creating XML file.
    java.lang.NullPointerException
       at BADoclet.writeClass(BADoclet.java:
    175)
       at BADoclet.start(BADoclet.java:
    376)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
       at java.lang.reflect.Method.invoke(Method.java:
    497)
       at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:
    310)
       at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:
    189)
       at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:
    366)
       at com.sun.tools.javadoc.Start.begin(Start.java:
    219)
       at com.sun.tools.javadoc.Start.begin(Start.java:
    205)
       at com.sun.tools.javadoc.Main.execute(Main.java:
    64)
       at com.sun.tools.javadoc.Main.main(Main.java:
    54)
     
    Last edited: Jul 5, 2015
  2. MarcoRome

    MarcoRome Expert Licensed User

    Eclipse or SLC ?
     
  3. MarcoRome

    MarcoRome Expert Licensed User

    Look THIS you can download BADoclet
     
  4. jahswani

    jahswani Active Member Licensed User

    It's SLC latest version...
     
  5. MarcoRome

    MarcoRome Expert Licensed User

    Yes i see in your first post. Post your code, if you can
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Are you including any third party classes in your library? If yes then use the -b4aignore option to exclude them from the doclet tool.
     
  7. jahswani

    jahswani Active Member Licensed User

    Should i use it for packages of classes name ?
     
  8. jahswani

    jahswani Active Member Licensed User

  9. Erel

    Erel Administrator Staff Member Licensed User

    You should use it to exclude all classes that should not be exposed (based on the full name which includes the package). Remove the asterisk character.
     
Loading...