Invalid package declaration:

If you read my post a few messages down, I asked how to add a package in NetBeans. Solved (THANKS).
But now I get this error when I mouseover the items in the package. Can I get an exact walkthrough on what to do to enable a package to work in NetBeans?
l'll be more specific. I downloaded the jpb package from http://knking.com/books/java/ (Near the bottom)
NetBeans saves my projects in C:\Documents and Settings\Administrator. So (In accordance with the instructions given in the book) I made the dir. C:\Documents and Settings\Administartor\jpb and inserted 3 .java files in it (SimpleIO.java Convert.java and DrawableFrame.java). From this point, what do I do so that (in netbeans) I can type import jpb.* and not get any errors?
THANKS AGAIN FOR EVERYONE WHO HELPS

You must compile these files, and I suggest you to
create a jar library:
New project -> General -> Java Class Library
Copy your sources in it and build project. This will
generate a .jar in the dist folder in mounted
filesystem.
Now add this builded jar in your project library as
commented before.
mariOHey there, I'm also a newb facing a similar error...
I backed up a package by copy - pasting it and now i mounted it. However, when i mouseover any of its classes it says "Invalid package declaration" and i can't solve it....
pls help
THX!!!

Similar Messages

  • Invalid package WWSBR_IMT_SERVICES after apply patch 3.0.9.8.1

    After applying patch 3.0.9.8.1, get an invalid package.
    Upon trying to compile the package WWSBR_IMT_SERVICES the following error
    occurs
    SQL> show err
    Errors for PACKAGE BODY WWSBR_IMT_SERVICES:
    291/7 PL/SQL: Statement ignored
    291/20 PLS-00201: identifier 'CTX_DOC.PKENCODE' must be declared
    293/8 PL/SQL: Statement ignored
    293/21 PLS-00201: identifier 'CTX_DOC.PKENDCODE' must be declare
    We have NOT installed oracle intermedia... why is this error occuring?

    According to BUG 2120388 this is ok!

  • Package load Failed! Invalid package Title, manifest file cannot be found

    Greetings. I am new to UPK and am seeking guidance on an upgrade to 11.1.
    A little background on what we are trying to do:
    We have two machines:
    Windows 2003 machine in domain 'X' | UPK 11.0.0.1.
    Windows 2008 R2 virtual machine in domain 'Y' | UPK 11.0 on the new machine first, install the 11.0.0.1 patch, and then upgrade to 11.1.
    We are using the same database as the old machine. Developer Server is Standard Authentication, Knowledge Center is Windows authentication.
    ==========================================================================================
    So far we have installed 11.1 with the respective database upgrades, but are lost as to how to migrate the old Content Root data. We have copied all the content to the new Content Root, added it to IIS like the old machine, and verified that the UPK database Content Root path is correct and working.
    For the rest of the post, I am remoted into the server from my local workstation, and then using IE to access KCenter on the server's FQDN, not via localhost.
    Since I am green, so I presumed that I would need to import the titles under Manager in KCenter. I zipped each content folder individually (they are named "1", "9", etc), and then attempted to import each zip file.
    NOTE: At this stage sometimes we are prompted to authenticate again. When it does, sometimes the credentials that we know work, get rejected and we are prompted again. This will repeat until we get a 401 and we have to start over. We have verified that the Windows account currently in session with the site is valid and has administrator authority within KC.
    NOTE2: On the first few tries, .NET complained that maxRequestLength was not large enough. I had our servers team increase it on the actual server in order for us to proceed.
    Provided we don't have to authenticate again, or that it actually accepts our credentials, we get to the 30% mark and then receive the error: *"Package load Failed! Invalid package Title, manifest file cannot be found"*
    Does anyone have any wisdom for this process? The title importation section in the deployment manual is not helping, and the administrator from whom I am taking over this software has not had to deal with this before.
    Thank you,
    Ian
    Edited by: 986290 on Feb 5, 2013 10:21 AM

    Hi Marc, thanks for the post,
    I have gone through an extensive troubleshooting process with Oracle, including their development team, in order to fully complete our project setup. As a supplemental bit of information, we also were having connection errors when attempting to publish directly to the knowledge center.
    As far as the context of this post, here is the solution in brief:
    1) Verify that the package being imported was published from the same version of the Developer Client as the Knowledge Center installation's.
    2) Check for database consistency issues. In our case we were using a database that was built in another domain. After numerous attempts with Oracle support on the line to determine the inconsistency, it was decided to completely reinstall and build a new database from scratch in the new domain.
    3) Check application pool identities and access (while we had some inconsistencies here, correcting them did not change the behavior of the import/publish errors)
    In review, a lot of what we had setup was correct. Our primary point of failure, we feel, was using the old database. Technically this should not have been a problem, but Murphy likes to get his way sometimes.
    Cheers,
    Ian

  • Invalid variable declaration:  object 'TIMESTAMP' must be a type or subtype

    Message 1: ORA-06550: line 91, column 14:
    PL/SQL: ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-488: invalid variable declaration: object 'TIMESTAMP' must be a type or subtype
    ORA-06550: line 89, column 1:
    PL/SQL: SQL Statement ignored
    I'm getting above error message when i'm trying to define one cursor from a table which has a column with data timestamp(3) in a cursor i'm not even using a column with data type timestamp .( this tables i created by importing sybase tables into oracle )
    SELECT to_char(sysdate) -- trunc(act.date_posted)
    INTO v__Data
    from cedb.cr_ar_debit_activity act
    where rownum < 2 ;
    for testing purpose i even removed the cursor and make it shor to above query then also it dosent work and gave the above error . if you know the solution then please let me know . i think i've to do/change database settings but i'm not sure .

    the above code is not working but the following code is working if i open cursor from assiging select to variable , why this is happening .
    DECLARE
         v_A_REPORT_DT VARCHAR2(100);
    ls_sel VARCHAR2(900);
    i INTEGER := 1;
    TYPE dynamic_cur IS REF CURSOR;
    tb_test_cur dynamic_cur ;
    TYPE array_date_type IS TABLE OF DATE INDEX BY PLS_INTEGER;
    v1 array_date_type ;
    BEGIN
         v_A_REPORT_DT := '01-01-2007'/* VARCHAR2(2000) */;
    -- this one is not working
    SELECT to_char(sysdate) -- trunc(act.date_posted)
    INTO v_A_REPORT_DT
    from cedb.cr_ar_debit_activity act
    where rownum < 2 ;
    ls_sel := 'SELECT trunc(act.date_posted)
    from cedb.cr_ar_debit_activity act
    where rownum < 3 ' ;
    OPEN tb_test_cur FOR ls_sel;
    LOOP
    FETCH tb_test_cur INTO v1(i) ;
    EXIT WHEN tb_test_cur%notfound;
    dbms_output.put_line(to_char(v1(i)));
    i := i + 1 ;
    END LOOP;
    CLOSE tb_test_cur;
    END;

  • Invalid Package error (limits?) - SQL*Loader

    I seem to have reached a limit on SQL*Loader in 8.1.6 on the number of columns I am trying to load. The table has 97 columns - if I try to specify more than 92 columns I get an invalid package error - it doesn't matter which column I pick. The row width is close to 2K bytes. Does anyone know the max size - and is there a default that can be increased somehow?

    It maybe your BUFFER size.
    Buffer Size = Rows in Array * Max row size
    this is the formula to estimate your BUFFER size for the import.
    Look in your Parameter File for 'INCTYPE' this is the parameter name for Buffer for importing with SQL*Loader.
    Hope this helps.
    Tony

  • New Columns Used in a Package Declaration

    I added the following new columns to a table:
    alter table J48PLTEQUIP add
    LOCBYUSER Char ( 1) Default 'N', UPF85 VarChar2(6) Default To_Char(SysDate,'MMDDRR'),
    COFFSETDV VarChar2( 8) , UPF86 VarChar2(6) Default To_Char(SysDate,'MMDDRR'),
    COFFSETEV VarChar2( 8) , UPF87 VarChar2(6) Default To_Char(SysDate,'MMDDRR'),
    COFFSETEU VarChar2( 8) , UPF88 VarChar2(6) Default To_Char(SysDate,'MMDDRR'),
    ROFFSETDV VarChar2( 8) , UPF89 VarChar2(6) Default To_Char(SysDate,'MMDDRR'),
    ROFFSETEV VarChar2( 8) , UPF90 VarChar2(6) Default To_Char(SysDate,'MMDDRR'),
    ROFFSETEU VarChar2(15) , UPF91 VarChar2(6) Default To_Char(SysDate,'MMDDRR')
    Then I tried adding the new columns to a package declaration (see code below) and for some reason I am getting some errors when I compile it:
    TYPE tab_coloffsetdv IS TABLE OF J48PLTEQUIP.COLOFFSETDV%TYPE index by binary_integer;
    TYPE tab_coloffsetev IS TABLE OF J48PLTEQUIP.COLOFFSETEV%TYPE index by binary_integer;
    TYPE tab_coloffseteu IS TABLE OF J48PLTEQUIP.COLOFFSETEU%TYPE index by binary_integer;
    TYPE tab_coloffsetdir IS TABLE OF J48PLTEQUIP.COLOFFSETDIR%TYPE index by binary_integer;
    TYPE tab_rowoffsetdv IS TABLE OF J48PLTEQUIP.ROWOFFSETDV%TYPE index by binary_integer;
    TYPE tab_rowoffsetev IS TABLE OF J48PLTEQUIP.ROWOFFSETEV%TYPE index by binary_integer;
    TYPE tab_rowoffseteu IS TABLE OF J48PLTEQUIP.ROWOFFSETEU%TYPE index by binary_integer;
    TYPE tab_rowoffsetdir IS TABLE OF J48PLTEQUIP.ROWOFFSETDIR%TYPE index by binary_integer;
    SQL> show error
    Errors for PACKAGE PWRADMIN.PLAKCOMP:
    LINE/COL ERROR
    78/4 PL/SQL: Declaration ignored
    78/47 PLS-00302: component 'COFFSETDV' must be declared
    79/4 PL/SQL: Declaration ignored
    79/47 PLS-00302: component 'COFFSETEV' must be declared
    80/4 PL/SQL: Declaration ignored
    80/47 PLS-00302: component 'COFFSETEU' must be declared
    81/4 PL/SQL: Declaration ignored
    81/48 PLS-00302: component 'COFFSETDIR' must be declared
    82/4 PL/SQL: Declaration ignored
    82/47 PLS-00302: component 'ROFFSETDV' must be declared
    83/4 PL/SQL: Declaration ignored
    LINE/COL ERROR
    83/47 PLS-00302: component 'ROFFSETEV' must be declared
    84/4 PL/SQL: Declaration ignored
    84/47 PLS-00302: component 'ROFFSETEU' must be declared
    85/4 PL/SQL: Declaration ignored
    85/48 PLS-00302: component 'ROFFSETDIR' must be declared
    359/4 PL/SQL: Declaration ignored
    362/52 PLS-00302: component 'COFFSETDV' must be declared
    Do you have any clues why I am getting this error?
    Your help is really appreciated.
    Alex

    Todd, thanks for your prompt answer.
    I apologize, I pasted the wrong segment of the code. The TYPE statements should have been the following:
    TYPE tab_coffsetdv IS TABLE OF J48PLTEQUIP.COFFSETDV%TYPE index by binary_integer;
    TYPE tab_coffsetev IS TABLE OF J48PLTEQUIP.COFFSETEV%TYPE index by binary_integer;
    TYPE tab_coffseteu IS TABLE OF J48PLTEQUIP.COFFSETEU%TYPE index by binary_integer;
    TYPE tab_coffsetdir IS TABLE OF J48PLTEQUIP.COFFSETDIR%TYPE index by binary_integer;
    TYPE tab_roffsetdv IS TABLE OF J48PLTEQUIP.ROFFSETDV%TYPE index by binary_integer;
    TYPE tab_roffsetev IS TABLE OF J48PLTEQUIP.ROFFSETEV%TYPE index by binary_integer;
    TYPE tab_roffseteu IS TABLE OF J48PLTEQUIP.ROFFSETEU%TYPE index by binary_integer;
    TYPE tab_roffsetdir IS TABLE OF J48PLTEQUIP.ROFFSETDIR%TYPE index by binary_integer;
    Hopefully, this will clear things out. I am still out of luck with this issue. Thanks in advance again to all the gurus for your help...

  • Multiple top level package declarations

    The "Programming Adobe ActionScript 3.0" states in chapter 4 "ActionScript Language and Syntax", "Packages and Namespaces", "Creating Packages" that you can declare at the top level of a package multiple variables, functions, and namespaces in addition to a single class as long as only one is declared "public".
    However, in Flash when I declare a public class and any other variable or function either with the "internal" attribute or no attribute, I get this error:
    5006: An ActionScript file can not have more than one externally visible definition: test.function1, test.Test
    The package code is as follows:
    package test
        internal function function1():String
            return "Function1()";
        public class Test
    The same thing happens if I replace the function with an internal variable declaration. According to the manual, any declaration with the "internal" attribute should not be externally visible outside the package. Only the "public" class declaration should be externally visible.
    Can anyone clue me in as to why I get this error?

    That is not the situation described by the quoted manual section that I am trying to recreate.
    It clearly says:
    "In ActionScript 3.0, you use the package statement to declare a package, which means that you can also declare variables, functions, and namespaces at the top level of a package. You can even include executable statements at the top level of a package. If you do declare variables, functions, or namespaces at the top level of a package, the only attributes available at that level are public and internal, and only one package-level declaration per file can use the public attribute, whether that declaration is a class, variable, function, or namespace."
    The data properties and class you have decleared are outside the package within the ActionScript file, and not at the top level of a package. The "public" attribute is not available outside the package at all.
    What I wish to know is why the quoted internal declarations at the top level of the package generate the quoted error.
    However, I am beginning to believe that the documentation is in error and that what it is actually describing IS the situation you just described. When the manual says "top level of the package", it really means "top level of the ActionScript file outside the package", and when it says "the only attributes available at that level are public and internal", it really mans "the only attribute available outside the package declaration is internal. At the top level of the package, only one declaration may be made, it must have the same identifier as the ActionScript file name, and it can have either the public or internal attribute. Code within the same file but outside the package declaration can not access an internal declaration in the package declaration."
    Actually, the whole paragraph would need to be re-written to clarify the issue and to unambiguously distinguish between "top level of a package" and "top level of an ActionScript file outside the package declaration".
    As a concrete example - two ActionScript files:
    MCTest.as is saved in the same directory as MCTest.fla, and the document class of MCTest.fla is set to "MCTest".
    package
        trace("MCTest package code.");
        import flash.display.MovieClip;
        import test.Test;
        public class MCTest
        extends MovieClip
            trace("MCTest class code.");
            function MCTest()
                trace("Created Class MCTest: " + Test.StaticMessage);
    trace("MCTest outside package code");
    Test.as is saved in a sub-directory called "test".
    package test
        trace("test.Test package code");
        public class Test
            public static const StaticMessage:String = "Test: Hello World!";
            trace("test.Test class code");
    var myField:String = "myField";
    function myFunction():String
        return "myFunction";
    trace("test.Test outside package: " + myField + ", " + myFunction() + ", " + test.Test.StaticMessage);
    The resultant trace output is:
    MCTest class code.
    MCTest package code.
    MCTest outside package code
    test.Test class code
    test.Test package code
    test.Test outside package: myField, myFunction, Test: Hello World!
    Created Class MCTest: Test: Hello World!
    It is interesting to note that the package and outside package code are executed AFTER the class code.
    That seems to make more sense. You can only declare one class, variable, function, or namespace at the top level of a package with the same identifier as the file name, public or internal, and you can include executable code. At the top level of the ActionScript file outside the package declaration, you can only declare internal classes, variables, functions, and namespaces, and you can include executable code, none of which are within the package nor have access to any package internal declarations.
    The problem, therefore, would seem to be an incorrect manual. Does anyone actually know if this is accurate and the intended behavior?

  • Error while installign AIR Application (invalid package signature errorID=5022)

    Hi All,
    I am new to Adobe AIR and facing error while Installing AIR application. This specially happens when in include a folder named "htmls" in the assets directory in my project.
    This folder have lots of html files and others folders. These file names have some special characters as well like ". & - _".
    However I can install the Application when I exclude this folder and everything works fine. Not able to find out the exact problem.
    Looking forward for help !!
    Log contents:
    .airappinstall
    failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]
    starting cleanup of temporary files
    application installer exiting
    .airinstall
    App installer failed; exit code 7
    begin quitting

    You may have found a bug in the AIR installer or packager. Given that the signature is an XML file, the "&" character seems the most likely culprit.
    The only short-term workaround is to identify which characters cause the problem and avoid using it.
    You should avoid the following characters in any case, since these cannot be used in file names on all platforms:
    Character            Hexcode
    various     0x00 - x1F
    *           x2A
    "           x22
    :           x3A
    >           x3C
    <           x3E
    ?           x3F
    \           x5C
    |           x7C

  • Adobe air invalid package on android 4.2.1

    I have android 4.2.1 on transformer pad tf300t and when I try to update adobe air it says invalid package.

    here's the stack trace from your app.
    E/AndroidRuntime( 2967): FATAL EXCEPTION: main
    E/AndroidRuntime( 2967): java.lang.RuntimeException: Unable to start receiver com.sputnik.wispr.NetworkScanReceiver: java.lang.StringIndexOutOfBoundsException: length=0; index=0
    E/AndroidRuntime( 2967): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2383)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.access$1500(ActivityThread.java:141)
    E/AndroidRuntime( 2967): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1310)
    E/AndroidRuntime( 2967): at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime( 2967): at android.os.Looper.loop(Looper.java:137)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.main(ActivityThread.java:5039)
    E/AndroidRuntime( 2967): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 2967): at java.lang.reflect.Method.invoke(Method.java:511)
    E/AndroidRuntime( 2967): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    E/AndroidRuntime( 2967): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    E/AndroidRuntime( 2967): at dalvik.system.NativeStart.main(Native Method)
    E/AndroidRuntime( 2967): Caused by: java.lang.StringIndexOutOfBoundsException: length=0; index=0
    E/AndroidRuntime( 2967): at com.sputnik.wispr.util.WiFiPrioritisation.QuoteSSID(WiFiPrioritisation.java:65)
    E/AndroidRuntime( 2967): at com.sputnik.wispr.util.WiFiPrioritisation.enablePreferredNetwork(WiFiPrioritisation.java:335)
    E/AndroidRuntime( 2967): at com.sputnik.wispr.NetworkScanReceiver.onReceive(NetworkScanReceiver.java:65)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2376)
    E/AndroidRuntime( 2967): ... 10 more
    W/ActivityManager( 574): Force finishing activity com.bt.mnie.wispr/.CoreActivity
    W/ActivityManager( 574): Activity pause timeout for ActivityRecord{4293be88 u0 com.bt.mnie.wispr/.CoreActivity}

  • Package owner - invalid packages

    Hello guys,
    I have this problem: I have two DB schemes A and B. I modified the code in both schemes. After compilation, many packages were invalidated. So I compiled all invalid packages, no compilation errors, everything ok.
    Now if I run this query in scheme A:
    SELECT *
    FROM ALL_OBJECTS
    WHERE OBJECT_TYPE IN ('PACKAGE', 'PACKAGE BODY')
    AND STATUS = 'INVALID';I get two records.
    The first one shows an invalid package where owner is scheme C - this is ok, because in scheme C is really such invalid package which has granted execute to scheme A.
    The second one shows an invalid package body, where owner is scheme A. But in scheme A, there is no such package. The "invalid" package is in fact in scheme B, it is in fact not invalid and it has no grants at all. So scheme A has no access to that package at all.
    Recompilation of this package in scheme B has no impact on the result. Why is the package marked as invalid and why is scheme A assigned as an owner???
    Now I run exactly same query in scheme B and get one record.
    One package is marked as invalid where owner is scheme B. However this package is in scheme A and scheme A is the owner of this package. Again the package is not invalid and recompilation of that package has no impact... In this case the package has granted execute to scheme B, so scheme B has the access to this package.
    Can anyone help me with this?
    Thanks, Dan

    I found the problem...
    After I did those changes to that packages, I first compiled the bodies to wrong schemes. So the bodies were created without specifications. I didn't see those packages because SQL Developer doesn't display them in such case...
    So I droped them now.

  • Invalid package bodies in SYS

    I have a couple of package bodies that will not compile. One of these is sys.dbms_aqadm_sys which get the error "PLS-00753: malformed or corrupted wrapped unit" when compile is run.
    Is there a way to recreate the package bodies since the compile will be work? Does anyone have a better solution?

    Do not know how this happened. I am reviewing invalid packages to prepare for a DB upgrade. I do have other databases with the same version.
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

  • Getting invalid packages when installing support for stored java objects

    I am getting invalid packages notices when installing support for stored java objects in Forms 9i that can with the Oracle 9iDS Suite. In the post installation notes it says to locate a few SQL files, PLB files and a JAR file and run them. On executing the SQL package that will install the rest , I am logged in as SYSTEM as the instructions stated, I get an error when it tries to load the PLB files ( which are encrypted from Oracle). Any one else have this problem or know of a solution?
    If you need more information please let me know and I will try to respond promptly.
    Thanks
    Chad Leath

    The PLB package is called ORA_DE_REFLECTION. I forgot to mention this in the previous post.

  • Access Modifiers, Package declaration

    I created the following two classes in the same folder as two source files:
    A.java
    package abc;
    class A{
    B.java
    package abc;
    class B extends A{
    When I tried to compile, A compiled successfully. But when compiling B, it gives an error Cannot find symbol for class A.... I think it should be visible as both class access modifiers are (default). Why do I get this error????
    By the way if package declarations are removed from both classes then they compile successfully........

    i tried a lot..... does classpath affects compilation??? can u correct dis???If we're going to make the effort to help you, you could show willing and make the effort to spell out all your words and generally make your sentences as easy to understand as possible.
    Yes, the classpath affects compilation as the link provided shows. YOU can correct this.
    >
    e:\one\>javac -classpath e:\one\cert B.java
    >
    The classpath points at directories (or JAR files) not Java source files. Read the link.

  • Compile all invalid packages together + connect as sysdba only

    Hi
    I've installed a Ora 10.2, and imported a dump. This dump contained some users, a lot of tables and stored procs.
    My first question: There is an imported user with I can connect as sysdba only. I can't connect as normal... it is problem because there is an application upper the db and I can't tell the applicataion that connect as sysdba. (it is only a sandbox for me...) What should I modify on this user to connect as normal user?
    The second question: The schema (upper) contains lot of invalid packages. I have only the free Toad and I can't compile all of them only step by step... (I don't want do this step by step because there are about 300 packages...). How could I complile all of them e.g. from Sqlplus? Any other solution?
    Thanks in advance!
    Alex

    ok, there is a user e.g. "xxxx"
    I can connect with this user as sysdba only. "CONNECT xxxx/yyyy@db as sysdba". Without "as sysdba" I got "ORA-01017: invalid username/password; logon denied" So I can connect only as sysdba... but this is a simple user so I don't want to connect as sysdba...

  • Invalid xml declaration. in genXML from

    I ran genXML.jsp on Tomcat 4.0.3 from the Sun Tutorial "Development with JSP and XML -- Part II: JSP with XML in mind". I got the following error on my IE browser -
    Invalid xml declaration. Line 3, Position 3
    <?xml version="1.0" encoding="UTF-8"?>
    --^
    Any Ideas what the problem is? The code was copied and pasted directly from the on-line article.
    THX,
    Kent

    If that is on line 3, then the problem would be with whatever precedes it on lines 1 and 2.

Maybe you are looking for