Java class reference error in Portal Application

Hello,
I have created a Portal Application Project with the Class
"public class TEST extends AbstractTestComponent implements ITestable"
in order to test the application.
The test works fine with a simple code.
Instead, using the external class HSSFWorkbook in order to create an excel file, the Enterprise Portal Unit Test return the following error:
"java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook"
I have tried to put the ZIP file of class into the folder "dist/PORTAL-INF/lib" and "dist/PORTAL-INF/exlib" but it doesn't work.
Can someone tell me what I have to do?
Thanks and best regards,
Matteo.
Edited by: Matteo De Santis on Feb 10, 2009 7:22 PM

Hi,
note that a portal application has two classloaders. one for the public part (src.api) and one for the private one (src.core).
portal components reside in src.core by default. this means you need to load your jar file to the private class loader.
so instead of dist/PORTAL-INF/lib use dist/PORTAL-INF/private/lib
Regards, Lior

Similar Messages

  • Runtime Error in Portal Application

    Can any body help me in resolving the following runtime error in portal application, (Netweaver Version : 7.0)
    Full Message Text
    03:21_21/09/11_0002_6275851
    [EXCEPTION]
    java.lang.NoClassDefFoundError: org.apache.commons.httpclient.methods.RequestEntity
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java:69)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:152)
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
    at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
    at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
    at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:271)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:316)
    at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:387)
    at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:488)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:540)
    at java.security.AccessController.doPrivileged(AccessController.java:246)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:423)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:219)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.methods.RequestEntity
    Found in negative cache

    Hi,
    this exception seems caused by a missing interface org.apache.commons.httpclient.methods.RequestEntity. Please the following ones:
    http://www.jarfinder.com/index.php/java/info/org.apache.commons.httpclient.methods.RequestEntity
    Br,
    Javier

  • Error in portal application for sending email.

    Hi experts,
    I am trying an portal application which sends email .
    I took the the reference from the following blog,
    [Sending attachments in mails|Sending attachments in mails]
    While running the application the program is terminating with
    an error in the   Transport.send(message);   statement in the above blog
    I have put the mail.jar and activation.jar files in the private lib under portal inf
    Please provide me with any suggestions or any relevant documents.
    Fruitful solutions will be rewarded
    Thanks

    You can use this code for Achiving Sending of mail,
    import java.io.*;
    import java.util.*;
    import sun.net.smtp.SmtpClient;
    public class SMTP extends Thread{
         public String whoto;
         public String username;
         public String whofrom;
    /* our constructor */
    public SMTP(String whoto, String username, String whofrom){
              this.whoto = whoto;
              this.username = username;
              this.whofrom = whofrom;
    /* run method for multithreading */
         public void run(){
              doGet();
         public void doGet( )
         try {
              SmtpClient smtp =
                               new SmtpClient("yourdomain.com");
              smtp.from(whofrom);
              //Pass the email address of the recipient of the
              // message to the next method.
              smtp.to(whoto);
           //Get an output stream for the message
              PrintStream msg = smtp.startMessage();
              //Write the message header in the output stream.
              msg.println("To: "+whoto);
              msg.println("Subject: New Email");
              msg.println();
              //Write the text of the message in the output
              // stream
              msg.println("An event has happened.");
              msg.println("Please do not reply to this automated email.");
           //Close the stream and send the message
              smtp.closeServer();
         }catch( Exception e ) {
           e.printStackTrace();
    This method is called by:
    IUser loggedOnUser = (IUser) request.getUser().getUser()
    SMTP mysmtp = new SMTP(whoto, loggedOnUser.getName(), whofrom);
    mysmtp.start(); // starts the thread
    Cheers!!
    SJ

  • Classpath error in portal application

    Hi
    <b>first problem</b>
    when i am going to deploy the sample portal application for example displaying the "Hello world" message in the output, so i am getting the classpath error as displayed below.
    <b>"The project was not built due to classpath errors(imcomplete or involved in cycle)"</b>
    can any one help where should i change the classpath and all to deploy the portal application successfully".
    <b>second problem</b>
    when i am going to write the code in the dynpage in the portal for example
    suppose if i want to add group to form then i type
    formobjectname.groupname;
    when i press . the entire list of possiblites are not apperaing in the list.
    pls help on this two.
    will award max points, if i slove
    Regards
    Sunil

    Dear Sunil,
    To answer your second question first:
    You ae'nt getting the list of methods/possibilities because the correct package/class is not imported. e.g. If you do not include com.sap.security.api.* you will not get the list of methods associated with any class falling under that package.
    The first problem: I really suggest that you download classlocator from sourceforge.net. It is easily plugges into NWDS. Double Click the error message and see it completely. I guess you would get one more message stating which class cannot be found. Once you install Class locator, you can easily type the class in the application and it will automatically add that Jar file in your classpath thus solving your issue.
    Regards,
    Prem
    SAP.

  • Dynamic Type Conflect when assigning References error in portal

    Hi Forum,
    We have one ABAP Dynpro Application which runs fine but gives "Dynamic Type conflict when assigning References" error dump after integrating it with Netweaver portal 7 SP12 by creating Webdynpro ABAP iview.
    Please help us to resolve this issue.
    Thanks and Regards
    Sudhir

    hi
    refer this article :
    How to Create Web Dynpro-Based iViews
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3e36d690-0201-0010-cd99-bfbb81bd33d9
    refer the SAP online help :
    Create a Web Dynpro iView
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/00584289e59041e10000000a1550b0/content.htm
    regards,
    amit

  • Java Class Upload Option In Portal

    Hello,
    In portal under tab database objects-->under schema--> u have an option to create Java Object right.
    Could some one explain how to call the uploaded java class from a portlet?
    Any help is highly appreciable.
    Thanks
    Arun

    Hi,
    note that a portal application has two classloaders. one for the public part (src.api) and one for the private one (src.core).
    portal components reside in src.core by default. this means you need to load your jar file to the private class loader.
    so instead of dist/PORTAL-INF/lib use dist/PORTAL-INF/private/lib
    Regards, Lior

  • Java iView runtime error while portal  startup

    Hi ,
    I am facing a problem in starting up the portal .
    It was working Fine, But i had to restart it manually through the visual administrator .The J2ee server has started up but not the portal .
    following is the error i am getting
    Java iView Runtime
    Version : 6.4.200512140312
    + Copyright 2002 SAP AG. All rights reserved.
    An exception occured while processing your request.
    com.sapportals.portal.prt.dispatcher.DispatcherException: Could not find connection portal
    com.sapportals.portal.prt.dispatcher.DispatcherException: Could not find connection portal
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Exception.<init>(Exception.java:41)
         at com.sapportals.portal.prt.dispatcher.DispatcherException.<init>(DispatcherException.java:45)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:528)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:312)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:368)
         at com.sap.portal.navigation.Gateway.service(Gateway.java:101)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    If this situation persists, please contact your system administrator
    Restarting the whole system didn't help too.
    I found  that ppl faced this problem , but there was no solution given to any . Can anyone help me in bringing up the portal
    Thanks in Advances
    Lakshmi

    Hi Vaibhav ,
    DB is running fine , J2EE server is also up .
    Below is the log from  defaulttrace. we got an error while deploying a par file, and it didn't let us to deploy any par files , then we restarted the system and since then we are facting htis problem. Any chances that an application arroe could bring the whole portal server down? If so can you let me know how to trace and fix it
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process<u><b>(ApplicationSessionMessageListener.java:30)#</b></u>
    _0##0#0#Error##Plain###<u><i><b>com.sapportals.portal.prt.dispatcher.DispatcherException: Could not find connection portal#</b></i></u>
    #1.5#000255532C17004000000AE6000008370004108DF574116A#1144101801300#System.err#sap.com/irj#System.err#Guest#647####aa09ba30c35d11dab15d000255532c17#SAPEngine_Application_Thread[impl:3]_0##0#0#Error##Plain###     at java.lang.Throwable.<init>(Throwable.java:194)#
    #1.5#000255532C17004000000AE7000008370004108DF57411DA#1144101801300#System.err#sap.com/irj#System.err#Guest#647####aa09ba30c35d11dab15d000255532c17#SAPEngine_Application_Thread[impl:3]_0##0#0#Error##Plain###     at java.lang.Exception.<init>(Exception.java:41)#
    Thanks,
    lakshmi

  • Link between classes: Reference Error

    Hi,
    I am still trying to create a movie clip array to make a list of objects appear on stage and have the user interact with them.
    This will be my game loop class called "LetterArray()".
    My main class is called "BugGoopFSGame()".
    After I add the line of code below into my LetterArray(). as class file I get the error message below:
    Code entered:
    private var  lettersL1:Array = new Array[a,f,g,h,i,n,o,s,t];
    This is the error message I get:
    ReferenceError: Error #1069: Property [object T] not found on S and there is no default value.
        at LetterArray()
        at BugGoopFSGame()
    I am sure the reference I use between the two files are not good. Can you please tell me what code I should add and where.
    Thanks for your help!
    Charine
    This is the code in my main class - BugGoopFSGame()
    package
        import flash.display.*;
        import flash.utils.Timer;
        import flash.events.*;
        import flash.events.MouseEvent;
        import flash.media.Sound;
        import flash.events.Event;
        import flash.media.SoundChannel;
        import flash.media.SoundMixer;
        import flash.media.SoundTransform;
        import flash.text.*;
        import flash.net.URLRequest;
        public class BugGoopFSGame extends MovieClip
            public var mybackground:BackGround;
            public var letterArray:LetterArray = new LetterArray(stage); //this is how I link from main to gameloop
    This is the coce in my gameloop class - LetterArray()
    package
        import flash.display.*;
        import flash.events.*;
        import flash.text.*;
        import flash.utils.Timer;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.net.URLRequest;
        public class LetterArray extends MovieClip
            private var _stage:Stage; //this reference works well to the main file. Should I somehow link it to the errorous code below?
            /*Movie clips that need to go into an array    */
            //level 1
            public var a:A = new A();
            public var f:F = new F();
            public var g:G = new G();
            public var h:H = new H();
            public var i:I = new I();
            public var n:N = new N();
            public var o:O = new O();
            public var s:S = new S();
            public var t:T = new T();
            private var letterArray:Array;
            private var  lettersL1:Array = new Array[a,f,g,h,i,n,o,s,t]; //this is the line that causes the error. I am sure it is because I need to add something to the main class.

    if, for example, A is a class name, you should use "A" and then use getDefinitionByName() to retrieve the class reference from the string.
    private var  lettersL1:Array = new Array['A','F','G','H','I','N','O','S','T'];
    for(var i:int=0;i<lettersL1.length;i++){
    var C:Class=Class(getDefinitionByName(lettersL1[i]));  // import flash.utils.getDefinitionByName
    var c:*=new C(); // create instances from the classes in lettersL1
    // do whatever with c
    or, move those instanciation statements into your LetterArray constructor or somewhere beyond like:
    package
        import flash.display.*;
        import flash.events.*;
        import flash.text.*;
        import flash.utils.Timer;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.net.URLRequest;
        public class LetterArray extends MovieClip
            private var _stage:Stage; //this reference works well to the main file. Should I somehow link it to the errorous code below?
            private var letterArray:Array;
            private var  lettersL1:Array; //this is the line that causes the error. I am sure it is because I need to add something to the main class.
            public function LetterArray(ss:Stage):void{
                var a:A = new A();
                var f:F = new F();
                 etc
                lettersL1 = [a,f,...]
                _stage = ss;

  • Executing one system command from one java class. ERROR. Please help me

    Hello i am trying to add users into one linux machine using one jaav program but when i execute the java class the system doesn't show me any error and dont make anything.
    The linux command, in the main of the class, is correct; from thelinux shell it runs well, but from the java class it doesn't run.
    Can you help me please?
    thanks
    import java.io.*;
    public class ejecutaUsuario {
    /** Creates a new instance of ejecutaUsuario */
    public ejecutaUsuario(String cmdline) {
    try {
    String line;
    Process p = Runtime.getRuntime().exec(cmdline);
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(p.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    input.close();
    catch (Exception err) {
    err.printStackTrace();
    System.out.println(err);
    public static void main(String argv[]) {
    String passwd="hola";
    String usuarioInterno="xxxxxx";
    new ejecutaUsuario("/bin/sh useradd -p `openssl passwd -1 -salt 12345678 " + passwd + "` -d /home/" + usuarioInterno + " -m -s /bin/bash " + usuarioInterno);

    Try gettting the error input stream as well (getErrorStream()). Maybe you are getting output there.
    You might want to try just executing the 'useradd' part, getting the output stream of that process, and then put the parameters of useradd into the outputstream.
    Later
    Cardwell

  • Windows classpath vs java.class.path error in QuickTime based applet

    Hello
    I've spent days reading and searching the internet, and I'm still stumped why some Windows installations are not able to run my QuickTime for Java based applet even though QuickTime is installed (the specific error is: java.lang.NoClassDefFoundError: quicktime/QTException). I have some additional details and a question that might spur someone to an insightful nudge.
    On a Windows system that fails:
    echo %classpath%
    .;C:\Program Files\QuickTime\QTSystem\QTJava.zipWhich is where QTJava.zip is found on the (faulty?) system, but java.class.path is just:
    java.class.path = C:\PROGRA~1\Java\jre6\classes
    Of the dumped system properties, only java.library.path makes any mention of the QTSystem folder (or any other QT or QuickTime related items).
    java.library.path = C:\Program Files\Safari;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PROGRA~1\Java\jre6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\
    I ran across one thread (elsewhere) where the user was having problems with loading some classes from a complex JAR environment, and a solution was to write a custom class loader. After doing so, the user got the same error "java.lang.NoClassDefFoundError: quicktime/QTException" that was resolved by extending the custom class loader to include .zip files. I'm not sure if the solution is relevant, or if he simply broke something in his custom class loader that would have worked otherwise. I've not written a custom class loader and not sure where to begin, so before I ventured down that path I was hoping someone might shed some light as to if this is a dead end or potential solution. This is a signed applet (QuickTime now requires it, even if you are only playing files of the same server) and it does work on several Windows machines and all tested Macs.
    Thank you,
    Deron
    output to Java Console with level 5 tracing enabled
    basic: Joining applet thread ...
    basic: Joined applet thread ...
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=2
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=1
    basic: Done ...
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@3a9bba
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: completed perf rollup
    network: Cache entry not found [url: http://www.equushd.com/quicktime/QTException.class, version: null]
    network: Connecting http://www.equushd.com/quicktime/QTException.class with proxy=DIRECT
    network: Connecting socket://www.equushd.com:80 with proxy=DIRECT
    java.lang.NoClassDefFoundError: quicktime/QTException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: quicktime.QTException
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 10 more
    basic: Exception: java.lang.NoClassDefFoundError: quicktime/QTException
    Ignored exception: java.lang.NoClassDefFoundError: quicktime/QTException

    Something is wrong with the library.
    Staring at java code will not help you figure that out.
    Maybe it isn't intended to be loaded in java but instead it loads java itself?
    If not then write a C/C++ basic app that links that dll in and see if you can at least get it to start.

  • Problem When Import Java Class -compilation error

    Hi all
    I made a java class that has methods to return Screen width and Height .
    package tarek;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    public class Screen
    Dimension dim ;
    public Screen()
    dim = Toolkit.getDefaultToolkit().getScreenSize();
    public double getWidth()
    double w = dim.getWidth();
    return w;
    public double getHeight()
    double h=dim.getHeight();
    return h;
    I made the jar file " screen.jar" and make it ready to use in form builder
    I opened form builder and make import java class (From program>import java class>choose the class anc click import)
    The class now imported successfully and the PL/SQL package body is:
    PACKAGE Screen /* tarek.Screen */ IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    END;
    Now I made a button on the form and i WRITE THIS CODE TO INVOKE THE CLASS on when_button_pressed
    DECLARE
         vScreen_Class ORA_JAVA.JOBJECT;     
    BEGIN
         vScreen_Class := SCREEN.NEW;
    END;
    My problem is I have compilation error
    error 306 AT LINE 5 , COLUMN 25
    wrong number or types of argument in call to "NEW"
    I do not know what is the reason of this compilation error?
    Is it because the method in java return "double datatype" while in oracle return "number datatype"
    Please help
    Edited by: [email protected] on Dec 28, 2009 10:24 AM

    Sarah, I ca not move my thread to JDeveloper because it is not java issue. The problem is with my PL/SQL code and the way I make Import Java class to forms Builder. The Java code is OK.
    Andreas Thank you so much for replying. In fact I made a full compile "Ctrl+Alt+K". but still error
    The following is the package Body
    PACKAGE BODY Screen IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    args := NULL;
    RETURN (JNI.NEW_OBJECT('tarek/Screen', '()V', args));
    END;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getHeight', '()D', args);
    END;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getWidth', '()D', args);
    END;
    BEGIN
    NULL;
    END;
    ---------------------------------------------------------------------------------

  • Java class import error

    Hi ,
    I unable to import the java class into the peoplecode. while i am import it into my peoplecode i got the error message
    like,
    *Calling Java java.util.regex.Pattern.matcher: no overload matches. (2,743) TEST.SAVE_PB.FieldChange  PCPC:379  Statement:4
    While calling the given Java method, no overload was found with a parameter signature that matches the supplied parameter types.*
    the following codes are i used to import.
    Local JavaObject &pattern = GetJavaClass("java.util.regex.Pattern");
    Local JavaObject &matcher = GetJavaClass("java.util.regex.Matcher");
    any one suggest me a better solution to import these class into my peoplecode.

    Hi jim,
    again i getting the checking patter issue,
    Local JavaObject &pattern = GetJavaClass("java.util.regex.Pattern");
    Local JavaObject &matcher = GetJavaClass("java.util.regex.Matcher");
    &pattern = &pattern.compile("[!#$%&'()*+,-./\:;<=>?@[]^_{|}~]");
    TEST.OUTPUTSTRING = &pattern.matcher(CreateJavaObject("java.lang.String", TEST.INPUTSTRING.Value)).replaceAll("\\\a");
    from the above code i need to replace a character in which the characters matched from the pattern.
    &pattern = &pattern.compile("[!#$%&'()*+,-./\:;<=>?@[]^_{|}~]");
    while ran the above line i got the error like
    *Java Exception: java.util.regex.PatternSyntaxException: Unclosed character class near index 31
    [!#$%&'()*+,-./\:;<=>?@[]^_{|}~]
    ^: during call of java.util.regex.Pattern.compile. (2,763) TEST.SAVE_PB.FieldChange PCPC:331 Statement:3
    is there any other way to assign a pattern to check the condition..?

  • Import java classes Exception Error in Forms 10g

    Hi,
    I have created a jar file using JDeveloper and need to import it in my Forms 10g to be able to call web services. In my forms builder, after I click on Program - Import Classes and give the name of the stub I created, it gives me the following error :
    Exception occurred: java.lang.ClassNotFoundException:
    I am following the step by step instructions of OTN
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm
    In the above documentation, where it says "Call the Stub from a Forms Application", point no. 1, it tells to go to control panel - system - advanced - environment variables and edit CLASSPATH. The problem is that in my variable, I cannot see CLASSPATH, it has PATH. I had added my jar file in there. Is it because of this that I'm getting the error.
    After that I have added the jar file in default.env in CLASSPATH.
    I would appreciate your urgent help in this matter.
    Thanks in advance.

    Well you can create a new variable called CLASSPATH - however, if you are actually seeing the JAR file in the Java Importer then that would assume you are infact seeing the JAR file.
    DO you get this problem if you JAR up a simple "Hello world" - if could be that you are not importing all the classes needed . What Jdeveloper version are you using - if its 10.1.3.1 and JAXRPC web services you may need to add an additional JAR to the class.
    Luckily for you ...check out...
    http://groundside.com/blog/GrantRonald?title=want_to_know_how_to_call_web_services_fr&more=1&c=1&tb=1&pb=1
    Regards
    Grant
    Message was edited by:
    Grant Ronald

  • Error Java System: unknow error of portal comunication

    Hi All!
    I get the following error when opening a WAD Template in the WAD Application.
    <b>"Error Java System: An unknow portal comunication error has ocurred"</b>
    After accept this error, it opens the template and I can work with it, but when I make changes, these are not reflected when executing the template, until  I open this template in other machine.
    I have reviewed the test integration (between BW and Portal) according with the steps in the spro "Integration into Portal" and the test is successful in all the steps.
    So, I dont know what can be wrong.
    Thnks a lot for your help!
    Yolanda.

    Hi,
        try this
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler
    If it does not open
    Check for OSS Note 989525
    Hope this helps you
    Regards
    Karthik

  • XML parsing error in portal application...

    Hello,
    I have this exception java.lang.NullPointerException#  with a xml like this
    <users><user><email></email></user></users>
    When email is filled like this it's worked but when it is empty no...
    <users><user><email>[email protected]</email></user></users>
    The code is like this :
    NodeList EmailList = firstPersonElement.getElementsByTagName("email");
    Element EmailElement = (Element)EmailList.item(0);
    NodeList textEmailList = EmailElement.getChildNodes();
    if (textEmailList == null)
    System.err.println("null !");
    String Email = null;
    Email = ((Node)textEmailList.item(0)).getNodeValue().trim();
    System.err.println("Email : " + Email);
    How can I resolve it ?
    Thanks a lot
    best regards

    Hello,
    my guess is that in the case of an empty <email> element, your textEmailList reference should already be null (you should also have the "null !" output in your error stream), so a NPE will be inevitable in the line
    Email = ((Node)textEmailList.item(0)).getNodeValue().trim();
    In order to prevent that, you could simply put the three lines below the if() {} construct in an else {} block:
    NodeList EmailList = firstPersonElement.getElementsByTagName("email");
    Element EmailElement = (Element)EmailList.item(0);
    NodeList textEmailList = EmailElement.getChildNodes();
    if (textEmailList == null) {
      System.err.println("null !");
    else {
      String Email = null;
      Email = ((Node)textEmailList.item(0)).getNodeValue().trim();
      System.err.println("Email : " + Email);
    Does this help?
    Best regards,
    Jens

Maybe you are looking for