Method getEP5User(IUser) is Undefined

All, I am having some difficulties accessing KM from my web dynpro application. The idea is to upload files from the clients pc to the repository. There are tons of posts on how to do this but I cant seem to find anything resembling my issue. When I try to convert my User to an EP5 user using the IUser class, i cant seem to find the method "getEP5user". Below you will find my code as well as my imports. In addition i have setup my Sharing references as describe in this blog (https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1750). Is there anything that I may be missing to check?
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
import com.sap.security.api.IUser;
import com.sapportals.portal.security.usermanagement.UserManagementException;
import com.sapportals.wcm.repository.AccessDeniedException;
import com.sapportals.wcm.repository.IResource;
import com.sapportals.wcm.repository.IResourceContext;
import com.sapportals.wcm.repository.IResourceFactory;
import com.sapportals.wcm.repository.ResourceContext;
import com.sapportals.wcm.repository.ResourceFactory;
import com.sapportals.wcm.util.content.ContentException;
import com.sapportals.wcm.util.uri.RID;
import com.sapportals.wcm.util.usermanagement.WPUMFactory;

Hi Jeremie
As far as code is concerned , there are no issues.
Try this out:
1 Right click on project select properties.
2 Goto Java Bulid path import all the required jar files .
3 Goto Order and Export tab next to java build path and click select all.
4 Click Ok.
Hope it solves ur problem.
(Reward points if found useful)

