Problems with package hierarchy

If i create a simple package hierarchy like this:
-trial
- trial.subTrial
and if i put an abstract class on trial, i cannot extend it on package subTrial (a strange error occur, saying that i'm not overriding the abstract methods, when in fact i am) . But if i put everything on the same package it's no problem!!
I don�t know if this is a problem of the IDE (i'm using netbeans), i tried with a very simple example, outside of the project, to see if it was a problem with my code, and the same errors occurred, or if it's some hierarchy concept i'm violating.
Does anyone knows anything about this?

Nop, that's not the case!! As i said, i made a project just to try this.
This is the code of the only 2 classes of the project:
package trial;
public abstract class Trial {
abstract void function1();
abstract void function2();
void function3(){
System.out.println("BLA");
} // End of Trial Class
package trial.subTrial;
import trial.Trial;
public class SubTrial extends Trial{
void function1(){}
void function2(){}
}// End of SubTrial Class

Similar Messages

  • Problem with the hierarchial fields in a Purchase order xml report

    Hi,
    I am having a problem with the hierarchy problem. We are populating attribute 15 of a PO header. some times it can be null. FYI, we are using 11.5.10 instance where oracle supports direct PO template rather than having a rdf file.
    And now in the xml report, if attribute15 of po header is not null then it is fine.
    But if attribute15 is null, then the template is picking from the next available attribute15 that is from the po lines. As the line level group of "LINES" is between the "PO_DATA" (header group), hence the template is checking for next available attribute15.
    Can any one please suggest how to design the template where we can make the template to check only for that tag at the header level group rather than the line level group tag?
    Thank You in advance.
    Regards,
    Srinivas.

    Hi
    Incase you want to transfer attachements from SRM to R/3, then you try implementing the BADI in SRM side. The BADI which will help in this case is
    <b>BBP_CREATE_PO_BACK</b> BADI.
    <b>Please read the standard SAP documentation of this BADI using SE18 Transaction, before making any code changes.</b>
    <u>Few Important SAP OSS notes to refer in this case -></u>
    Note 989184 - Transferred shopping cart with internal attachments
    Note 550071 - FAQ: EBP - Shopping Cart
    Note 916347 - Transfer shopping cart with internal attachments
    Note 1001130 - FAQ - Attachment questions (Buyside)
    <u>Few useful links -></u>
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/49/b32640632cea01e10000000a155106/frameset.htm
    Re: Attachments to backend
    Re: Document Attachments in Shopping Cart
    Re: Attachment in SRM
    Re: SRM Documents and Attachments
    Re: Limit in Attachments of an item in Shopping Cart
    Re: return delivery text from material document is not passed to SUS
    </b>
    Do let me know, incase you face any problems.
    Regards
    - Atul

  • Rather odd problem with package naming...

    Background info:
    I'm working on a web-based application, on a Tomcat server. Classes (and packages) must be in a subfolder of WEB-INF/classes of the app's root. So the packages are in WEB-INF/classes/com/<package>.
    The older packages are in com/gestion (for the package com.gestion ) and the newer ones are in com/incsolution/<various> where <various> can be either chart, util or pgm - following convention more closely.
    OK! We have a class called SqlBean in com.gestion, which starts off like so:package com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
        ...rest of code...
    }and is used in several other objects, like TransferQBean.java, which is in the same package:
    package com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       ...rest of code...
    }Now, i've been working (with others) on this project for 2 years now, and up until last week, there was no problem with the way things were called. Come Monday (April 11), the classes won't compile any more - gives me this error:
    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^
    Now if i add classes to com.gestion to get...
    package classes.com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       rest of code...
    }and same for SqlBean...
    package classes.com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
       ...rest of code...
    }...it works, but that's not how it's supposed to be. What puzzles me the most is how this came about suddenly.
    Anyone have an idea what might be causing this? AFAIK, it's abnormal...
    JH

    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^The solution to your problem is simply that your classpath is incorrect at compile-time. How you fix that depends on how you compile (from an IDE, from the command-line javac tool, etc). But whatever you do, don't make your solution depend on a system environment CLASSPATH variable.

  • Problem with packageing and deploying a sample application

    HI,
    I have tried to download and install the server in my system. I am able to deploy a sample application using autodeploy utility.
    But when i tried to package a new sample application and deploy i am getting 404 error. For application server i have used 7070 port and not the default 8080 port will this a problem to package & deploy sample application provided with this software.
    The error is as below:
    HTTP Status 404 - /hello1
    type Status report
    message /hello1
    description The requested resource (/hello1) is not available.
    Sun-Java-System/Application-Server

    Btw, verify that the url you are trying to access is correct. For instance, assuming you deploy app. without --contextroot option. By default,  the url is http://<host>:<port>/<web module name>/<value of url-pattern in web.xml> if your app contains servlet. If your app has jsp then it's http://<host>:<port>/<web module name>/<value of url-pattern in web.xml>/<name of jsp>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with services hierarchy and purchase order

    Hi I'm in Srm 7 EHP8(classic scenario) and i have a problem with services hierarchies:
    I create a Purchase requisition in ECC with the next structure:
    1.Hier
    1.1 Serv1
    1.2 Serv2
    1.3 Serv3
    Then I upload this PR to SRM(I activated the BBP_EXTLOCALPO_BADI to change to the Extended-classic scenario to upload correctly the hierarchy)
    and in the SOCO  I only choose the position 1.1 Serv1 and create a purchase order.
    The problem is the purchase order created in ECC contain all the services of the purchase requisition, not only the service I choose(1.1 Serv1) to create the purchase order, in SRM the purchase order is correct with only one position(1.1 Serv1)
    Any Idea?.
    Thanks for the help.

    Hi,
    I have the same problem, any new about that?
    Rgs,
    Pedro

  • Problem with Packaging Material Type

    Hello all Gurus,
    I have a problem with a packaging material type that I have created copying the standrad Packaging material type LEIH. I created a new packing material type ZPAC - Packaging Material copying LEIH.
    I then created a new material master record using this new material type ZPAC.
    When I am using this material for packing in outbound delivery document - VL01N, I am getting the following strange error message:
    20333 does not have packaging material type and is therefore not a pack.mat.
    Please suggest me why this error is coming and how I can rectify this error. Is there any further configuration that I need to do for packaging material types??? Kindly suggest.
    Thanks and Regards,
    Umakanth.

    Hi,
    Material type is not enough, you have to maintain proper master data as well as config.
    At least please maintain value in MARA-VHART for the packaging material. Please also check these links how HUM works:
    http://www.sap-img.com/sap-hu.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/c8/a44b779f3211d2858d0000e81ddea0/frameset.htm
    Regards,
    Csaba

  • Problem with Package Applications

    Ok, I'm trying to migrate an Apex Application from one server to a newer server....
    My custom app I used the theme from Go Live CheckList samples....
    Well, when trying to install that application I get 'Insufficient space to install application ' with a BIG red X...
    I was able to install other Package Application except for the one I need and now my application errors out because of
    some shared Themes....
    At first I thought it was a DB thing so I downgraded back to 10g from 11....but that didn't help...
    Apex works fine...
    Other samples work fine...
    Version Apex 4.2.2 and Oracle XE 10g...

    Yes,
    It errors out in 11g XE and when it was the only Application installed...
    I know the error sounds like the OS but I can't see it being the issue since the
    other server has less space and more application on it...
    Plus the database is empty ....
    The other one is Apex 4.2.1 .. I think there is a problem with 4.2.2 packaged applications..

  • Problem with package in Eclipse

    I am doing in Java codes. There is big problem with those error:
    package org.eclipse.emf.ecore.xml.type.internal;What I should to do that? Do you think I need to download some package from somewhere for Eclipse?
    I have already Eclipse. Please help me how to do that. Thanks.

    I wrote codes in there. But there is some errors in there because they said that I don't have package exist in Eclipse. I have no idea why.
    Those lists below got red line:
    package org.eclipse.emf.ecore.xml.type.internal;
    import org.eclipse.emf.common.util.WrappedException;
    import org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException;
    import org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil;I tried to run it and the errors said:
    InvalidDatatypeValueException cannot be resolved to a type.
    The declared package "org.eclipse.emf.ecore.xml.type.internal" does not match excpected package"
    The import org.eclipse cannot be resolved
    WrappedException cannot be resolved to a type
    XMLTypeUtil cannot be resolved{code}
    What is wrong with it? Do you think there is missing plugin package or what? Where can I find a package for that?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Hai ,problem with packages

    Hai all,
    i got a problem with user defined packages .i have one class under one package "sg.km" n the class name is kmc.class n i want to use that sg.km.kmc in some another class that is also a part of sg.km package .i hope i'll get reponses to my prob asap.
    thanks in advance
    yours
    srinu kumar reddy

    You should not need to import a class that is in the same package.
    You did not post enough information for me to give you a good answer. You should always post an error message along with any command you entered. All you said was, "i got a problem." We don't know if your problem is with compiling, running, jar file, applet, etc.
    You need to have a directory structure that matches your package. The kmc.class file a sg\km directory path. For example, c:\myjava\classes\sg\km\kmc.class. Then you need c:\myjava\classes directory in your Classpath both for compiling and running.

  • Problem with packages, part duex

    Solaris 11 x86 under VBox
    Continuing from problem adding packages
    I got the mechanics of adding packages working and successfully installed the packages for x11 support.  Next I need to add some packages to install Oracle database.  Packages are listed in the database Installation Guide.
    First, check to see if the required packages are already installed:
    root@vbsolsrv02:~# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot   SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
    system      SUNWarc   Lint Libraries (usr)
    system      SUNWbtool CCS tools bundled with SunOS
    system      SUNWhea   SunOS Header Files
    system      SUNWlibC  Sun Workshop Compilers Bundled libC
    system      SUNWlibms Math & Microtasking Libraries (Usr)
    system      SUNWsprot Solaris Bundled tools
    system      SUNWtoo   Programming Tools
    ERROR: information for "SUNWi1of" was not found
    ERROR: information for "SUNWi1cs" was not found
    ERROR: information for "SUNWi15cs" was not found
    ERROR: information for "SUNWxwfnt" was not found
    Not being familiar with the interpretation of the error msgs (or much else with Solaris) I figured it wouldn't hurt to just try to install them.
    root@vbsolsrv02:~# pkg install SUNWi1of
    pkg install: The following pattern(s) did not match any allowable packages.  Try
    using a different matching pattern, or refreshing publisher information:
            SUNWi1of
    root@vbsolsrv02:~# pkg install SUNWi1cs
    No updates necessary for this image.
    root@vbsolsrv02:~# pkg install SUNWi15cs
    No updates necessary for this image.
    root@vbsolsrv02:~# pkg install SUNWxwfnt
    pkg install: The following pattern(s) did not match any allowable packages.  Try
    using a different matching pattern, or refreshing publisher information:
            SUNWxwfnt
    root@vbsolsrv02:~#
    at this point, repeating the pkginfo command produced exactly the same results as before.
    So, what am I to learn from this and how should I proceed from here?

    PascalKreyer-Oracle wrote:
    These packages are requirement for Solaris 10. As these packages are not available for Solaris 11, please check again in the database installation guide to determine which packages are really necessary.
    Ah, the devil is always in the fine print.  I am planning on installing Oracle 11.2, so from the Database Quick Installation Guide
    11g Release 2 (11.2) for Oracle Solaris on x86-64,  the packages were listed under this statement:
    The following packages (or later versions) are required for Oracle Database 11g Release 2 (11.2) on Oracle Solaris 10:
    I overlooked the proviso "on Oracle Solaris 10".  There was no separate listing for Solaris 11.
    Also, going back and double checking the entire section on software requirements, I see that only Oracle 11.2.0.3 or later is supported on Solaris 11.  So if I want to install Oracle 11.2.0.1, I'll need to drop back to solaris 10.
    Thanks for the focus.

  • Re: itunes won't install due to problem with package.

    I've been having a similar problem--
    Here are the exact words: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908." fyi, the message came up just after the installer began "updating component registration," if that is of any use. I've tried re-downloading it and restarting the computer. I've tried what the customer service reps told me which was to stop the iPod service and the apple mobile device service during installation but i couldn't find "apple mobile device" on the list. so i tried just stopping "iPod service". that didn't work. please, please help I am at my wit's end with this.
    Message was edited by: evenstar675

    Checking on something. In the course of your troubleshooting to date, have you worked through the general troubleshooting procedures (listed below the heading: *General Installation Troubleshooting*) from the following document?
    Trouble installing iTunes or QuickTime software in Windows

  • Itunes won't install due to problem with package.

    I went to upgrade my itunes to the 7.3.2 and it froze in the middle of it. I restarted my computer and then my itunes won't show up nor download. I tried to use the apple installer and it gets most of the way through when the following message appears: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2330." I have tried installing the program on it's own using tools--> download only and that did not work. I also tried using a different user account and that also did not work. Any information would be greatly appreciated. I am using a PC and have windows XP. Thank you.

    Hi Royb,
    first i excuse myself for my english...its not too bad but sometimes i make mistakes... however
    perhaps you can help me with my problem as well. i did the log file as well and i suppose its something to do with the ipod functions in itunes. everywhere in the logfile where the pattern "2330" matches is something like this:
    MSI (c) (A0:08) [21:33:37:187]: Note: 1: 2330 2: 23 3: C:\Programme\iPod
    MSI (c) (A0:08) [21:33:37:187]: Transforming table Error.
    DEBUG: Error 2330: Error getting file attributes: C:\Programme\iPod. GetLastError: 23
    Bei der Installation dieses Pakets ist ein unerwarteter Fehler aufgetreten. Es liegt eventuell ein das Paket betreffendes Problem vor. Der Fehlercode ist 2330. Argumente: 23, C:\Programme\iPod,
    AppSearch: Eigenschaft: EXISTINGINSTALLDIR, Signatur: Locate_EXISTINGINSTALLDIR
    AppSearch: Eigenschaft: EXISTINGIPODINSTALLDIR, Signatur: Locate_EXISTINGIPODINSTALLDIR
    in case the german language causes problems with the analysis i tried to translate it into proper english:
    MSI (c) (A0:08) [21:33:37:187]: Note: 1: 2330 2: 23 3: C:\Programme\iPod
    MSI (c) (A0:08) [21:33:37:187]: Transforming table Error.
    DEBUG: Error 2330: Error getting file attributes: C:\Programme\iPod. GetLastError: 23
    During the installation an error occured. Maybe there is a packet problem. The error code is 2330. Arguments: 23, C:\Programme\iPod,
    AppSearch: Attribute: EXISTINGINSTALLDIR, Signature: Locate_EXISTINGINSTALLDIR
    AppSearch: Attribute: EXISTINGIPODINSTALLDIR, Signature: Locate_EXISTINGIPODINSTALLDIR
    I hope this helps...
    It would be very nice if you help me, otherwise i see no other way than formationg windows...and i hate that...thats why mac is better -.-
    however plase help me and if it helps i can send u the hole logfile. =)
    thank alot!
    moe

  • Problems with temporal hierarchy join in BI7.0

    Hello,
    I am using the new feature temporal hierarchy join which enables viewing historical data over a time-dependent hierarchy.
    Now this works fine as long as the hierarchy is being used in rows or columns. However if I use a hierarchy node as a selection in a structure element, the temporal hierarchy join does not work properly.
    Does anyone have an idea if this should be supported?
    Thanks in andvance,
    Patrick

    Hi Jorge,
    we have BI Patch 15. I tried to find out which notes were implemented to solve the Problem.
    I'm not sure which note was the leading note, but following notes were implemented:
    0001061525
    0001055725
    0001051170
    0001042353
    0001041760
    0001040649
    0001039979
    0001038008
    0001036536
    0001029689
    0001024554
    0001009908
    0001002662
    0001010516
    Since then there have been further notes concerning different problem with the temporal hierarchy join.
    I hope these will help to solve the initial problem.
    Regards,
    Patrick

  • Problems with InfoArea Hierarchy ( 0INFOPROV - INFOAREAHIER )

    We are securing our BI data using the InfoArea Hierarchy (INFOAREAHIER).  When trying to set up the 0TCAIPROV characteristic in an analysis authorization, we get the following error: 
    System error in program CL_RRHI_INCL_CREATOR_TID and form FINDDOUBLICATES-1- (see long text)
    We get this message when trying to populate the 'Nodes", after the hierarchy has been selected.
    I found an SAP Note (954673) that sounds like it would address the problem but it doesn't.
    Other issues that we have with this Hierarchy:
    The hierarchy is hidden when trying to locate it in RSA1.  All other hierarchies appear under the info object that it pertains to, but this one cannot be located.  This also seems to be fixed in a SAP note (960176) but we are at support pack 17 and still have the problem.
    Any time we make a change to the hierarchy, it appears that the changes are not "activated" until the following day....the new nodes, changes, etc are not available to be used until the next day.  If an info provider is moved from one node to another, the security authorizations treat the info provider  as being in it's old node until the next day.  Our Basis team is not aware of any nightly process that would be causing this.
    Any help with these issues would be greatly appreciated.

    Let's just keep this one alive.  When we try to make changes to the infoarea hierarchy in RSA1, like add a node, our security is ruined and we lose one of the main table entries that controls security in table RSRHIEDIR_OLAP.  We can only maintain the hierarchy in transaction RSA1OLD.
    Anyone know how to get around that?

  • Help: Still got problems with package

    I still got problems with my self-defined packages. My source files are all put in a directory as the package
    name suggests. The questions are:
    1. Before the classes in the package can be cited by the outside programmes, should I compile
    every sources files in the package respectively?
    2. Secondly, I want to put the .class files in another directory, such as \classes\package name, should
    I set the path mannully? If yes, how to do it?
    3. I downloaded some *.java files from Internet and put them in a directory as their package name suggested.
    However, when I run javac a.java I got error: cannot read a.java. What problem could it be?
    Thanks!

    1. Before the classes in the package can be cited by the outside programmes, should I compile
    every sources files in the package respectively?Yes, you can't run .java files. The JVM only uses the .class files, so you have to compile them.
    2. Secondly, I want to put the .class files in another directory, such as \classes\package name, should
    I set the path mannully? If yes, how to do it?You have to put the .class file in the package directory structure. You have no choice about that.
    3. I downloaded some *.java files from Internet and put them in a directory as their package name
    suggested. You need to read a lot of stuff, but start with this:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    However, when I run javac a.java I got error: cannot read a.java. What problem could it
    be?You don't run .java files. You run .class files.

Maybe you are looking for