In port let beans problem

heloo every body
i have a problem \
look
when i deploy a portlet and a text field is displayed in edit mode user enter id and it goes to a new page showing records in text filed from database in a form which can be edited and again submitted it works fine but when click on the view mode i set a form that is to inser values now the problem is here the the from is already filled with the values that i have previously edited now this is because the scope of the ban is set to session and if i dnt set to session then i dont get values in the edit form and if set session values are displayed in the view mode in the insert form
in short i want that in the view the insert page the values must not be previously populated.
is there any way for that except
1. uninitilaize the bean after submission in edit form
2. scope of the beans reduced to request
thanks in advance
Shakeel Abbas

Is the permission included in the AccessControlException?
Have you tried a policy like:
grant {
     permission java.security.AllPermission;
};

Similar Messages

  • Bean problem with creating Adapter Module in NW developer studio

    Hi Gurus!
    I started to develop an adapter module like described in
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    Unfortunatelly, I'm getting error described on page 9 of the document:
    Bean problem: no interface classes found
    I cannot resolve this problem. I've tried it also like described in the document, but no success.
    Any ideas of what could be wrong?
    Thank you!
    Marthy

    Marthy.,.
    Close and open project..standard problem ONLY with nwdi..
    Regards
    Ravi Raman

  • Bean problem: No interface classes found

    Hi ;
    I try to create a adapter . according to tutorial "How To Create Modules for the J2EE Adapter Engine"
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e&overridelayout=true
    Although I did all steps in it , I copied sda files and extract them  then I imported them to the project but I get this error in Netweaver Studio "Bean problem: No interface classes found" while creating ejb file.
    the document says you must close and reopen project when you come accross this error but it doesnt work?
    Is there any one solve this error?
    ps: I use NWDS 7.0.19 , I copied aii_af_lib.sda, aii_af_svc.sda and aii_af_cpa_svc.sda files from PI 7.01

    Hi Tuncer!
    Did you download and "import" these JAR files into your NWDS Build Path  - classpath variables:
    com.sap.aii.af.lib.mod.jar     <bin>/ext/com.sap.aii.af.lib/lib
    sap.comtcloggingjavaimpl.jar     <bin>/system
    com.sap.aii.af.svc_api.jar     <bin>/services/com.sap.aii.af.svc/lib
    com.sap.aii.af.cpa.svc_api.jar     <bin>/services/com.sap.aii.af.cpa.svc/lib
    com.sap.aii.af.ms.ifc_api.jar     <bin>/interfaces/com.sap.aii.af.ms.ifc/lib
    <bin> stands for: /usr/sap/<SID>/<instance-id>/j2ee/cluster/bin in a PI 7.1 system.
    Windows -> Preferences -> Build Path -> Classpath Variables -> New ...
    Choose a name of your choice and then select the JAR files mentioned above.
    This should resolve your problem.
    Regards,
    Volker

  • Forms 9i FRM-40738 Hyperlink Bean problem

    Hello,
    I've this error coming please help me.
    I needed to see, how a bean is integerated in Forms 9i. I was
    searching through the example at metalink and it gave me a
    paper
    "How to Integerate HyplerLink Bean in forms 9i", what steps
    i followed are given in that paper.
    Now when i run the form, it gaves me the error
    FRM-40738 Argument to Built in SET_CUSTOM_PROPERTY CANNOT BE NULL.
    the steps i followed are
    1- I created a form called hyperlink.fmb
    2- Then i created a ON LOGON trigger at this form
    3- I opened the canvas and draw a Bean Area on it
    4- Then i renamed that Item to Hyperlink by Property Plattelete
    5- I named the canvas CONTROL
    6- Then at module level i created a TRIGGER WHEN_NEW_FORM_INSTANCE and put following PL.SQL code in it
    DECLARE
    hHyperlink ITEM := FIND_ITEM('CONTROL.HYPERLINK');
    BEGIN
    FBEAN.Register_Bean( hHyperlink, 1, 'oracle.forms.demos.beans.Hyperlink');
    FBean.Invoke( hHyperlink, 1, 'setURL', 'http://otn.oracle.com/products/forms');
    FBean.Invoke( hHyperlink, 1, 'setLabel', 'Forms on OTN');
    FBean.Enable_Event( hHyperlink, 1, 'actionListener', true );
    END;
    7-Then i created a Trigger at CONTROL.HYPERLINK, that was
    WHEN_CUSTOM_ITEM_EVENT and put the following code in it
    DECLARE
    vcEventData varchar2(256);
    BEGIN
    vcEventData := Fbean.Invoke_Char('CONTROL.HYPERLINK', 1, 'getURL');
    WEB.SHOW_DOCUMENT(vcEventData, '_blank');
    END;
    Then did the following steps of the locating the bean by the
    JAR method.
    Method 1 - The JAR Method:
    a. Locate the hyperlink.jar file located in D:\9iDS\forms90\demos\hyperlink\classes.
    b. Move the hyperlink.jar file to 9iDS_HOME\forms90\java.
    c. Find the formsweb.cfg file in 9iDS_HOME\forms90\server.
    d. Add the following configuration section to the file:
    [hyperlink]
    archive_jini=f90all_jinit.jar,hyperlink.jar
    width=675
    height=480
    separateFrame=false
    splashScreen=no
    lookAndFeel=oracle
    colorScheme=blue
    The archive_jini parameter pointing to hyperlink.jar is the most important part
    of this configuration.
    e. Now go into Form Builder and accomplish the following:
    Edit->Preferences->Runtime Tab
    Add the config parameter to your "Application Server URL". It should look
    something like this:
    http://machine.domain:port/forms90/f90servlet?config=hyperlink
    Then i compiled it and ran it, Now it gives this error
    FRM-40738 Argument 1 to built in SET_CUSTOM_PROPERTY cannot
    be null.
    P.S I have set the implementation class property but, still i don't know
    whats the problem, and where i am making mistake, please help me.
    Please any help will be appreaciated.
    Sincerely
    Tensed Beginner

    Hello Frank,
    Thanks for your reply back to me. Frank, i am
    currently
    new to Forms 9i even the Oracle world. In my compan
    basically i was hired a J2EE resource, but they put
    me
    on oracle, and i feel like, i am not performing to
    the level i should.
    Can you please tell me, how should i verify that, it
    is not returning
    a Null? Can you tell me the statement Syntax, yea my
    BLock
    name is CONTROL and Item name is HYPLERLINk, please
    do
    tell me how to verfiy it, i will be highly obliged.
    Sincerely,
    Ben ( Tensed Beginner )
    Hello Frank,
    Thanks for your reply back to me. Frank, i am
    currently
    new to Forms 9i even the Oracle world. In my compan
    basically i was hired a J2EE resource, but they put
    me
    on oracle, and i feel like, i am not performing to
    the level i should.
    Can you please tell me, how should i verify that, it
    is not returning
    a Null? Can you tell me the statement Syntax, yea my
    BLock
    name is CONTROL and Item name is HYPLERLINk, please
    do
    tell me how to verfiy it, i will be highly obliged.
    Sincerely,
    Ben ( Tensed Beginner )Hi Ben
    Please check the path that u have given. Think the mistake is in the path.
    FBEAN.Register_Bean( hHyperlink, 1, 'oracle.forms.demos.beans.Hyperlink');
    If the problem still persist will let u know how to resoleve it.
    feel free to get in touch....
    Regards
    Aravind

  • Mini display port to HDMI problem...still happening, apple needs to help!

    i read a lot about this topic and the question was marked answered, but there was no answer, sooo...
    this is just a heads up to apple that this problem still exists and many people are still having it! Please do something... you put this mini display port on your computers... sold them to us... and now dont have software that lets it work... loosing a lil faith in apple today! there were 11 pages on this that i saw, i think it deserves a firmware update!
    this next part is a direct copy of a post by sanktcolon and he explained the problem very well, so if your interested...
    I figured I would just tell you all about my story. I do not have any solutions, the problem is still ongoing. But first I'd like to clear some confusion.
    There seem to be a couple of people in this thread who thinks that when you experience this problem and you plug the HDTV with your MacBook through HDMI, you get a connection with the HDTV and can change the settings. This is not true. What happens is that the MacBook will flash its screen like it does when it detects a TV being connected, but then it will go back to normal. No connection established. Of course, there's people in this thread with different kinds of problems but with similarities. However, the main problem in this thread is quite clear and it's the same one that I have.
    So with that out of the way, here's what happens for me and most people in this thread:
    I've been using a Mini Display Port to HDMI adapter for quite a while and it has been working great. But lately I've been experiencing issues with it. There is nothing wrong with the adapter nor the cable, and certainly not the TV.
    When I connect the adapter to the computer, the screen on the MacBook will flash blue, like it should, but it will not connect to the TV. What does this mean? It means that it detects the TV but is unable to establish a connection with it. Probably because it sends the wrong signals.
    Now that's all pretty logical, but here comes the weird stuff. If I continue to try and re-establish a connection, either by plugging in and out the cable or changing HDMI-ports with the TV-remote (the MacBook re-detects when I switch from HDMI1 to HDMI2 and back), it will eventually establish a connection with the TV and work fine. Though, this can take minutes. Plenty of minutes. Last night I tried re-detecting for about 15 minutes and it didn't work. However, this morning it worked quite quickly.
    So the problem is quite obviously with the MacBook/the OS and not with the adapter, cable or the TV. It's just ridiculous, and frankly quite annoying, to read posts where people claim you should get a new adapter. Why? Because there's so many people out there with different adapters, and people who have switched adapters and so on and so forth, that experience the exact problem I just describe. So either there's a problem with the MacBook/OS or there's a lot of TVs and adapters out there that are faulty. It's just illogical.
    Once again I would like to remind you all that there's no connection, what so ever, between the TV and the MacBook when it doesn't establish one. And by establish I mean that you can actually see the screen on the TV. So bringing up the display settings won't do anything, search for devices on the TV or in the MacBook won't do anything. There just is not a TV there for the MacBook.
    I have tried everything posted in this thread and the only thing that works for me is trying over, and over, and over, and over again until it just randomly works.

    I too am having this same problem with my Macbook Air (Late 2010 Edition). I think this has something to do with OSX 10.6.6. Before the update, my mini display to HDMI was working flawlessly. Now, when I try to plug in to the TV my macbook just flashes the blue screen with no picture going to the TV what so ever. I'm not sure what was done with the update, but i'd sure like to be able to connect this machine to the TV again! APPLE, HEAR OUR VOICES! Fix this problem!

  • Double click on menu = exception : managed bean problem ?

    Hello,
    I am a beginner with JSF and I have to work on an existing project.
    In my Web application, my problem is that if the user doubles click on some navigation links, then an exception is raised.
    Technically, I think that 2 consecutive HTTP requests sent to the server enter in competition and thus the state of certain variables becomes inconsistent. This problem appears when the 2nd click is sent to the server before the server answered the treatment of the 1st click.
    My current assumption is directed towards the managed beans used in the application (I am not (yet ;) ) a master on the subject). In fact, the main menu is �attached� to managed bean which are all of type �session�. At the time of the creation of the bean, a certain quantity of treatment is done to prepare information to be posted on the page. Other treatments are obviously done during the treatment of page JSF (Java code called by JSF of the).
    I think that at the time of the first call, the managed bean is possibly initialized. At the time of the 2nd click on the page, this bean re-initialized or is simply removed if the user has clicked on another menu (which refers to another bean).
    Would you have an idea of the veracity of my assumption?
    Would you have an idea how to solve the problem?
    I am currently looking for a JavaScript which allows me to disable all buttons on the page before the complete response of the server (that in order to prevent the user from clicking on an action before its preceding action is not treated).
    Thank you in advance for your help and all your ideas !

    mharelick wrote:
    the trash can icon is still having crashes.
    Launch the Terminal utility and type this command, each followed by the "return" key:
    ls -lad .Trash
    ls -la .Trash
    The "l" in those commands is the lower-case letter "L".
    The first command shows you the ownership and permissions of the .Trash folder. On my system my user "short name" is listed as the owner and group. The permissions are "drwx------".
    The second command shows you any files within the .Trashes folder. (Ignore the entries ending in one and two periods.) You should be the owner of anything in it. The permissions on anything there should start with "-rw" or "drw".
    If you see anything different, describe what you see and someone will be able to give you instructions for repairing it.

  • Jsp-servlet-bean problem

    Please help!
    I have a servlet controller, a javabean for the data and a jsp for the view.
    I cannot get the jsp using
    <jsp:useBean id="pList" class="bbs.PostListCommand" scope="request" />
    to access the bean data
    However, when I access the bean in this way
    <%@ page import="bbs.PostListCommand" %>
    // html
    <% bbs.PostListCommand postList = null;
    synchronized(session){
         postList = (bbs.PostListCommand) session.getAttribute("PostListCommand");
         if (postList == null){ %>
              <H1>Nothing in request scope to retrieve ....</H1>
              <P>
    <%     }
         else{  %>
              <TABLE border="1">
    // etc
    � it works
    Does anyone know why the <jsp:useBean> tag does not find the bean
    I have installed tomcat 4.18 and set the environmental variables etc.
    Directory structure is
    E:\Tomcat41\webapps\examples\WEB-INF\jsp          for jsp�s
    E:\Tomcat41\webapps\examples\WEB-INF\classes\bbs     for bean and servlets
    Thanks in advance for any help.
    Chris

    GrayMan - Thanks for your help.
    Let me explain my problem in more detail ...
    Background:
    I have some servlet experience, but I am new to jsp - so sorry if this seems trivial to you ...
    I have a book called bitter java by bruce tate from manning.com . I am trying to get the chapter 3 examples to work
    There are three files
    PostListCommand          the bean
    PostListController     the servlet
    PostListResults          jsp
    And a new test file � PostListResults version 2 with scriptlet code to access the bean.
    There are a couple of typos in the downloaded source files, but nothing that causes the main problem of not being able to access the bean data.
    Program flow
    Servlet instantiates new bean
    Bean � gets data from db
    Servlet passes bean to jsp with a forward
    Jsp outputs data
    I have put the files in the directories �
    E:\Tomcat41\webapps\examples\WEB-INF\jsp          for jsp�s
    E:\Tomcat41\webapps\examples\WEB-INF\classes\bbs     for bean and servlets
    The complete source code for each file is given below.
    1 I have checked the db access � that�s ok
    2 I have also checked reading the bean data back in from the request scope and printing out the results from within the servlet.- ok
    3 I can access the data through a scriptlet (PostListResults version 2), but not with the original PostListResults which uses <jsp:useBean>
    thanks in advance, chris
    PostListController.java
    package bbs;
    // Imports
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    // Import for commands used by this class
    import bbs.PostListCommand;
    public class PostListController
    extends javax.servlet.http.HttpServlet
    implements Serializable {
    * DoGet
    * Pass get requests through to PerformTask
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
    throws javax.servlet.ServletException, java.io.IOException {
    performTask(request, response);
    public void performTask(
    HttpServletRequest request,
    HttpServletResponse response) {
    try {
    PostListCommand postList = (bbs.PostListCommand) java.beans.Beans.instantiate(getClass().getClassLoader(),"bbs.PostListCommand");
    postList.initialize();
    postList.execute();
    request.setAttribute("PostListCommand", postList);
    ServletContext sc = this.getServletContext();
    RequestDispatcher rd =
    sc.getRequestDispatcher("/jsp/PostListResults.jsp");
    rd.forward(request, response);
    } catch (Throwable theException) {
    theException.printStackTrace();
    PostListCommand.java
    package bbs;
    import java.io.*;
    import java.sql.*;
    //import COM.ibm.db2.jdbc.*;
    import java.util.*;
    * Insert the type's description here.
    * Creation date: (07/17/2001 5:07:55 PM)
    * @author: Administrator
    public class PostListCommand {
    // Field indexes for command properties     
    private static final int SUBJECT_COLUMN = 1;
    private static final int AUTHOR_COLUMN = 2;
    private static final int BOARD_COLUMN = 3;
    protected Vector author = new Vector();
    protected Vector subject = new Vector();
    protected Vector board = new Vector();
    // SQL result set
    protected ResultSet result;
    protected Connection connection = null;
    * execute
    * This is the work horse method for the command.
    * It will execute the query and get the result set.
    public void execute()
    throws
    java.lang.Exception,
    java.io.IOException {
    try {
    // retrieve data from the database
    Statement statement = connection.createStatement();
    result =
    statement.executeQuery("SELECT subject, author, board from posts");
    while (result.next()) {
    subject.addElement(result.getString(SUBJECT_COLUMN));
    author.addElement(result.getString(AUTHOR_COLUMN));
    board.addElement(result.getString(BOARD_COLUMN));
    result.close();
    statement.close();
    } catch (Throwable theException) {
    theException.printStackTrace();
    * getAuthor
    * This method will get the author property.
    * Since the SQL statement returns a result set,
    * we will index the result.
    public String getAuthor(int index)
    throws
    java.lang.IndexOutOfBoundsException,
    java.lang.ArrayIndexOutOfBoundsException {
    return (String) author.elementAt(index);
    * getBoard
    * This method will get the board property.
    * Since the SQL statement returns a result set,
    * we will index the result.
    public String getBoard(int index)
    throws
    java.lang.IndexOutOfBoundsException,
    java.lang.ArrayIndexOutOfBoundsException {
    return (String) board.elementAt(index);
    * getSubject
    * This method will get the subject property.
    * Since the SQL statement returns a result set,
    * we will index the result.
    public String getSubject(int index)
    throws
    java.lang.IndexOutOfBoundsException,
    java.lang.ArrayIndexOutOfBoundsException {
    return (String) subject.elementAt(index);
    * initialize
    * This method will connect to the database.
    public void initialize()
    throws java.io.IOException {
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    // URL is jdbc:db2:dbname
    String url = "jdbc:db2:board";
    // URL is jdbc:odbc:bitter3board
    String url = "jdbc:odbc:bitter3board";
    // connect with default id/password
    connection = DriverManager.getConnection(url);
    } catch (Throwable theException) {
    theException.printStackTrace();
    * Insert the method's description here.
    * Creation date: (07/17/2001 11:38:44 PM)
    * @return int
    * @exception java.lang.IndexOutOfBoundsException The exception description.
    public int getSize() {
    return author.size();
    PostListResults.jsp
    <HTML>
    <HEAD>
    <TITLE>Message Board Posts</TITLE>
    </HEAD>
    <BODY BGCOLOR=#C0C0C0>
    <H1>All Messages</H1>
    <P>
    <jsp:useBean id="postList" class="bbs.PostListCommand" scope="request"></jsp:useBean>
    <TABLE border="1">
    <TR>
    <TD>Subject</TD>
    <TD>Author</TD>
    <TD>Board</TD>
    </TR>
    <% for (int i=0; i < postList.getSize(); _i++) { %>
    <TR> <TD><%=postList.getSubject(_i) %></TD>
    <TD><%=postList.getAuthor(_i) %></TD>
    <TD><%=postList.getBoard(_i) %></TD>
    </TR>
    <% } %>
    </TABLE>
    <P>
    </BODY>
    </HTML>
    PostListResults.jsp version 2 � with scriplet code instead of useBean
    <HTML>
    <%@ page import="bbs.PostListCommand" %>
    <!-- This file was generated by the chris -->
    <HEAD>
    <TITLE>Message Board Posts</TITLE>
    </HEAD>
    <BODY BGCOLOR=#C0C0C0>
    <% bbs.PostListCommand postList = null;
    synchronized(request){
         postList = (bbs.PostListCommand) request.getAttribute("PostListCommand");
         if (postList == null){ %>
              <H1>Nothing in request scope to retrieve ....</H1>
              <P>
    <%     }
         else{  %>
              <TABLE border="1">
              <TR>
              <TD>Subject</TD>
              <TD>Author</TD>
              <TD>Board</TD>
              </TR>
         <% for (int i=0; i < postList.getSize(); _i++) { %>
                   <TR> <TD><%=postList.getSubject(_i) %></TD>
              <TD><%=postList.getAuthor(_i) %></TD>
              <TD><%=postList.getBoard(_i) %></TD>
              </TR>
         <% } %>
              </TABLE>
    <%     }
    }%>
    <P>
    goodnight
    </BODY>
    </HTML>

  • Multiple session bean problem

    Hi,
    I am developing an admin module to my web app and have created a 2nd session bean to manage data within the admin component of the site just to keep things cleaner and more logical. However there is a problem which I cannot overcome.
    The source code to my main website is located in soulsurfing package. The source code to my admin website is located in soulsurfing.admin package. Inside this package is the java code to my admin web pages and a 2nd session bean called adminSessionBean. So far so good.
    I dropped a database table into my admin page which created a cachedrowset (CustomerRowSet) in my adminSessionBean and a data provider on my admin page (CustomerDataProvider). Ok things are still going well until now.
    There are two main issues i'm facing.
    1. Setting a breakpoint in my code and trying to step through the code line by line (F10) fails whenever the adminSessionBean appears in the line of code. In actuality the system just hangs until I exit debug mode in which the page finishes loading ok. If I step into the code (F11) it still works ok and if there is no breakpoint at all it loads ok too so there is something wrong with the debugger.
    2. Most importantly there is a problem with either the cachedrowset or the data provider because it simply does not return any data from the database. The sql query works fine in both MySQL and when running from creator too so no problem here. If I put a line of code in to capture the sql statement such as String test_var3 = getAdmin$adminSessionBean().getCustomerRowSet().getStatement().toString() a null exception is thrown. However if I ditch the 2nd session bean (adminSessionBean) and run everything exactly the same through the original session bean (SessionBean1) located in soulsurfing package then it all works fine so there must be conflict somewhere with having multiple session beans perhaps in different packages.
    Can anybody help me?
    Below is the java code to my web page that sets and executes the cachedrowset in the prerender method that is failing. Further below that is the code to my 2nd session bean.
    Thanks.
    customer_list.java
    package soulsurfing.admin;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.rave.web.ui.component.Body;
    import com.sun.rave.web.ui.component.Form;
    import com.sun.rave.web.ui.component.Head;
    import com.sun.rave.web.ui.component.Html;
    import com.sun.rave.web.ui.component.Link;
    import com.sun.rave.web.ui.component.Page;
    import javax.faces.FacesException;
    import com.sun.rave.web.ui.component.TextField;
    import com.sun.rave.web.ui.component.Button;
    import com.sun.rave.web.ui.component.PageSeparator;
    import com.sun.rave.web.ui.component.StaticText;
    import com.sun.rave.web.ui.component.Table;
    import com.sun.rave.web.ui.component.TableRowGroup;
    import com.sun.rave.web.ui.component.TableColumn;
    import com.sun.data.provider.impl.CachedRowSetDataProvider;
    import com.sun.rave.web.ui.component.MessageGroup;
    import com.sun.rave.web.ui.model.DefaultTableDataProvider;
    public class customer_list extends AbstractPageBean {
        private int __placeholder;
        private void _init() throws Exception {
            customerDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{adminSessionBean.customerRowSet}"));
        private Page page1 = new Page();
        public Page getPage1() {
            return page1;
        public void setPage1(Page p) {
            this.page1 = p;
        private Html html1 = new Html();
        public Html getHtml1() {
            return html1;
        public void setHtml1(Html h) {
            this.html1 = h;
        private Head head1 = new Head();
        public Head getHead1() {
            return head1;
        public void setHead1(Head h) {
            this.head1 = h;
        private Link link1 = new Link();
        public Link getLink1() {
            return link1;
        public void setLink1(Link l) {
            this.link1 = l;
        private Body body1 = new Body();
        public Body getBody1() {
            return body1;
        public void setBody1(Body b) {
            this.body1 = b;
        private Form form1 = new Form();
        public Form getForm1() {
            return form1;
        public void setForm1(Form f) {
            this.form1 = f;
        private TextField textField1 = new TextField();
        public TextField getTextField1() {
            return textField1;
        public void setTextField1(TextField tf) {
            this.textField1 = tf;
        private TextField textField2 = new TextField();
        public TextField getTextField2() {
            return textField2;
        public void setTextField2(TextField tf) {
            this.textField2 = tf;
        private Button button1 = new Button();
        public Button getButton1() {
            return button1;
        public void setButton1(Button b) {
            this.button1 = b;
        private Button button2 = new Button();
        public Button getButton2() {
            return button2;
        public void setButton2(Button b) {
            this.button2 = b;
        private PageSeparator pageSeparator1 = new PageSeparator();
        public PageSeparator getPageSeparator1() {
            return pageSeparator1;
        public void setPageSeparator1(PageSeparator ps) {
            this.pageSeparator1 = ps;
        private StaticText staticText1 = new StaticText();
        public StaticText getStaticText1() {
            return staticText1;
        public void setStaticText1(StaticText st) {
            this.staticText1 = st;
        private StaticText staticText2 = new StaticText();
        public StaticText getStaticText2() {
            return staticText2;
        public void setStaticText2(StaticText st) {
            this.staticText2 = st;
        private Table table1 = new Table();
        public Table getTable1() {
            return table1;
        public void setTable1(Table t) {
            this.table1 = t;
        private TableRowGroup tableRowGroup1 = new TableRowGroup();
        public TableRowGroup getTableRowGroup1() {
            return tableRowGroup1;
        public void setTableRowGroup1(TableRowGroup trg) {
            this.tableRowGroup1 = trg;
        private MessageGroup messageGroup1 = new MessageGroup();
        public MessageGroup getMessageGroup1() {
            return messageGroup1;
        public void setMessageGroup1(MessageGroup mg) {
            this.messageGroup1 = mg;
        private CachedRowSetDataProvider customerDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getCustomerDataProvider() {
            return customerDataProvider;
        public void setCustomerDataProvider(CachedRowSetDataProvider crsdp) {
            this.customerDataProvider = crsdp;
        private TableColumn tableColumn2 = new TableColumn();
        public TableColumn getTableColumn2() {
            return tableColumn2;
        public void setTableColumn2(TableColumn tc) {
            this.tableColumn2 = tc;
        private StaticText staticText4 = new StaticText();
        public StaticText getStaticText4() {
            return staticText4;
        public void setStaticText4(StaticText st) {
            this.staticText4 = st;
        private TableColumn tableColumn3 = new TableColumn();
        public TableColumn getTableColumn3() {
            return tableColumn3;
        public void setTableColumn3(TableColumn tc) {
            this.tableColumn3 = tc;
        private StaticText staticText5 = new StaticText();
        public StaticText getStaticText5() {
            return staticText5;
        public void setStaticText5(StaticText st) {
            this.staticText5 = st;
        private TableColumn tableColumn11 = new TableColumn();
        public TableColumn getTableColumn11() {
            return tableColumn11;
        public void setTableColumn11(TableColumn tc) {
            this.tableColumn11 = tc;
        private StaticText staticText13 = new StaticText();
        public StaticText getStaticText13() {
            return staticText13;
        public void setStaticText13(StaticText st) {
            this.staticText13 = st;
        public customer_list() {
        protected adminSessionBean getAdmin$adminSessionBean() {
            return (adminSessionBean)getBean("admin$adminSessionBean");
        protected soulsurfing.ApplicationBean1 getApplicationBean1() {
            return (soulsurfing.ApplicationBean1)getBean("ApplicationBean1");
        protected soulsurfing.SessionBean1 getSessionBean1() {
            return (soulsurfing.SessionBean1)getBean("SessionBean1");
        protected soulsurfing.RequestBean1 getRequestBean1() {
            return (soulsurfing.RequestBean1)getBean("RequestBean1");
        public void init() {
            super.init();
            try {
                _init();
            } catch (Exception e) {
                log("customer_list Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
        public void preprocess() {
        public void prerender() {
            try {
                if (getAdmin$adminSessionBean().getFilter1().equalsIgnoreCase("")) {
                    getAdmin$adminSessionBean().getCustomerRowSet().setString(1, "%");
                } else {
                    getAdmin$adminSessionBean().getCustomerRowSet().setString(1, getAdmin$adminSessionBean().getFilter1());
                if (getAdmin$adminSessionBean().getFilter1().equalsIgnoreCase("")) {
                    getAdmin$adminSessionBean().getCustomerRowSet().setString(2, "%");
                } else {
                    getAdmin$adminSessionBean().getCustomerRowSet().setString(2, getAdmin$adminSessionBean().getFilter2());
                getAdmin$adminSessionBean().getCustomerRowSet().execute();
                customerDataProvider.refresh();
                customerDataProvider.cursorFirst();
                getAdmin$adminSessionBean().setRowCount(customerDataProvider.getRowCount());
                getAdmin$adminSessionBean().setMsg(getAdmin$adminSessionBean().getRowCount() + " records returned.");
                //i have a breakpoint here which hangs when stepping over code however works if breakppoint not set
                String test_var1 = getAdmin$adminSessionBean().getFilter1();
                int test_var2 = getAdmin$adminSessionBean().getRowCount();
            } catch (Exception e) {
                log("Exception occurred!!", e);
                error("Error: "+e.getMessage()); //null exception is being caught
        public void destroy() {
            customerDataProvider.close();
    adminSessionBean.java
    package soulsurfing.admin;
    import com.sun.rave.web.ui.appbase.AbstractSessionBean;
    import javax.faces.FacesException;
    import com.sun.sql.rowset.CachedRowSetXImpl;
    public class adminSessionBean extends AbstractSessionBean {
        private int __placeholder;
        private void _init() throws Exception {
            customerRowSet.setDataSourceName("java:comp/env/jdbc/SoulSurfing_User");
            customerRowSet.setCommand("SELECT * \nFROM customer ");
            customerRowSet.setTableName("customer");
        private CachedRowSetXImpl customerRowSet = new CachedRowSetXImpl();
        public CachedRowSetXImpl getCustomerRowSet() {
            return customerRowSet;
        public void setCustomerRowSet(CachedRowSetXImpl crsxi) {
            this.customerRowSet = crsxi;
        public adminSessionBean() {
        protected soulsurfing.ApplicationBean1 getApplicationBean1() {
            return (soulsurfing.ApplicationBean1)getBean("ApplicationBean1");
        public void init() {
            super.init();
            try {
                _init();
            } catch (Exception e) {
                log("adminSessionBean Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
        public void passivate() {
        public void activate() {
        public void destroy() {
        private String filter1 = "";
        public String getFilter1() {
            return this.filter1;
        public void setFilter1(String filter1) {
            this.filter1 = filter1;
        private String filter2 = "";
        public String getFilter2() {
            return this.filter2;
        public void setFilter2(String filter2) {
            this.filter2 = filter2;
        private int rowCount;
        public int getRowCount() {
            return this.rowCount;
        public void setRowCount(int rowCount) {
            this.rowCount = rowCount;
        private String msg;
        public String getMsg() {
            return this.msg;
        public void setMsg(String msg) {
            this.msg = msg;
    }

    Hi Harini,
    What I didn't explain in my initial post is that there are more than 2 views in my application.  There are a total of 9 jsp's so far, so I coded multiple controllers due to the high amount of views.  After taking the HTMLB training class, I noticed that the examples used contained no more than 2 jsp's, so only 1 controller was needed.
    However, I talked with another Portal developer, and he suggested that it would be simpler to code the application using only 1 controller.  The problem is, I will have 1 LOOOOONG controller since there are many buttons across all of the jsp's (hence many events that will need to be handled) and many beans that need to be populated.
    Harini, thanks very much for offering to view my par file.  I think I have solved the problem on my own, but could you let me know what the design standard is for an application of this size?  Think of an online banking application that needs to handle bill payment (paying the bill, viewing past payments, etc.,).
    Would you use 1 controller for this type of application?
    Thanks very much for your help.
    -Jamie

  • Mini display port to DVI problems

    Hello community,
    I have a question regarding the connection from an iMac via the mini display port to a DVI input at a TFT monitor. I have an older TFT monitor and now I connected the iMac with this monitor via mini display port -> DVI adapter -> DVI cable -> monitor.
    It is quite a simple connection, but actually when I force Mac OSX to detect external monitors it does not react at all. Mac OSX behaves as if there is no connection to an external monitor.
    I already told this to my reseller and they told me that the adapter is not working correctly and they gave me another one. With that one I have exactly the same problem and now I'm quite sure, that it is not a problem of the adapter, but somehow my iMac does not find the external monitor.
    Is there probably an underlying problem I do not understand yet?
    By the way, my very old Macbook White has no problems detecting the monitor. If I use the older video output it works fine, but the new output at my iMac 21,5 inch does not work with my monitor.
    My question is, why does it not work and what kind of monitor do I need, that it can be connected with my iMac (via DVI)?

    Is the adapter plugged in all the way in the Mini DisplayPort?  It takes more force than you might expect.

  • Dunning Letter template problem

    Hi,
    I've started using dunning letters but have a problem with a discrepency between the data that appears on my screen in the recommendation report (i.e the list of invoices being dunned) and the actual printed letter..
    For example on screen I can see the list of invoices for a particular customer like this:
    Doc No. / Date
    50847 / 14.01.2009
    50874 / 20.01.2009
    50902 / 22.01.2009
    51014 / 05.02.2009
    50944 / 30.01.2009
    51149 / 27.02.2009
    But the print out shows:
    50847 / 14.01.2009
    50874 / 20.01.2009
    50902 / 22.01.2009
    51014 / 30.01.2009
    50944 / 05.02.2009
    51149 / 27.02.2009
    Subtle difference but the dates of lines 4&5 have been swapped! All the other columns seems correct and I checked the actual invoices - the date showing on screen is correct - the printed version is wrong... I checked in PLD if the screen was showing posting date and the print out document date or something like that but it seems not. The template is 'Dunning Letter 01 (System) Doc ID DUN00001.
    Can anyone advise where the problem is?
    Thanks
    Karen

    Hi Gordon,
    I found a SAP note which seems to be the same issue but it seems to me to be old and supposedly fixed by now - I am on 2007A PL40
    Note 1117525
    Symptom:
    You print Dunning letters for a BP whose dunning terms are set as One letter per BP. In the printout of the Dunning letters, the rows are mismatched in such a way that the document dates do not correspond to the document numbers.
    This occurs when you have later documents with earlier document dates.
    Sorry for sounding clueless but not sure what you mean about replicating on test database in order to log support ticket?
    I do have a test database which I use to test things on but didn't notice the document no/date jumbling until I did it on the live one.
    How do I log a support ticket >- my other problems have been resolved with forum advice..
    Many thanks
    Karen

  • Message Driven Bean: problem with @RunAs annotation

    I am having a problem using the @RunAs annotation in a message driven bean.
    I would like the code in my onMessage() method to be executed with a specific role/user, so I want to use the @RunAs annotation to achieve this.
    I am running weblogic 10.0.
    I have created the following in weblogic console:
    - Group "TestGroup"
    - User "TestUser", member of "TestGroup"
    - Global Role "TestRole", role condition: "Group : TestGroup"
    The MDB:
    package be.cegeka.test.mdb;
    import javax.annotation.Resource;
    import javax.annotation.security.RunAs;
    import javax.ejb.ActivationConfigProperty;
    import javax.ejb.MessageDriven;
    import javax.ejb.MessageDrivenContext;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    @MessageDriven(
              mappedName = "testQueue",
              name = "TestMDB",
              activationConfig = {
                        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
    @RunAs("TestRole")
    public class TestMDB implements MessageListener {
         @Resource
         private MessageDrivenContext mdContext;
          * {@inheritDoc}}
         public void onMessage(Message msg) {
              System.out.println("Handling message for user "
                        + mdContext.getCallerPrincipal().getName());
    }[u]The ejb-jar.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
    version="3.0">
         <assembly-descriptor>
              <security-role>
                   <description>
                        Test Role.
                   </description>
                   <role-name>TestRole</role-name>
              </security-role>
         </assembly-descriptor>
    </ejb-jar>
    The weblogic-ejb-jar.xml file:
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/10.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/10.0 http://www.bea.com/ns/weblogic/10.0/weblogic-ejb-jar.xsd">
         <security-role-assignment>
              <role-name>TestRole</role-name>
              <principal-name>TestUser</principal-name>
         </security-role-assignment>
    </weblogic-ejb-jar>I would have thought that the onMessage of the MDB would print "Handling message for user TestUser", but instead it prints "Handling message for user <anonymous>".
    It seems as though the @RunAs annotation has no effect. Although I specified the role TestRole (mapped to the user TestUser), the code still seems to be executed by user anonymous.
    Am I missing something?
    Any help would be much appreciated! I've been looking at this poblem for quite a while now.

    Both beans (the MDB on WLS 10 and the session bean on WLS 8.1) use container managed transactions.
    For the MDB I do not explicitly set the transaction attributes, so it should default to container managed transactions.
    For the stateless session bean I have specified the following in the ejb-jar.xml file:
    <ejb-jar>
      <display-name>Weblogic8Service</display-name>
      <enterprise-beans>
        <session>
          <ejb-name>Weblogic8Service</ejb-name>
          <home>be.cegeka.rszv.test.session.Weblogic8ServiceRemoteHome</home>
          <remote>be.cegeka.rszv.test.session.Weblogic8ServiceRemote</remote>
          <ejb-class>be.cegeka.rszv.test.session.Weblogic8ServiceBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
        </session>
      </enterprise-beans>
      <assembly-descriptor>
        <container-transaction>
          <method>
            <ejb-name>Weblogic8Service</ejb-name>
            <method-name>*</method-name>
          </method>
          <trans-attribute>Required</trans-attribute>
        </container-transaction>
      </assembly-descriptor>
    </ejb-jar>So as far as I understand it the transaction starts at the MDB (upon receival of a message). The transaction for the remote call to the stateless session bean (in the onMessage() of the MDB) is included in the transaction of the MDB and gets committed when the onMessage() method finishes and the transaction of the MDB itself gets committed.
    Correct me if I'm wrong here.

  • MessageDriven Bean problem.Working but the queues r not getting cleared

    I have written a simple message driven bean.It just sends a message to an another queue myadapterqueue
    on getting a message .
    It is working. But the problem is if I restart my application server then it again reads the messages which had been sent to it earlier.Also the queue size is
    not getting to 0 bytes after it has consumed messages.
    My application server is JBOSS2.4.3
    I think I have to specify some attributes in the
    descriptor files.But how??????????????
    Here is my code
    import java.util.*;
    import javax.ejb.*;
    import javax.jms.*;
    import javax.naming.*;
    public class MyMessageBean implements javax.ejb.MessageDrivenBean,javax.jms.MessageListener
         private QueueConnection connect=null;
         private QueueSession session=null;
         private QueueSender sender =null;
    private Queue sendQueue=null;
    private MessageDrivenContext ctx = null;
         public void setMessageDrivenContext(MessageDrivenContext mdc){
              System.out.println ("In setMessageDrivenContext--------------");
              this.ctx=mdc;
         public void ejbCreate(){
              try{
                   System.out.println ("Message bean Created--------------");
                   InitialContext jndi=new InitialContext();
                   QueueConnectionFactory queueFactory=(QueueConnectionFactory) jndi.lookup("ConnectionFactory");
                   connect=queueFactory.createQueueConnection();
                   session=connect.createQueueSession (true,Session.AUTO_ACKNOWLEDGE);
                   System.out.println ("After session creation--------------");
                   sendQueue=(Queue)jndi.lookup("queue/myadapterqueue");
                   System.out.println("************ queue/myadapterqueue");
              sender=session.createSender (sendQueue);
              System.out.println ("Before Connection start--------------");
              connect.start();
              }catch(javax.jms.JMSException jmse){
                   System.out.println ("In ejbcreate exception-------------------");
                   throw new javax.ejb.EJBException();
              }catch(javax.naming.NamingException jne){
                   System.out.println ("In ejbcreate exception-------------------");
                   throw new javax.ejb.EJBException();
         public void ejbRemove(){
              try{
              System.out.println("ejbRemove done");
              connect.close ();
                   this.ctx=null;
              }catch (javax.jms.JMSException jmse){
                   System.out.println ("In ejbremove exception-------------------");
                   System.out.println("ejbRemove excetion");
                   throw new javax.ejb.EJBException();
         public void onMessage(Message msg){
              try{
              this.sender.send (msg);
              this.session.commit();
              System.out.println(" Message");
         }catch(javax.jms.JMSException jmse ){
              jmse.printStackTrace();
    here are my descriptors
    ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <ejb-name>MyMessageBean</ejb-name>
    <ejb-class>MyMessageBean</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    and the correspong xml file for the application server here is jboss.xml
    ?xml version="1.0" encoding="UTF-8"?>
    <jboss>
    <enterprise-beans>
         <message-driven>
              <ejb-name>MyMessageBean</ejb-name>
              <configuration-name>Standard Message Driven Bean</configuration-name>
              <destination-jndi-name>queue/MyMessageBeanQ</destination-jndi-name>
         </message-driven>
    </enterprise-beans>
    </jboss>

    it is unclear whether you are commiting on the first queue or second one.
    but it appears like you have created a transactional problem across the two queues. although you commit on the first queue, this commit is not extended to the second queue.
    things will be fine unless you get an exception of shutdown.
    if you shut your message provider down first then you cannot send the message to the second queue. (assuming that queue 2 is also on the same server)
    if you shut your MB app server down then you may be in the middle of accepting a onMessage callback from the first queue.
    do you have another MB that registers this one as a listener, or are you infact sending a message back onto the same queue...
    public void onMessage(Message msg){
    try{
         this.sender.send (msg);
         //your server may shutdown here and leave messages on the first queue. and send extra messages on the second.
            this.session.commit();
            System.out.println(" Message");
    } catch(javax.jms.JMSException jmse ){
            jmse.printStackTrace();
    }

  • Message-driven bean problem (re-delivering of JMS msg)

    Sorry for crossposting this (already posted in JMS forum), but perhaps someone here (who doesn't read JMS forum) knows the answer to this problem - it's basically a JMS problem, but closely related to EJB:
    I browsed through all available docs but found no answer to this question: How can I force the re-delivery of a JMS message to happen in a few minutes instead of immediately?
    I use JMS in an EJB container (SonicQ in Borland Enterprise Server 5.0.1) and messages are consumed by a message-driven bean. The problem arises when the bean sets the transaction in which the onMessage() function is called to rollback-only: Then, the message is redelivered immediately again causing an infinte processing loop and 100% CPU load on the machine until the message is finally consumed.
    Is it possible to set a timeout for such a "temporarily rejected" message so that it is retries in a few minutes? Would that be a programming issue, or a configuration issue of the container and/or JMS?

    Hi Chranq,
    What you are talkin about is a container configuration thing as far as I can figure out. I may be that your JMS implementation doesn't support it.
    /Stig

  • Enterprise Session Bean Problem

    Dear Experts,
    I have just installed Netweaver Developer Studio 7.1 Composition Environment and is doing some development on it from the tutorial in the following link
    [http://help.sap.com/saphelp_nw04/helpdata/en/c3/679564e11d482f8a706b423f67e56c/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/c3/679564e11d482f8a706b423f67e56c/content.htm]
    I have created a new EJB Project using the Configuration SAP EJB J2EE 1.4 Project and created a new stateless session bean Calculator. 
    I finished creating the session bean with all the BUSINESS METHODS, but when I expand the project node Calculator in the J2EE Explorer, I CANNOT see the Calculator.java class.  All other classes such as CalculatorBean.java, CalculatorHome.java, etc are present. 
    This is where the problem comes, when I create the JavaBean in the Web Module I will need to access the Calculator.java class and now I cannot access it since it is missing.
    Can you please guide me on how to generate the Calculator.java class in the session bean.
    Points will be rewarded for correct answers.
    Thanks in advance
    Edited by: jamison2004 jordan2004 on May 7, 2008 11:16 AM
    Edited by: jamison2004 jordan2004 on May 7, 2008 11:25 AM

    Hi jamison jordan,
    Maybe you check the CE version of the documentation:
    [Creating Your First J2EE Application|http://help.sap.com/saphelp_nwce10/helpdata/en/c3/679564e11d482f8a706b423f67e56c/frameset.htm]
    kind regards
    Stefanie

  • Apple's xpress port has a problem with Apogee mobile card...

    Who can I speak with about this problem? I tried here, I tried Apple support ? Nobody can answer my question about this problem? I purchased a new MacBook Pro in January to use with Apogee mobile card but the xpress port in MacBook Pro has a major problem because of it's new design? Please can someone convey were to get help in Apple or a least an answer..Please someone.........

    Hi,
    What I mean is the microphone jack on your x-fi notebook. since you are saying you can hear yourself when you switch the recording source to microphone, I would assume that you have plugged in a microphone into your x-fi notebook. You should check if there is a microphone control on your volume mixer and whether it is unmuted if there is one. There are many sound card which allows for the microphone audio to be heard on the speaker output if the microphone source is unmuted.
    Message Edited by flipflop on 03-29-2009 09:03 [email protected]

Maybe you are looking for