Similar Messages

  • Method fprint(String) is undefined for the type JspWriter.

    please help me with this problem
    below is the jsp code written to access the data from the database and to display it in the new page.
    <%@ page
         import = "java.io.*"
         import = "java.lang.*"
         import = "java.sql.*"
    %>
    <%
         Connection dbconn=null;
         ResultSet results;
         PreparedStatement sql=null;     
                   String empid1=request.getParameter("empids");     
              try
    String driver = "com.mysql.jdbc.Driver";
              Class.forName(driver).newInstance();
                   dbconn =DriverManager.getConnection("jdbc:mysql://localhost/hris","root","redhat");
                   int empid11;
                   empid11=Integer.parseInt(empid1);
                   sql = dbconn.prepareStatement("select * from employee where empid=?");
                   sql.setInt(1,empid11);
                   results=sql.executeQuery();
                   results.next();
    out.print("<html>");
    out.print("<head>");
    out.print("</head>");
    out.print("<body>");
    out.print("<table width=810 border=0>");
    out.print("<tr>");
    out.print("<td width=210>");
    out.print("Employee Id");
    out.print("</td>");
    out.print("<td width=584>");
    int emp=results.getInt("empid");
    out.print(emp);
    out.print("</td>");
    out.print("</tr>");
    out.print("<tr>");
    out.print("<td>");
    out.print("FirstName");
    out.print("</td>");
    out.print("<td>");
    String first=results.getString("fname");
    out.print(first);
    out.print("</td>");
    out.fprint("</tr>");
              catch (SQLException s)
                   out.println("SQL Error <br>"+s);
    catch ( Exception x )
                   x.printStackTrace();
    %>
    but when i click the submit button , the error is
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 9 in the jsp file: /HRIS/empsearch1.jsp
    Generated servlet error:
    The method fprint(String) is undefined for the type JspWriter
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 9 in the jsp file: /HRIS/empsearch1.jsp
    Generated servlet error:
    The method fprint(String) is undefined for the type JspWriter
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
    i am not able to rectify the error.

    JavaB wrote:
    Hi ,
    I have a method defined in my dataManagerDAO classIs it dataManagerDAO or DataManagerDAO?
    getNoc( strRppsId) throws Exception {}That's not a legal Java method declaration, so it's clearly not your actual declaration, so I have no idea what your actual declaration is, so I can't tell you what you're doing wrong.
    Now I am calling this method inside my JSP page :
    DataManagerDAO dataMgr = new DataManagerDAO();
    dataMgr.getNoc(strRppsId)..
    But whenver I am running it locally , it fails to compile and gives following error msg :
    The method getNoc(String) is undefined for the type DataManagerDAOQuite obviously you're calling a method getNoc(String) but that method doesn't exist on the DataManagerDAO class. No matter how much you may think you know that it does, you're wrong and the compiler is right.
    Maybe you misspelled or mis-capitalized something. Maybe you're passing the wrong type of argument. Maybe you're still using an older version of the DataManagerDAO class from before you added that method. Not enough information here to say for sure.
    ny clue wats going wrong in here ?I assume you mean "any", not "ny" and "what's", not "wats". Clear, correct, precise communication counts with folks here almost as much as it does with the Java compiler.

  • The method If(boolean) is undefined

    "The method If(boolean) is undefined "
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         The method If(boolean) is undefined for the type TestCalculator
         Syntax error, insert ";" to complete Statement
    I'm having some trouble using conditional statements in my code for some reason. I've recently had a lot of problems with my JRE's in eclipse and I thought I was finally past them. Could this error be related to something like that?
    Do I have to make any special declarations at the beginning of my code invoking the boolean method?
    Thanks

    Thanks for the help. Here's the code...
    import java.util.Scanner; // importing the scanner to be able to accept user input
    public class BensCalculator { // declaring the public class, make sure it matches the filename
         public static void main(String[] args) { // mandatory command used to cue the program's start
              Scanner scannerObject = new Scanner(System.in);
    String operator;
              int firstNumber, secondNumber;
    System.out.println("Type two single digit integers separated by spaces and one legal operator.");
    firstNumber = scannerObject.nextInt();
    If (firstNumber > 10)
    System.out.print("Error! --> Please enter an integer between 1 and 9.");
    ___________________________________________________________________________________

  • Calendar invitation errors: cannot call method 'index of' of undefined

    I added an event to iCal and it sent out some email invitaions. When people click "Accept" in their emails, they get this eror "an error has occurred which prevents application from running: cannot call method 'indexOf' of undefined". Anyone know what's going on here?

    Roginator,
    I too have been experiencing this in the past couple of days.  We have two iPhones (4s), and my wife and I add each other to our schedules.  We have tried at least 5 tests recently, and only 1 worked.  The error occurs in Safari on the iphone and also in my web browsers -Chrome, IE, and Firefox.
    Can we get someone from Apple, on the iCloud side involved with this ASAP.  I am sure many others are experiencing this.
    Thanks.

  • Tutorial ErrorBehavior method from tutorial is undefined

    Hi,
    every time I try to use the <i>reportInvalidContextAttributeMessage</i> method in the ErrorBehavior project, like it is suggested in tutorial 3, NetWeaver Developer Studio informs me that this method is undefined for the type <i>IWDMessageManager</i>.
    I did the necessary imports like adviced in the tutorial.
    Can anyone please help me in finding a solution?
    Regards,
    Stefan

    Hi Stefan,
    Following are the signatures of the method mentioned by you.
    void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
    reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
    Report an exception as error message that is associated with an invalid context attribute value.
    Parameters:
         attribute is the invalid attribute
         ex is the exception raised by some validation routine
    void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
    reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
    Report an exception as error message that is associated with an invalid context attribute value.
    Parameters:
         attribute is the invalid attribute
         ex is the exception raised by some validation routine
    Following methods are or will be depricated
    void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
    reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
    Report an exception as error message that is associated with an invalid context attribute value.
    Parameters:
         attribute is the invalid attribute
         ex is the exception raised by some validation routine
    void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
    reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
    Report an exception as error message that is associated with an invalid context attribute value.
    Parameters:
         attribute is the invalid attribute
         ex is the exception raised by some validation routine
    Regards
    Ayyapparaj

  • The method is undefined for the type

    HI I have a javabean class:
    package database;
    import java.util.*;
    import java.io.*;
    public class CompanyFormBean implements Serializable{
      private String companyparentid;          
      private String companyname;               
      private Hashtable errors;
      //private String notify;
    public boolean validate() {
        boolean allOk=true;
        if (companyname.equals("")) {
          errors.put("companyname","Please enter your Company Name.");
          companyname="";
          allOk=false;
        return allOk;
      public String getErrorMsg(String s) {
        String errorMsg =(String)errors.get(s.trim());
        return (errorMsg == null) ? "":errorMsg;
    // public CompanyFormBean(){}
      public CompanyFormBean() {
        companyparentid          = "";
        companyname               = "";
        errors = new Hashtable();
      public String getCompanyparentid() {
        return companyparentid;
      public String getCompanyname() {
        return companyname;
      public void setCompanyparentid(String fcompanyparentid) {
        companyparentid = fcompanyparentid;
      public void setCompanyname(String fcompanyname) {
        companyname = fcompanyname;
      public void setErrors(String key, String msg) {
        errors.put(key,msg);
    }after the form is submitted I try to display the values
    <%@ page import="database.CompanyFormBean" %>
    <jsp:useBean id="formHandler" class="database.CompanyFormBean" scope="session"/>
    <html>
    <head>
    <title></title>
    <meta name="Generator" content="EditPlus">
    <meta name="Author: Irene Nessa" content="">
    <meta name="Keywords" content="">
    <meta name="Description: creates a new member account" content="">
    </head>
    <body>
    <form name="reg" method="post" action="ProcessMemberRegistration.jsp" onsubmit='return formValidator()'>
    <table>
         <tr>
         <td>Create A New Account</td>
         </tr>
         <tr>
              <td>Existing Company</td>
              <td>
                   <input type="text" name="companyparentid" value='<%=formHandler.getCompanyparentid()%>'>
                   <!-- <select name="campanyparentid" onchange="setcompany(this)">
                        <option>Better Homes</option>
                        <option>Emaar</option>
                   </select>
                   <font size="" color="#FF0033"><b><i>OR</i></b></font>-->
              </td>
         </tr>
         <tr>
              <td>Company Name *</td>
              <td><input type="text" name="companyname" value='<%=formHandler.getCompanyname()%>'>
              </td>
         </tr>
    </table>
    <br>
         <br>
         <input type="reset">  <input type="submit" value='Check Form' />
    </form>
    </body>
    </html>But I keep getting the following errors:*The method getCompanyparentid() is undefined for the type CompanyFormBean* But it defind and the bean class complies. Any idea what am doing wrong.
    thanks.

    I actually got the same error in the same situation the following is my error and Stacktrace. I was trying to using AJAX to retrieve the message from DB and display it in a text area when user click a radio button. It works well untill I add a new method getMessage(String), please help!
    Mar 2, 2009 10:01:03 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 22 in the jsp file: /getmessage.jsp
    The method getMessage(String) is undefined for the type Item
    19: <jsp:setProperty name="items" property="categoryId" value="<%=catid%>" />
    20: <jsp:setProperty name="items" property="effectiveIndicator" value="C" />
    21: <%
    22: String msg = items.getMessage(id);
    23: String decodedmsg = new String(msg.getBytes("iso-8859-1"), "Big5");
    24: System.out.print("MSG: " + msg);
    25: System.out.print("Deco-MSG: " + decodedmsg);
    An error occurred at line: 26 in the jsp file: /getmessage.jsp
    The method write(String) is undefined for the type HttpServletResponse
    23: String decodedmsg = new String(msg.getBytes("iso-8859-1"), "Big5");
    24: System.out.print("MSG: " + msg);
    25: System.out.print("Deco-MSG: " + decodedmsg);
    26: response.write(decodedmsg);
    27: %>
    Stacktrace:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
    at java.lang.Thread.run(Thread.java:619)

  • Method is undefined for type

    What am I doing wrong here?
    public void testArray(Test2[] tarray){
              for(Test2 t : tarray){
                   System.out.println(t);
    Test2[] passArray = new Test2[4];
    testArray(passArray);  // error: Method testArray(Test2[]) is undefined for type Test.Also, for future reference, how do I format the code for this forum so that it has proper indentation and is easier to read? Thanks.
    Edited by: 837443 on Feb 26, 2011 11:43 AM

    837443 wrote:
    What am I doing wrong here?
    public void testArray(Test2[] tarray){
              for(Test2 t : tarray){
                   System.out.println(t);
    Test2[] passArray = new Test2[4];
    testArray(passArray); // error: Method testArray(Test2[]) is undefined for type Test.Well from what you've posted, there's no matching brace for the method.
    Also, for future reference, how do I format the code for this forum so that it has proper indentation and is easier to read? Thanks.put it in tags. There's an explaination in the Welcomd thread I believe, and also in the FAQs.
    Winston                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Calling a method from another Java file.

    I think I'm doing this right, but I'm obviously going wrong somewhere.
    In order to not have one big long java file, I've created one main one to execute the program, and another to do some of the functions. I'm using eclipse, btw.
    In the main file, I have
    currentTB = getActiveTB(playerArea);If it works, it should get send the player area variable to the getActiveTB method, and store the value it returns in the currentTB variable, right?
    In the other file, I have;
    package scenes;
    public class sceneIndex {
         private TerrainBlock getActiveTB(String areaCode) {
              TerrainBlock tBlock = new TerrainBlock();
                     **DOES STUFF**
              return tBlock;
    }I have it set up so the second file is in the source folder "resources" and the package "scenes." The problem is I'm not calling it properly. I'm missing something simple, I think. The only error I'm getting is;
    The method getActiveTB(String) is undefined...
    Where am I screwing up?
    EDIT: Yeah, I'm a rookie here trying to figure it out on my own. My computer science courses, so far, conveniently all consist of just one big java file. Easier to write, sure, but not very efficient/organized.
    Message was edited by:
    SuckerPunch

    Yeah, so this is still pissing me off. I'm not sure what else to do. I've tried this a million different ways, in both eclipse and netbeans. Whatever. Here's the code, I'd love it if someone could point out the boneheaded mistake I'm making. I'm getting a little frustrated at being stuck on such a simple problem.
    Main.javaimport com.jme.app.BaseGame;
    import com.jme.input.KeyBindingManager;
    import com.jme.input.KeyInput;
    import com.jme.math.Vector3f;
    import com.jme.renderer.Camera;
    import com.jme.renderer.ColorRGBA;
    import com.jme.scene.Node;
    import com.jme.system.DisplaySystem;
    import com.jme.system.JmeException;
    import com.jme.util.Timer;
    import com.jmex.terrain.TerrainBlock;
    import resources.*;
    public class Main extends BaseGame {
         /* General Variable Declaration */
         private String scene;   // Tells application which scene to load, default loads default scene
         private int width, height, depth, freq; // Creates variables to store information
         private boolean fullscreen;             // on the user's window
         private Camera playerCam; // Defines the main camera for the player, first person view
         private Timer timer; // Creates a timer to be used for FPS calculations
         private Node currentScene; // The basis for building the scene the player is in
         private TerrainBlock currentTB; // This variable holds the current landscape
         private String playerArea = new String("initial"); // Contains the string
                                                                        // code for the scene
                                                                        // the player is in,
                                                                        // defaults to the opening scene, unless changed by
                                                                        // the player loading their game
            public static void main(String[] args) {
              /* Initializes and Starts the Applications. */
              Main app = new Main();
              app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG, Main.class.getClassLoader().getResource("img/spunch.jpg"));
              app.start();
         protected void update(float interpolation) {
         protected void render(float interpolation) {
         protected void initSystem() {
               * Application initialization properties (window, camera, renderer, key
               * bindings, etc)
              // Stores variables for window properties
              width = properties.getWidth();
              height = properties.getHeight();
              depth = properties.getDepth();
              freq = properties.getFreq();
              fullscreen = properties.getFullscreen();
              // Assigns renderer and creates game window
              try {
                   display = DisplaySystem.getDisplaySystem(properties.getRenderer());
                   display.createWindow(width, height, depth, freq, fullscreen);
                   playerCam = display.getRenderer().createCamera(width, height);
              } catch (JmeException e) {
                   e.printStackTrace();
                   System.exit(1);
              // Sets background to black, should never be seen anyway
              display.getRenderer().setBackgroundColor(ColorRGBA.black);
              // Initializes the camera
              playerCam.setFrustumPerspective(45.0f, (float) width / (float) height,
                        1, 1000);
              Vector3f loc = new Vector3f(250.0f, 100.0f, 250.0f);
              Vector3f left = new Vector3f(-0.5f, 0.0f, 0.5f);
              Vector3f up = new Vector3f(0.0f, 1.0f, 0.0f);
              Vector3f dir = new Vector3f(-0.5f, 0.0f, -0.5f);
              // Moves and orients the camera
              playerCam.setFrame(loc, left, up, dir);
              // Update the camera since it has been changed
              playerCam.update();
              // Create a timer for FPS updates
              timer = Timer.getTimer();
              // Assign the camera as the primary display in the application
              display.getRenderer().setCamera(playerCam);
              // Initialize the escape key as a way to exit the program
              KeyBindingManager.getKeyBindingManager().set("exit",
                        KeyInput.KEY_ESCAPE);
         protected void initGame() {
              /* Game initialization */
              display.setTitle("Slumlords"); // Displays title in window
                    SceneIndex sIndex = new SceneIndex();
              currentTB = sIndex.getActiveTB(playerArea);
              currentScene.attachChild(currentTB);
              currentScene.updateGeometricState(0.0f, true);
              currentScene.updateRenderState();
         protected void reinit() {
         protected void cleanup() {
    }SceneIndex.javapackage resources;
    import javax.swing.ImageIcon;
    import com.jme.bounding.BoundingBox;
    import com.jme.image.Texture;
    import com.jme.math.Vector3f;
    import com.jme.scene.state.TextureState;
    import com.jme.system.DisplaySystem;
    import com.jme.util.TextureManager;
    import com.jmex.terrain.TerrainBlock;
    import com.jmex.terrain.util.MidPointHeightMap;
    import com.jmex.terrain.util.ProceduralTextureGenerator;
    public class SceneIndex {
         private DisplaySystem display;
         public TerrainBlock getActiveTB(String areaCode) {
              TerrainBlock tBlock = new TerrainBlock();
              if (areaCode == "initial") {
                   // Generates random terrain data
                   MidPointHeightMap heightMap = new MidPointHeightMap (64, 1.0f);
                   // Scale the data
                   Vector3f terrainScale = new Vector3f(4, 0.0575f, 4);
                   // Create the terrain block
                   tBlock = new TerrainBlock("Terrain", heightMap.getSize(), terrainScale, heightMap.getHeightMap(), new Vector3f(0, 0, 0), false);
                   tBlock.setModelBound(new BoundingBox());
                   tBlock.updateModelBound();
                   // Creating a blended texture based on the height map
                   ProceduralTextureGenerator pTexture = new ProceduralTextureGenerator(heightMap);
                   pTexture.addTexture(new ImageIcon(SceneIndex.class.getClassLoader().getResource("img/grass.gif")), -128, 0, 128);
                   pTexture.addTexture(new ImageIcon(SceneIndex.class.getClassLoader().getResource("img/dirt.jpg")), 0, 128, 255);
                   pTexture.addTexture(new ImageIcon(SceneIndex.class.getClassLoader().getResource("img/granite.jpg")), 128, 255, 384);
                   pTexture.createTexture(64);
                   // Assigning the texture to the terrain
                   TextureState tState = display.getRenderer().createTextureState();
                   Texture t1 = TextureManager.loadTexture(pTexture.getImageIcon().getImage(), Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR, true);
                   tState.setTexture(t1, 0);
                   tBlock.setRenderState(tState);
              return tBlock;
    }Again, I've tried this a few different ways, and I either get a "Could Not Find Symbol" error referring to the getActiveTB(playerArea); in Main, or it just says java.lang.NoClassDefFoundError: and Exception in thread "main".
    Whatever.

  • Getting error in event handler method onPlugFromStartView

    Hi,
           I am getting error in event handler method onPlugFromStartView java coding. The error message is u201CThe method wdGetwelcome componentcontroller() is undefined for the IPrivatevieew.
    Plese explain how to resolve this error to deploy the webdynpro application successfully.
    Thanks,
    Kundan.

    Hi
    1.It seems some thing corrupt or some problem .
    2. Do one exercise Create one new Dc --component -View ,In component write one method.
        a)  Open the view and then try to add that component.
    Let us know the result
    Best Regards
    Satish Kumar

  • Remembering an undefined number of arrays.

    I have an undefined number of arrays (usually 3-5, but can be different) which i need to 'remember' within a LabVIEW VI. Each array may need to be called up in the future for a variety of things, or even overwritten.
    I am currently storing the default (3 arrays) in three seperate shift registers in the main while loop of my VI but this arrangement is unsatisfactory when the number of arrays to be stored is unknown. The array size is not set in stone and can vary up to 200 points. However, the arrays should be the same size as each other.
    Does anyone have ideas on how this can be done? The only idea i've had is to use 'functional globals' but i don't know how to create Reentrant VIs with my version of LabVIEW (if it's even possible). I use LabVIEW 6.1 - the Full development system (i think that's what it's called).
    Thank you in advance.
    James
    P.S. I can view VIs up to LabVIEW 8.5
    P.P.S.  Perhaps i should add that each array is allocated a name in a 1D array of strings (the number of arrays is changed by adding or removing elements in this array) and are initialised 'blank'. Only one array is edited or used at a time and the 'active' array is selected using a menu ring.
    Message Edited by James Mamakos on 06-16-2009 03:01 PM
    Never say "Oops." Always say "Ah, interesting!"

    I do not know how many arrays i may have. I currently have a default of 3, but this could eventually be anything up to 50 or more - i really don't know. The user defines this themselves.
    I need to know (programmatically) exactly how many arrays there are, and also the size of the largest array. At the moment, i have a default size of 80 elements, but this could eventually be anything up to 200 or more.
    Each array is acted on separately (one at a time) whether this is to read, write, or overwrite the elements within it.
    I want to be able to change the associated name of an array without altering any data stored in it. I may need each array to have the option of differing in size to the others (one reason why i cannot merely store them as rows in a 2D array), though this is not essential for now.
    Basically, i want to create a generic method of storing an undefined number of arrays of an undefined size, and being able to call up and edit them in the future without constantly reading and writing from a data file. The details i've given above are just to give an idea of the limitations and requirements i have.
    If anything is still unclear, i will try to find another way of saying it.
    James
    P.S. As a background of the intended use, i am running a series of identical tests at different temperatures. Each test produces a 1D array of datapoints, and each array is associated to a particular temperature. Each array has its own associated name (to aid selection and viewing both after and during the tests) which will usually be the temperature that the data was collected at. However, there may well be a need for the user to manually name some or all arrays.
    Their names are currently stored in a seperate array of strings, and each array is selected using a menu ring. The size of the data arrays is determined by the number of datapoints inputted. When a new array name is created (as a new element in the array of strings), a new 'blank' array is then created ready for data to be stored in it.
    The data from the arrays is then displayed on graphs on the FP, and can be written into excel.
    Never say "Oops." Always say "Ah, interesting!"

  • AdfPage.PAGE.findComponent method usage

    I have a function.js file which has the showMap() function. I am trying to display something using the AdfPage.PAGE.findComponent method which keeps returning undefined for any component I try to find from the js file. What am I doing wrong? Is it because I am finding the component before page loading. Please advise
    function.js file
    function showMap() {
    alert(AdfPage.PAGE.findComponent('f1'));
    baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = 145.07;
    var mapCenterLat = -37.57;
    var mapZoom = 1;
    mapview = new MVMapView(AdfPage.PAGE.findComponent('map'), baseURL);
    //var map = AdfPage.PAGE.findComponent("map");
    //mapview = map.getMVMapView();
    mapview.addMapTileLayer(new MVMapTileLayer("gis_data.AV_VICMAP"));
    mapview.setCenter(MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,4283));
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("WEST");
    showOverviewMap();
    addThemeBasedFOI();
    mapview.display();
    JSPX file
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" binding="#{backingBeanScope.mapsBean.d1}">
    <f:facet name="metaContainer">
    <af:group id="g3" binding="#{backingBeanScope.mapsBean.g3}">
    <trh:script id="script1" source="/jslib/oraclemaps.js"
    binding="#{backingBeanScope.mapsBean.script1}"/>
    <trh:script id="script2" source="/jslib/functions.js"
    binding="#{backingBeanScope.mapsBean.script2}"/>
    <trh:script text='' id="script3"
    binding="#{backingBeanScope.mapsBean.script3}"/>
    </af:group>
    </f:facet>
    <af:form id="f1" binding="#{backingBeanScope.mapsBean.f1}">
    <af:panelStretchLayout id="psl1" topHeight="5px" bottomHeight="115px"
    endWidth="373px"
    binding="#{backingBeanScope.mapsBean.psl1}">
    <f:facet name="bottom">
    <af:panelBox text="Watch Options" id="pb1"
    binding="#{backingBeanScope.mapsBean.pb1}">
    <f:facet name="toolbar"/>
    <af:selectBooleanCheckbox label="Auto Refresh"
    id="sbc2"
    binding="#{backingBeanScope.mapsBean.sbc2}"/>
    <af:selectBooleanCheckbox label="Show Vehicle Locations"
    id="sbc1"
    binding="#{backingBeanScope.mapsBean.sbc1}"/>
    <af:commandButton text="Refresh Now"
    id="cb1"
    partialSubmit="true"
    binding="#{backingBeanScope.mapsBean.cb1}"/>
    </af:panelBox>
    </f:facet>
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1"
    binding="#{backingBeanScope.mapsBean.pgl1}">
    <af:group id="g1" binding="#{backingBeanScope.mapsBean.g1}">
    <dvt:mapToolbar mapId="map"
    id="mt1"
    binding="#{backingBeanScope.mapsBean.mt1}"/>
    <dvt:map startingY="-36.88" startingX="145.26" mapZoom="1"
    mapServerConfigId="mapConfig1"
    baseMapName="GIS_DATA.AV_VICMAP"
    inlineStyle="width:100%; height:793px;"
    id="map" binding="#{backingBeanScope.mapsBean.map}">
    <f:facet name="rtPopup"/>
    <f:facet name="popup"/>
    </dvt:map>
    </af:group>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="end">
    <af:panelBox text="List Vechicles"
    id="pb2" binding="#{backingBeanScope.mapsBean.pb2}">
    <f:facet name="toolbar"/>
    <af:inputText label="Area Code"
    id="it1"
    binding="#{backingBeanScope.mapsBean.it1}"/>
    <af:inputText label="Vehicle Number"
    id="it2"
    binding="#{backingBeanScope.mapsBean.it2}"/>
    <af:commandButton text="Search"
    id="cb2"
    binding="#{backingBeanScope.mapsBean.cb2}"/>
    </af:panelBox>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    <af:clientListener type="load" method="showMap()" />
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:mapsBean-->
    </jsp:root>
    Edited by: user5108636 on 29/04/2010 18:22

    It is now detecting the map component, but the map object retrieved in the javascript seems to a new object. I had set the srid and ceterX and centerY.
    In my javascript, I do
    var map = AdfPage.PAGE.findComponent('map');
    mapview = map.getMVMapView();
    alert("Zoom:"+ mapview.getZoomLevel());
    alert("Srid:"+ mapview.getSrid());
    alert("CenterX:"+ mapview.getPointX());
    alert("CenterY:"+ mapview.getPointY());
    where the map object parameters are already set in the ADF page, which is not reflecting. I am not getting access to the same map
    object. My javascript method runs on page load. Is it because the javascript method is getting called before the ADF map object exists.
    dvt:map id="map" startingX="145.26"
    mapServerConfigId="mapConfig1"
    baseMapName="GIS_DATA.MAP" mapZoom="1"
    startingY="-36.88" unit="METERS"
    inlineStyle="width:100%; height:793px;" srid="4283"
    />
    Let me know if any more code needs to be posted for clarification.
    Regards
    Edited by: user5108636 on 9/05/2010 19:20

  • CompareTo(Object) is undefined for Object

    I'm getting an error -The method compareTo(Object) is undefined for the type Object- with this code:
    public static Object getMinimum (Object[] array)
       Object min = array[0];
       for (int i = 1; i < array.length; i++) {
          if (min.compareTo(array) > 0) {
    min = array[i];
    return min;
    The objects in the array will always implement the Cloneable interface, but they can't use it, as they are treated as Object instances, not as instances of their own class. How can I fix this without using a Comparator?
    Thanks in advance

    Or to be most generic
        public static <T extends Comparable<T>> T getMinimum(T[] array) {
            T min = array[0];
            for (int i = 1; i < array.length; i++) {
                if (min.compareTo(array) > 0) {
    min = array[i];
    return min;
    Of course, the forum software mucks that up,
    it should be
    <T extends Comparable<T>>
    Message was edited by:
    IanSchneider

  • Method getSAPIconWebResourcePath(String) not found

    Please somebody help.
    The error message was :
    The method getSAPIconWebResourcePath(String) is undefined for the type WDURLGenerator
    I already checked at WDURLGenerator.class, but nothing's there. All other method delcarations like "getSAPIconsResourcePath()" and "getResourcePath(String)" were there, but method "getSAPIconWebResourcePath(String)" wasn't there.
    Another similar problem was the method setTitle(String) was undefined too.
    The error message was :
    The method setTitle(String) is undefined for the type IWDWindow
    I searched at the IWDWindow.class and nothing was there too.
    I've googled and i've found that those methods should be there.
    The webdynpro was in fresh installation and i haven't add any package.

    I thing i've solved the problem by installing the newer version. Thank u very much.

  • Fix for Deprecated methods to get ResourceContext

    So I'm rolling some of my own KM API based JSP pages and AbstractPortalComponents and I found the following code to gain access to the KM:
    com.sap.security.api.IUser user=(com.sap.security.api.IUser)request.getUser();
    com.sapportals.portal.security.usermanagement.IUser epUser = WPUMFactory.getUserFactory().getEP5User(user);
    ResourceContext ctx= new ResourceContext(epUser);
    The problem is, WPUMFactory.getUserFactory().getEP5User() is deprecated.  Surely there's a non-deprecated way to achieve getting a ResourceContext object.  Unfortunately I've not found a good guide on how to use the KM API that's not over 2 years old. 
    Any thoughts?

    Check this:
    -Using the KMC Platform in Standalone Web Applications-
    I developed a multiple upload files in KM web application and I used the KM repository.
    To access without nullPointerException you need to reference KM in the web project.
    see: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/58013557-0701-0010-2c96-cdaed53ba065
    With that reference it works fine :):)
    Don't worry about that warning when build the DC.
    WARNING: No component dependency exists for reference to "com.sap.km.application" (vendor "sap.com", type "application")
    code:
    com.sap.security.api.IUser user;
    com.sap.security.api.IUser iUser = (com.sap.security.api.IUser) user;
    com.sapportals.portal.security.usermanagement.IUser epUser = WPUMFactory.getUserFactory().getEP5User(iUser);
    ResourceContext ctx = new ResourceContext(epUser);

  • Check for null

    Hi,
    Iam checking a id which is long, for null value.
    Checked for isNull( head.getEmpId()) but it throws me a error
    "The method isNull(long) is undefined for the type."
    I also tried it with == and .equals. Not sure about the error. Could you please help.

    nman wrote:
    ok, how can i check a emp id in the table for null values and populate with a value, where emp id is longIf you are using a ResultSet, you can call wasNull() after accessing the value to determine if it was null.
    Otherwise, long cannot be null, only Long can be null.

Maybe you are looking for