Since 1.5: Multiple sources of package comments found for package

SInce I upgraded to JDK 1.5, I get these warnings
Multiple sources of package comments found for package "x.y.z"
for my package comments. Did something change for package.html content?

I already have them in the sources ...Ok, but are you sure that the Javadoc classpath option does not also point to directories with package html files?
It works without warnings, when using 1.4 ... these warnings appear since using 1.5.Yep. The Doclet interface of the Doclet API specifies a method void setRawCommentText(String text) prior to 1.5 this method did exactly what its name implies. With 1.5 the implementation was changed to generate a warning and do nothing if it was attempted to set the comment text multiple times.
What happens is this:
Javadoc sees the package.html files in the sources, creates an appropriate Doc (PackageDoc) instance and sets the comment text. Then for some reason Javadoc encounters package.html files for already existing Doc instances and tries to set the comment text a second (third, fourth, ...) time.
So, all you need to do is to ensure that Javadoc parses the package.html file for a given package only once, i.e. ensure that only sourcepath points to the package.html files but not classpath.

Similar Messages

  • Javadoc: warning - Multiple sources of package comments found for package

    h1. The Problem
    By creating the Maven Site for our software we receive the following error messages:
    javadoc: warning - Multiple sources of package comments found for package*
    We use maven with maven projects containing multiple maven modules.
    We have the same package names used in different modules (e.g. util-api with package util.text and util-impl with package util.text)
    Package Info are created using package-info.java files.
    We use maven-javadoc-plugin
    A search pointed to the following old links:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5095714
    http://forums.sun.com/thread.jspa?forumID=41&threadID=713300
    Does anyone experience the same problem? How can it be solved?
    h1. Our configuration
    $ mvn -version
    Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
    Java version: 1.6.0_14
    Default locale: de_CH, platform encoding: UTF-8
    OS name: "linux" version: "2.6.18-92.1.1.el5" arch: "amd64" Family: "unix"
    maven-javadoc-plugin version=2.6.1
    no special configuration

    h1. The Problem
    By creating the Maven Site for our software we receive the following error messages:
    javadoc: warning - Multiple sources of package comments found for package*
    We use maven with maven projects containing multiple maven modules.
    We have the same package names used in different modules (e.g. util-api with package util.text and util-impl with package util.text)
    Package Info are created using package-info.java files.
    We use maven-javadoc-plugin
    A search pointed to the following old links:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5095714
    http://forums.sun.com/thread.jspa?forumID=41&threadID=713300
    Does anyone experience the same problem? How can it be solved?
    h1. Our configuration
    $ mvn -version
    Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
    Java version: 1.6.0_14
    Default locale: de_CH, platform encoding: UTF-8
    OS name: "linux" version: "2.6.18-92.1.1.el5" arch: "amd64" Family: "unix"
    maven-javadoc-plugin version=2.6.1
    no special configuration

  • FB_4.5:"Source could not be found for flash.sensors.geolocation.." . airglobal.swc

    Hi!.
    I´ve FB 4.5 for PHP and I´ve add SDK 4.5.1 as said the next link :
    http://kb2.adobe.com/cps/906/cpsid_90671.html
    On my mobile project I use Geolocation:
    When I try to run the mobile project , don’t work.
    I´ve note that from FB in Package Explore, select my and I can to see the airglobal.swc  library , under: My proyect -> Flex 4.5.1 -> airglobal.swc. This library it look that are linked and  I can to see your packets such as: (default package); adobe utils ;  avmplus and  flash , but when I click on one of them, i.e : airglobal.swc->flash->sensors
    and I try to open geolocator.abc , appear a popup ( Code Navigator error) that said:
    "Source could not be found for flash.sensors.geolocation in D:\Archivos de programa\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\frameworks\libs\air\airglobal.swc"
    If I go to this path in my HD, it exist and I  can see the airglobal.swc and Geolocation.abc files, but it look that FB don’t see L . It could be the problem?.
    How I can to resolve?. Any idea?.
    Thank you!

    Hi, I have a simmilar problem but is for another swc:
    Source could not be found for mx.core:IUIComponent in C:\.....sdks\4.0.0\frameworks\libs\flash-integration.swc.
    Is that not open source too ? Are all classes not accessible like this not open source ?
    Also, I've read about mx_internal varialbes, and some people suggest going through the source code to find them, but when that's not possible what should one do to identify them, debug maybe ?

  • Javax packages not found for J2SDK 1.5.0

    Hi,
    I am very new to Java SDK. I just installed J2SDK 1.5.0 beta 2 and installed it on my RedHat 9.0 box with root permission at /usr/local/(java-home)/
    I can compile simple applications which do not import extension packages. However, when I try to compile an application importing javax.swing.* , I get the below error message:
    Craps.java:9: Can't find default package `javax.swing'. Check the CLASSPATH environment variable and the access to the archives
    Craps.java:11: Superclass `JApplet' of class `Craps' not found.
    public class Craps extends JApplet implements ActionListener {
    The code of this application is correct, coz I can compile and execute it in Windows.
    Can anybody help me with this problem?
    Thanks!

    Hi Joni,
    Thank you for the reply!
    I've solved the problem with your inspiration of the ClASSPATH. This is for the reference of those who may encounter the same problem as me.
    I installed Redhat 9.0 with default settings and those bundled packages (could be normal to many Linux newbies like me :) There is a default java compiler installed, I guess, and it's bundled with gcc. So when I tried to compile my .java files, the javac comand from j2sdk was not involked. Instead, it's the default-installed java compiler that correspended to my command. I guess this is why no matter what I changed in the .bash_profile in my home directory, the j2sdk command javac had not executed.
    After I uninstalled this one, and add j2sdk/bin into my CLASSPATH, everything works fine now.
    Btw, I found out this problem by simply typing "javac" in the terminal and read the help suggestions that followed.

  • Package comments and excluded files

    I have an ant target to generate javadoc for a whole package structure minus one sub-package and one class, plus a few classes from another package:
      <target name="doc">
        <mkdir dir="${build}/docs/api"/>
        <javadoc destdir="${build}/docs/api/"
          use="true"
          windowtitle="Public API">
          <classpath>
            <path refid="3rdparty.jar.path"/>
          </classpath>
          <fileset dir="${build}">
            <include name="com/company/pkg1/**"/>
            <exclude name="com/company/pkg1/util/**"/>
            <exclude name="com/company/pkg1/server/ServiceMBean.java"/>
            <include name="com/company/pkg2/CustomerReport.java"/>
            <include name="com/company/pkg2/DeprecatedReport.java"/>
            <include name="com/company/pkg2/Report.java"/>
            <include name="com/company/pkg2/TagReport.java"/>
          </fileset>
        </javadoc>
      </target>This worked fine until I started including package.html files for package documentation. Running this with package.html in com/company/pkg1 gives the following error:
    javadoc: Illegal package name: "C:\abc\def\com\company\pkg1\package.html"
    After playing around, I found that if I shift the 3 <include> and <exclude> lines referring to pkg1 out of the <fileset> tag and into a <packageset> tag, then the package comments work. However, then the exclude for the individual java class (ServiceMBean.java) does not work. Likewise, shifting the file exclude back to the fileset tag still does not exclude it.
    It seems that I must decide whether to have package comments or the ability to exclude individual files, but not both. Is there any way around this?

    Well, it is a known issue. And actually, issue is with DBMS_METADATA, not with DATAPUMP, which simply uses DBMS_METADATA:
    SQL> create or replace package
      2  --comment
      3  MyPkg
      4  is
      5  a number;
      6  end;
      7  /
    Package created.
    SQL> select text from user_source where name = 'MYPKG' order by line;
    TEXT
    package
    --comment
    MyPkg
    is
    a number;
    end;
    6 rows selected.
    SQL> select dbms_metadata.get_ddl('PACKAGE','MYPKG') from dual;
    DBMS_METADATA.GET_DDL('PACKAGE','MYPKG')
      CREATE OR REPLACE PACKAGE "SCOTT"."MYPKG"
    is
    a number;
    end;
    SQL> You should put comments after package name:
    SQL> create or replace package
      2  MyPkg
      3  --comment
      4  is
      5  a number;
      6  end;
      7  /
    Package created.
    SQL> select dbms_metadata.get_ddl('PACKAGE','MYPKG') from dual;
    DBMS_METADATA.GET_DDL('PACKAGE','MYPKG')
      CREATE OR REPLACE PACKAGE "SCOTT"."MYPKG"
    --comment
    is
    a number;
    end;
    SQL> SY.

  • ThinkVantage System Update - "There are no applicable packages found for your system"

    QuestionWhen running TVSU, I am getting a system notification of "There are no applicable packages found for your system"
    AnswerThis issue has occured at various times, and may more commonly occur when TVSU updates itself.  At the time this article was originally written, the symptom was noted by some customers after updating from version 4.01.0010.
    After updating System Update, if no packages are found for your system, please try the following to uninstall and manually reinstall the current version of system update.
    Click Start
    Click Control Panel
    Click Programs and Features
    Select System Update
    Click Uninstall
    Reboot
    Download latest version of ThinkVantage System Update
    Install it and reboot
    Run ThinkVantage System Update and the list of updated drives will now populate correctly.

    There are a few comments here that have come in over 3 years...
    1) Please update to the latest version of TVSU appropriate for your version of operating system.  TVSU should update itself, but please check the reported version when TVSU starts up against the most recent version available to download on support.lenovo.com.  Uninstall, download the newer version, and re-install if it does not auto update and you have confirmed a newer version.
    2) From time to time, there are issues with the TVSU catalog and updates may not be reported as available for a specific system.  Lenovo software teams do their best to ensure the update catalog is current for all supported models, but in the event that you find no updates for your system and believe this is in error, please manually check several of the principle driver versions in device manager and compare with the versions available for manual download on the support site for your model.  If later versions of drivers and BIOS are available on the support site, but not made available through TVSU, then use this feedback link to notify the e-support team so they may investigate.
    http://support.lenovo.com/us/en/websitefeedback
    3) If you have recently changed the system board in your system, or service has changed the board, and TVSU can no longer find updates, or reports an error detecting your system, please reboot and press F1 to enter BIOS.  (Note, you may need to shut and restart to enter BIOS).  In BIOS, check that the system model type and serial number are correctly displayed.  These should match the type and serial numbers on the sticker on the bottom of your system.  TVSU identifies correct updates by checking these values in BIOS.   When a system board is replaced, there is a service proceedure to update the type and serial number values in BIOS to match that of the new system.  If these are shown as blank, this was not performed, and is the reason TVSU is not detecting updates.  Please contact Lenovo service if this is the case.

  • Package not found javax.sql.*

    Hi I'm trying to import the following and compile.
    It prompts me package not found for javax.sql.* ?
    Any idea what is going wrong ?
    Thanks.
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.sql.*;
    import javax.naming.*;

    I got it right. Just download the jdbc optional package and put it in the classpath.

  • Howto deal with multiple source files having the same filename...?

    Ahoi again.
    I'm currently trying to make a package for the recent version of subversive for Eclipse Ganymede and I'm almost finished.
    Some time ago the svn.connector components have been split from the official subversive distribution and have to be packed/packaged extra. And here is where my problem arises.
    The svn.connector consists (among other things) of two files which are named the same:
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/features/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/plugins/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    At the moment makepkg downloads the first one, looks at its cache, and thinks that it already has the second file, too, because it has the same name. As a result, I can neither fetch both files nor use both of them in the build()-function...
    Are there currently any mechanisms in makepkg to deal with multiple source files having the same name?
    The only solution I see at the moment would be to only include the first file in the source array, install it in the build()-function and then manually download the second one via wget and install it after that (AKA Quick & Dirty).
    But of course I would prefer a nicer solution to this problem if possible. ^^
    TIA!
    G_Syme

    Allan wrote:I think you should file a bug report asking for a way to deal with this (but I'm not sure how to fix this at the moment...)
    OK, I've filed a bug report and have also included a suggestion how to solve this problem.

  • Compile multiple source files

    sorry, this is maybe a newbie question.
    but iI have a problem compiling an application that use multiple sources files
    for exemple
    the class A is in the file 1
    the class B is in the file 2
    class A uses an instance of the class B
    class B uses an instance of the class A
    so i'm unable to compile these files coz each one tells me he doesn't know about the other
    Is there a way to define prototypes of class or fonctions before their use like in C/C++?
    Or is there another way i didn"t pay attention
    thanks all

    This is a minimal explanation of packages. For a full explanation of packages and how to compile and run Java programs, see this page:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html
    and read the Setting the Classpath and the How Classes are Found topics.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file:
    package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    And a statement to run the program is:
    java myapp.aProgram
    (This can be issued from any directory, as Java will search for the program, starting the search from the classpath directories.)
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • Can we run parallel data collections to collect multiple source instance.

    Hi,
    We have a business requirement where we will have multiple Source(ERP) instance and single Destination(ASCP) instance. We would like to check if we will be able to run Data collections in parallel to collect multiple EPR instance in the same time window. This is to reduce the total planning process time duration as following data collections we will be required to run multiple plan runs.
    Please help me with your expert comments
    Rgds
    Sid

    You may instead use Continuous collections to save on time so it can run collections from both instances periodically throughout the day thereby reducing a single timespan to collect all the data.
    Thanks
    Navneet Goel
    Inspirage

  • PackageDoc: how to add package Comments in Java code?

    There is a PackageDoc.commentText() that (should) return package comments. This would be great because i want to write package related comments. But where in the java code do i have to add this text? i tried adding javadoc over a apckage declaration:
    * Test package comment.
    package de.dlib;But PackageDoc.commentText() for this package returns nothing...

    Each package can have its own documentation comment, contained in its own "source" file, that the Javadoc tool will merge into the package summary page that it generates. You typically include in this comment any documentation that applies to the entire package.
    To create a package comment file, you must name it package.html and place it in the package directory in the source tree along with the .java files. The Javadoc tool will automatically look for this filename in this location. Notice that the filename is identical for all packages.
    For more info:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#packagecomment
    -Doug Kramer

  • Managing Photos from multiple sources to iPhoto '11 Photo Stream on Mac.

    I combined photos from multiple sources (camera, desktop, iPhone) to iPhoto '11 on Mac.  I determined keeper photos and put them in Event.  I also rated and flagged the keeper photos.  I want to delete the rest of photos from Photo Stream but can't see rating/flag so I can't determine which ones to delete.
    This is basic file management but not finding a solution.  Suggestions?

    The Photo Stream is designed to push your images into the cloud the moment they are taken. It does not (yet) support to show the ratings and most of the tags.
    If you have an event with all photos you want to keep, the easiest way would be to delete all photos from the Photo Stream (on all your IOS devices) and then add only your selected "keeper" images to the Photo Stream again.
    Regards
    Léonie
    Added: It is not safe to rely on the Photo Stream for storage, since it will only keep a snapshot of currently added photos - the last month's photos or the last 1000 photos. You have have no control over the sorting of photos in the stream or how long they will be kept. The Photo Stream is a means of sharing, not of storing images. I prefer to use "Shared Photo Streams" for more permanent photo selections. These will show exactly the selection of images I add to them, and they are not automatically erased after a month.
    iCloud: Using and troubleshooting Shared Photo Streams

  • Multiple sources for trusted reconciliation

    Hi All,
    Is it possible to have multiple trusted source in OIM . such as I have to different application (1)end-user and (2)support. Both type of user need to created OIM.
    When I do the recon. on support after recon of end-user . I find that users from end-user are deleted.
    I am doing trusted recon.
    Am I missing anything and how we can support multiple source for trusted recon.
    Cheers

    Hi,
    I know you can have multiple trusted sources, as long as you normalize the attributes on the way in.
    I have seen an implementation with multiple trusted sources that provide the information for different attributes, as well as the same (for example, employees can change their own name in one application, HR can change it in PSFT, but PSFT is also authoritative for PSFT number). Since the First Name and Last Name can be touched by both, when the reconciliation connectors/adapters push the data into the recon engine, the attributes are named the same from both places.
    You can go into the organization of the users, find the Xellerate User process for the deleted users and find out what triggered the deletion. I have no idea what is doing it...
    Some ideas: if you are using the AD adapter and have Delete Recon turned on, and are doing a trusted recon, then you might get into conflicts between the users. Other adapters don't have Delete Recon, so they won't do this. I haven't looked into the new generic connector, so I am not sure if it does this as well.
    Also, you can look at the data coming in from the recons in the Design Console's Reconciliation Manager. This might give you a hint as to why things are getting deleted.
    Also, since I haven't played with 9.0.3 yet, it might just be a bug (I just finished my installation though and will be doing recons next week and see -- i have multiple trusted sources).
    Hope this helps,
    Deb

  • Can we merge data from multiple sources in Hyperion Interactive Reporting ?

    Hi Experts,
    Can we merge data from multiple sources in Hyperion Interactive Reporting ?Example can we have a report based on DB2
    Oracle,
    Informix and Multidiemnsional Databases like DB2,MSOLAP,ESSBASE?
    Thanks,
    V

    Yes, Each have their own Query and have some common dimension for the Results Sections to be joined together in a final query.
    look in help for Creating Local Joins

  • Since  I have multiple users of my itunes account, is it possible to redeem a giftcard where only myiphone can access the redeemed money?

    Since I have multiple users of my itunes account, is it possible to redeem a giftcard where only my iphone can access the redeemed money?

    Yes, you can use another server for .ibooks format.  You can also directly email it if your system can take the size.

Maybe you are looking for

  • How to use images

    I need to use some pics in an application I'm developing, but I don't know how to. Can you name some libraries that I can use to display GIF files?

  • Error in RFC-PI-WEBSERVICE(SOAP)

    HI Expert, I am facing a problem with my scenario RFCPISOAP. It is a Asynchronous communication. Mesasge is successful in SXMB_MONI but failure in receiver side Adpter engine. Error is like Delivering the message to the application using connection S

  • [Solved] Kill KDM?

    Is there a way to kill KDM run with "--nodaemon" option? I added it to /etc/inittab so that I can boot to GUI but can't kill it when I want to play with xorg.conf or so.

  • Problem in multipule selection screens in a single report.

    Hi experts, I have created one report with multiple selections screen. There i am using Layouts for each screen. The problem is whenever i press F4 in layout fields it is going to display all variants, bcoz the program name is same,so how can i segre

  • Long Text Field in Transparent Table

    Hi, I have a requirement more than 3 fields in table with more than 4000 character and same data or text to print using smartforms. I have taken string data type in transparent table but maximum 3 fields can be  string data type in a table. And after