Problem Create object from superclass

Hi,
I have a problem with classes:
I have one abstract superclass which has a method to create objecto for its children class.
CREATE OBJECT R_FLIGHT TYPE (l_class_name)
     EXPORTING
       i_sflight = l_sflight.
l_class_name: has the name of my children class
My children class has this properties:
A dump its triggered when I try to create object from the superclass.
Best Regards

Hello,
I think that you defined the instantiation level of the superclass as PROTECTED & from the screenshot i can see that the instantiation level is protected & the class is marked as "Final".
Are you having a factory method which returns the instance of the abstract class & you use it to achieve polymorphism?
May be a little bit insight into your coding can help us
BR,
Suhas

Similar Messages

  • Unable to create object from stored procedure

    Hi,
    we are trying to use a stored procedure to do data preparation.
    When we add the stored procedure to a universe, the procedure is executed succesfully and a table with one column, called "1" is created. When we try to create an object from this column, Designer does not allow us to do so.
    We already tried to alias the column name in the stored procedure but we still get an unusable column called "1" back.
    BO version used is XI R3.0. The stored procedure is written in Cobol on DB2 mainframe.
    Does somebody know what we do wrong ?

    Problem solved.
    First we aliased the result columns in the stored procedure, that got rid of the "1".
    Then we still could not create an object based on the column in the result set.
    Apparently this issue occurs when the length of the column of the result set is too long.
    We decreased the length and now we can create the object

  • Unable to create object from stored procedure universe

    Dear All Experts,
    I am facing a problem on unable to create object dimensions on a Stored procedure universe. Fyi, I have successfully insert a stored procedure ('SP_Sales') with input parameter (@date) into universe (Universe_1). But I unable create any object based on the the stored procedured ('SP_Sales') due to it show nothing from the Edit Select Statement of 'Object1', empty for Tables nd columns windows.
    Thefore, i unable to drag data in WEBI when i select univese as "Universe_1", it will not sure any object. Please advise.
    I am using XI4.0, MSSQL2008.

    Hi ,
    You wont be able to edit the object definitions.
    u2022 Designer generates one table per selected stored procedure (or many
    tables if multiple result sets) and one object per column returned by a
    stored procedure.
    u2022 The result set structure is determined when you describe the function.
    Please refer chapter 7(Page 451) of below document for more details.
    [Universe Designer Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_designer_en.pdf]
    Hope this helps.
    Bilahari M

  • Having problems creating PDF from website with query-string URLs

    I have a website that I would like to create a PDF from. I am using the Create -> PDF from Web Page..., selecting the site's home page, and capturing 2 levels, with "stay on same path" and "stay on same server" checked in order to limit the scope of the crawl.
    Where the pages are at example.com/foo/ and example.com/foo/bar/, this works fine. However, where the pages are at example.com/foo/ and example.com/foo/?p=1, the page represented by the query string URL is not converted to the PDF.
    This is a problem, given that the site I want to archive as a PDF uses query strings for most of its pages.
    I have been able to individually convert a single query-string-based page into a PDF using this method, but doing this for every page on the site would be almost impossible given the sheer number of pages on the site.
    Is this a known issue? Is there a workaround other than separately capturing each page (which would be prohibitive effort)?
    I have tried this in both Acrobat Pro X and Acrobat Pro 9 for Mac, with the same results.

    Remember, Acrobat is a 32-bit application and as such cannot access all that 'extra' stuff.
    Be well...

  • Problems creating invoice from order (DI API and SBO)

    Hello all!
    I´m getting various tax problems using the following code to automatically create invoices from existing orders.
    For Each currentKey In arrABEntrys
      objInv = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
      objAB.GetByKey(currentKey)
      objInv.CardCode = objAB.CardCode
      With objInv.Lines
        .BaseType = SAPbobsCOM.BoObjectTypes.oOrders
        .BaseEntry = currentKey
        .BaseLine = 0
        For i = 1 To objAB.Lines.Count - 1
          objInv.Lines.Add()
          BaseType = SAPbobsCOM.BoObjectTypes.oOrders
          .BaseEntry = currentKey
          .BaseLine = i
        Next
      End With
    If objInv.Add() = 0 Then
    Else
    End if
    The result of objInv.add() was first "5002 - 'Tax Definition (1)' (a very informative message to me).
    Then I checked my admin tax settings and put a check on "EU".
    The next time the result was "10 - Customer´s tax ID not defined OINV.LicTradNum"
    Actually, I don´t want to pre-set any fields in the invoice, because the order looks complete to me.
    By the way: The error occurs in SBO, too.
    Thanks for help in advance!
    Best regards
    Marian

    Hi Marian,
    Your Error "10 - Customer´s tax ID not defined OINV.LicTradNum" is not working (through DI and in SBO)
    occurs because your "Federal Tax ID" is not set up against the Business Partner. (This is on the main page of the Business Master Data Screen).
    Set this up and it will work in SBO and the DI API!

  • Problems transporting objects from DEV to QAS

    Hi everyone,
    I have a problem trying to transport objects from an environment to another (DEV to QA) in XI. The issue is that the objects that were transported can't be visualized in the namespace; I checked the server log and it shows:
    #2.0 #2011 04 12 14:48:55:730#0-500#Error#com.sap.aii.ibdir.server.abapcache.mapping.CacheMessageMappings#
    #BC-XI#com.sap.xi.util.misc#002264940005022700000004000046FF#109943550000000004#sap.com/com.sap.xi.directory#com.sap.aii.ibdir.server.abapcache.mapping.CacheMessageMappings#PIISUSER#460#SAP J2EE Engine JTA Transaction : [6ffffff8dffffff9afffffffe0021ffffffd4]#0022649400051EE099A790C205DA1100#4DA4A4D6A0904660E1000000AC1D0177#AC1D017746594DA4AC8E000100000000#1#Thread[HTTP Worker [@678875548],5,Dedicated_Application_Thread]#Java##
    error - some message mappings could not be read
    Thrown:
    com.sap.aii.ib.core.roa.RoaMultiObjectAccessException: Attempt to access the 10 requested objects on 10 failed. Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_CreateRequestSPLocalTotalSales | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_CreateRequestSPLocalTotalSales | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_InsertTableVentaTotal_response | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_InsertTableVentaTotal_response | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_SaveFileProcessesTotalSales | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_SaveFileProcessesTotalSales | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_CheckDateProcessesResponse_To_StatementVentaTotal | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_CheckDateProcessesResponse_To_StatementVentaTotal | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_CheckDateProcessesByStore | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_CheckDateProcessesByStore | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_CalculateFileProcesses | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_CalculateFileProcesses | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_ExecuteSPLocalTotalVenta | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_ExecuteSPLocalTotalVenta | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_TiendaPOS_To_InsertUpdateTotalSales | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_TiendaPOS_To_InsertUpdateTotalSales | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_CheckDateByStore_Response | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_CheckDateByStore_Response | http://spsa.com/POS/TotalSales not found
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Message Mapping mm_SPLocalTotalVenta_response | http://spsa.com/POS/TotalSales, type XI_TRAFO from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Message Mapping mm_SPLocalTotalVenta_response | http://spsa.com/POS/TotalSales not found
         at com.sap.aii.ib.core.roa.RoaMultiObjectAccessException.newObjectAccessNotCompleted(RoaMultiObjectAccessException.java:98)
         at com.sap.aii.ib.core.roa.RoaServiceImpl.createObjectArrayFromRoaOutput(RoaServiceImpl.java:351)
         at com.sap.aii.ib.core.roa.RoaServiceImpl.readObjectsImpl(RoaServiceImpl.java:256)
         at com.sap.aii.ib.core.roa.RoaServiceImpl.readObjects(RoaServiceImpl.java:367)
         at com.sap.aii.ibdir.server.abapcache.mapping.CacheMessageMappings.addContent(CacheMessageMappings.java:104)
         at com.sap.aii.ibdir.server.abapcache.mapping.CacheMessageMappings.addContent(CacheMessageMappings.java:66)
         at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:480)
         at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.processHTTPRequest(CacheRefreshRequest.java:210)
         at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.handleHTTPRequest(CacheRefreshRequest.java:135)
         at com.sap.aii.ibdir.server.abapcache.HmiMethod_CacheRefresh.process(HmiMethod_CacheRefresh.java:70)
         at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:167)
         at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:212)
         at com.sap.aii.utilxi.hmis.sbeans.HmisBeanImpl.process(HmisBeanImpl.java:98)
         at sun.reflect.GeneratedMethodAccessor375.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
         at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
         at $Proxy1696.process(Unknown Source)
         at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:331)
         at com.sap.aii.utilxi.hmis.web.workers.HmisExternalClient.doWork(HmisExternalClient.java:100)
         at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:532)
         at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doGet(HmisServletImpl.java:676)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
         at com.sap.engine.services.servlets_jsp.server.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:124)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:461)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
         at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:243)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
         at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    I hope anyone can help me with this.
    Regards,
    Julio

    Hi,
    The problem is that I can't transport any object (Datatypes, message types, service interface, message mapping, etc.) in XI from DEV to QAS.
    I did all the steps to transport objects:
    1. Export the objects from XI-DEV
    2. Import them in XI-QAS
    3. A message of successfull import is shown; however the objects can't be visualized. When I check the log it shows the message that I copied in my previous post.
    Hope you can help me.
    Thanks.

  • How to create object from Table?

    Hi all,
    Is there any command to create an object type from a table?
    I i want to that command to create object type from emp table insted of typing the following command:
    CREATE TYPE emp_t AS OBJECT
    (empno NUMBER(6),
    ename VARCHAR2(25),
    job VARCHAR2(10),
    mgr NUMBER(6),
    hiredate DATE,
    sal NUMBER(8,2),
    comm NUMBER(2,2))
    any help would highly be appriciated.
    Thank you in advance,
    Alireza

    Hi Jafar,
    Thanks for your attention,
    I dont want to create synonym,
    I just want to create some Object types and work with XMLDB and create xsd or somthing like that using XMLDB packages.
    I supose There shold be a simple way to do that.
    Alireza

  • Creating objects from .xsd

    It is easy to construct objects in a oracle database that produce xml files with nested tables etc.
    What i'm looking for is a utility that creates the pl/sql code for the construction of those objects from a .xsd file !
    Anyone?

    You and me both, eppo.
    Supposedly 9iR2 has some tools that support this, but I don't know where to find them.

  • Having trouble with creating objects from instances created with ClassLoade

    Hi.
    I'm having a bit of trouble with casting an instance of an object from a custom ClassLoader. Don't worry - the code isn't for anything sinister - it's for one of those life simulation thingies, but I want to make it modular so people can write their own 'viruses' which compete for survival. You know the score.
    Anyway. I've got the beginnings of my main class, which seems to load the class data for all 'virus' classes in a folder called 'strains'. There is a abstract class called AbstractVirus which declares the method calls for how the viruses should behave and to get textual descriptions, etc. AbstractVirus is to be subclassed to create working virus classes and these are what my main class is trying to load instances of.
    Unfortuantely, I can't cast the instances into AbstractVirus objects. The error I've been getting is 'ClassCastException' which I presume is something to do with the fact that my ClassLoader and the Bootstrap ClassLoader aren't seeing eye-to-eye with the class types. Can anyone help? This line of programming is really new to me.
    My code for the main class is below:
    /* LifeSim.java */
    public class LifeSim {
      public LifeSim() {
        /* Get a list of all classes in the 'strains' directory and store non-
         * abstract classes in an array. */
        Class virusClasses[] = null;
        try {
          /* Get a reference to the file folder 'strains' and make sure I can read
           * from it. */
          java.io.File modulesFolder = new java.io.File("strains");
          if (!modulesFolder.isDirectory() || !modulesFolder.canRead()) {
         System.out.println("Failed to find accessible 'strains' folder");
         System.exit(-1);
          /* Get a list of all the class files in the folder. */
          String virusFiles[] = modulesFolder.list(new ClassFileFilter());
          if (virusFiles.length == 0) {
         System.out.println("No virus strains in 'strains' folder");
         System.exit(-1);
          /* Create an array of class objects to store my Virus classes. Ignore the
           * abstract class as I cannot instantiate objects directly from it.*/
          virusClasses = new Class[virusFiles.length];
          VirusClassLoader classLoader = new VirusClassLoader();
          int j = 0;
          for (int i = 0; i < virusFiles.length; i++) {
         String virusName = "strains/" + virusFiles;
         Class tempClass = classLoader.loadClass(virusName);
         if (tempClass.getName().compareToIgnoreCase("strains.AbstractVirus") != 0) {
         virusClasses[j++] = tempClass;
    } catch (ClassNotFoundException ncfe) {
    System.out.println("Failed to access virus class files.");
    ncfe.printStackTrace();
    System.exit(-1);
    /* TEST CODE: Create an instance of the first virus and print its class
    * name and print details taken from methods defined in the AbstractVirus
    * class. */
    if (virusClasses.length > 0) {
    try {
         // Print the class name
         System.out.println(virusClasses[0].getName());
         Object o = virusClasses[0].newInstance();
         strains.AbstractVirus av = (strains.AbstractVirus) o;
         // Print the virus name and it's description
         System.out.println(av.getQualifiedName());
         System.out.println(av.getDescription());
    } catch (InstantiationException ie) { ie.printStackTrace(); }
         catch (IllegalAccessException iae) { iae.printStackTrace(); }
    public static void main(String args[]) {
    new LifeSim();
    class ClassFileFilter implements java.io.FilenameFilter {
    public boolean accept(java.io.File fileFolder, String fileName) {
    if (_fileName.indexOf(".class") > 0) return true;
    return false;
    class VirusClassLoader extends ClassLoader {
    private String legalClassName = null;
    public VirusClassLoader() {
    super(VirusClassLoader.class.getClassLoader());
    public byte[] findClassData(String filename) {
    try {
    java.io.File sourcefile = new java.io.File(filename);
    legalClassName = "strains." + sourcefile.getName().substring(0,sourcefile.getName().indexOf("."));
    java.io.FileInputStream fis = new java.io.FileInputStream(sourcefile);
    byte classbytes[] = new byte[fis.available()];
    fis.read(classbytes);
    fis.close();
    return classbytes;
    } catch (java.io.IOException ioex) {
    return null;
    public Class findClass(String classname) throws ClassNotFoundException {
    byte classbytes[] = findClassData(classname);
    if (classbytes == null) throw new ClassNotFoundException();
    else {
    return defineClass(legalClassName, classbytes, 0, classbytes.length);
    Thank you in advance
    Morgan

    Two things:
    I think your custom ClassLoader isn't delegating. In general a ClassLoader should begin by asking it's parent ClassLoader to get a class, and only if the parent loader fails get it itself. AFAIKS you could do what you're trying to do more easilly with URLClassLoader.
    Second, beware that a java source file can, and often does, generate more than one class file. Ignore any class files whose names contain a $ character. It's possible you are loading an internal class which doesn't extend your abstract class.

  • Create object from AS3

    im trying to create objects based on number i input on a textbox
    here is the image and code :
    // Image
    // codes
    import flash.events.MouseEvent;
    var circle:Shape = new Shape();
    var i:int;
    var j:int;
    myBtn.label = "Show";
    var a:Number = Number(text1.text);
    myBtn.addEventListener (MouseEvent.CLICK,createCircle);
    function createCircle (event:MouseEvent):void{
        for (i = 1;i<=a;i++){
            for (j = 1;j<=a;j++){
                circle.graphics.beginFill(0xFF0000, 1);
                circle.graphics.lineStyle(5, 0x000000);
                circle.graphics.drawCircle(j*50 + j*20, i*50 + i*20, 25);
                circle.graphics.endFill();
                addChild(circle);
    can someone help me ??
    thanks

    i can apply the mc with tween already
    but the circle create tweening when other circle create which i want it to stop when it finish and then the other circle tween
    i try using array to the mc but i think i mess up in the code
    can some1 help me ??
    // here is the code
    import flash.events.MouseEvent;
    import flash.ui.Mouse;
    import fl.transitions.Tween;
    import fl.transitions.easing.Strong;
    import fl.transitions.TweenEvent;
    var i:int = 1;
    var a:int;
    var myMC:MovieClip = new MovieClip();
    var myTween:Tween;
    var myArray:Array = new Array();
    myMC.name = "mc1";
    myBtn.label = "Show";
    myBtn.addEventListener (MouseEvent.CLICK,showCircle);
    function timing (event:MouseEvent):void{
        a = int(text1.text);
        var myTimer:Timer = new Timer(500,a);
        myTimer.addEventListener(TimerEvent.TIMER,  createCircle);
        myTimer.start();
    function createCircle (event:Event):void{
        a = int(text1.text);
        myMC.graphics.beginFill(0xFF0000, 1);
        myMC.graphics.lineStyle(5, 0x000000);
        myMC.graphics.drawCircle(200, 150 + i*50 , 25);
        myMC.graphics.endFill();
        myArray.push(myMC);
        i++;
    function showCircle (e:MouseEvent):void{
            a = int(text1.text);
            var myTimer:Timer = new Timer(500,a);
            myTimer.addEventListener(TimerEvent.TIMER,  createCircle);
            myTimer.start();
            addChild (myMC);
            myTween = new Tween(myMC, "x", Strong.easeOut, 50, 400, 2, true);
    and the circle didnot restart when i input a new number to the inputbox
    for example when i first input 3 in the textbox, it create up to 3 circle
    when i change the number to 4 , the circle add 4 to the previous 3 circle rather than create new 4 circle
    how do i solve this ??
    thanks

  • Problem creating pdf from multiple files

    Hello,
    I'm running Windows XP SP3 with Adobe Acrobat Standard 8.2.1.  When I try to create a one pdf from multiple files in Adobe Standard 8.2.1 the application just closes.  The two files I'm trying to combine into 1 pdf file are word files.   I'm able to create a single pdf of each word file by opening them separately in word and sending them to the acrobat printer.  I've tried combining other files also, but had no luck.  Windows events doesn't log anything under applications and no error message pops up when the application closes.
    Anybody have any ideas how to troubleshoot this issue or what could be causing the applicaton to just close? 

    I've read many discussions about Acrobat and problems with server files, with the general solution being what you are doing... copy the files to a local hard drive

  • Problems creating PDF from JPEGs.

    I am using Acrobat Standard 6.0.5. I am having trouble creating a PDF from certain JPEGs. I created these JPEGs using a scanner and Photoshop Elements 5, saving them as 8-bit grayscale at 300dpi. When I create a PDF from these JPEGs in Acrobat, I get a blank, 1 inch x 1 inch image. I've tried zooming in and out and the image is still blank. The funny thing is that I can extract the JPEGs from the newly created PDF, so they are somehow present; I just can't see them.
    Some other data points:
    1. I can create a PDF from JPEGs from my digital camera. These are 180 dpi, 24-bit color, but otherwise I don't see any notable differences.
    2. I've tried converting the problematic JPEGs to 24-bit color. That made no difference.
    3. I've tried converting the problematic JPEGs to JPEG2000. That *did* make a difference -- I can create a PDF from them just fine.
    4. I can open the problematic JPEGs in Photoshop Elements and *print* them to PDF. That works just fine.
    There's obviously something about these files that Acrobat doesn't like, or else some configuration setting in Acrobat that needs to be adjusted, but I can't figure out what it is.
    Thanks in advance!

    JPegs are often problems. You might try saving to TIFF instead, the standard for scanners.

  • Problem creating Object Proxy

    Hi Gururs!!
    I want to create an object Proxy through SE80 using a WSDL file. When I try this, I get the error message:
    <i>"Cannot generate proxy (object schema missing in WSDL).</i>
    I think the conflictive part of the WSDL is:
    - <s:element name="GetProductServiceCodeResponse">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1" name="GetProductServiceCodeResult">
    - <s:complexType>
    - <s:sequence>
    <b><s:element ref="s:schema" /></b>
      <s:any />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>
    Is possible that the element ref is not supported by NetWeaver 2004s?
    Helpful answers will be rewarded.
    Thanks in advance and regards,
    Manuel.

    Problem Solved !
    Put server aliases in SICF.

  • Reflection problem: Creating Objects

    The Reflection Tutorial mentions this line "Fortunately, with the reflection API you can create an object whose class is unknown until runtime" but the examples given are hardcoding the classnames!!!
    Here is the example given
    class SampleNoArg {
    public static void main(String[] args) {
    Rectangle r = (Rectangle) createObject("java.awt.Rectangle");
    System.out.println(r.toString());
    static Object createObject(String className) {
    Object object = null;
    try {
    Class classDefinition = Class.forName(className);
    object = classDefinition.newInstance();
    } catch (InstantiationException e) {
    System.out.println(e);
    } catch (IllegalAccessException e) {
    System.out.println(e);
    } catch (ClassNotFoundException e) {
    System.out.println(e);
    return object;
    now how do i create a object at runtime without 'really' knowing what its class is. The following will definitely not work and am providing it as additional help in making others understand my problem.
    String cName = c.getName(); // fully-qualified name
    Object o = c.newInstance();
    if ( ( (cName)o).compareTo(...) ) {...}
    // where it is assumed that c is a Class i got previously, and that the class implements the Comparable interface.
    So anybody has any idea on how to do this? Thanks in advance.

    If you're talking specifically about comparing Objects that may or may not implement comparable, I suggest you create your own Comparator implementation that will work with any of the objects you are expecting to create.
    If you are talking about executing methods on general objects, there are two cases:
    1. Your object implements a known interface. In this case, you can check for this, using instanceof, and cast the object in order to call the required method.
    2. Your object should have a known method. In this case, use Class.getDeclaredMethod to retrieve a Method instance, and then execute that.
    RObin

  • Problem creating  image from a data vector

    Hello i have a problem in this aplication.
    I get a image from a web cam. I want to put the original image in a file and the negative image in another file (in this example is not the negative image, is just a white image). The problem is when i use setData method. The image become black. If I use setFormat method the new image is the original image.
    Here is the code with problems:
    imageBuffer = frameGrabbingControl.grabFrame();
    theData = new int[dataLength];
    theData = (int[]) imageBuffer.getData();
    for (int y = 0; y < videoHeight - imageScanSkip; y+=imageScanSkip) {
    for (int x = 1; x < videoWidth - imageScanSkip; x+=imageScanSkip)
    theData[y*videoWidth+x]=Integer.parseInt("FFFFFF",16);
    Buffer b1=new Buffer(); //This is the new buffer in which i want to put the new pic
    b1.setData(theData);
    //here i create the 2 files frst from the original buffer and second from the new buffer b1
    Image img = (new BufferToImage((VideoFormat)imageBuffer.getFormat()).createImage(imageBuffer));
    Image img1 = (new BufferToImage((VideoFormat)b1.getFormat()).createImage(b1));
    BufferedImage buffImg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
    BufferedImage buffImg1 = new BufferedImage(320,240, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = buffImg.createGraphics();
    Graphics2D g1 = buffImg1.createGraphics();
    g.drawImage(img, null, null);
    g1.drawImage(img1, null, null);
    try{
    ImageIO.write(buffImg, "jpg", new File("c:\\webcam.jpg"));
    ImageIO.write(buffImg1, "jpg", new File("c:\\webcam1.jpg"));
    catch (Exception e){}
    the webcam1.jpg file is black(it should be white).
    If i put "b1.setFormat(imageBuffer.getFormat());" the webcam1.jpg will be same the file as webcam.jpg

    Hello i have a problem in this aplication.
    I get a image from a web cam. I want to put the original image in a file and the negative image in another file (in this example is not the negative image, is just a white image). The problem is when i use setData method. The image become black. If I use setFormat method the new image is the original image.
    Here is the code with problems:
    imageBuffer = frameGrabbingControl.grabFrame();
    theData = new int[dataLength];
    theData = (int[]) imageBuffer.getData();
    for (int y = 0; y < videoHeight - imageScanSkip; y+=imageScanSkip) {
    for (int x = 1; x < videoWidth - imageScanSkip; x+=imageScanSkip)
    theData[y*videoWidth+x]=Integer.parseInt("FFFFFF",16);
    Buffer b1=new Buffer(); //This is the new buffer in which i want to put the new pic
    b1.setData(theData);
    //here i create the 2 files frst from the original buffer and second from the new buffer b1
    Image img = (new BufferToImage((VideoFormat)imageBuffer.getFormat()).createImage(imageBuffer));
    Image img1 = (new BufferToImage((VideoFormat)b1.getFormat()).createImage(b1));
    BufferedImage buffImg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
    BufferedImage buffImg1 = new BufferedImage(320,240, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = buffImg.createGraphics();
    Graphics2D g1 = buffImg1.createGraphics();
    g.drawImage(img, null, null);
    g1.drawImage(img1, null, null);
    try{
    ImageIO.write(buffImg, "jpg", new File("c:\\webcam.jpg"));
    ImageIO.write(buffImg1, "jpg", new File("c:\\webcam1.jpg"));
    catch (Exception e){}
    the webcam1.jpg file is black(it should be white).
    If i put "b1.setFormat(imageBuffer.getFormat());" the webcam1.jpg will be same the file as webcam.jpg

Maybe you are looking for