I gt problem in createImage method, Please Help Me!

This part of code is from Ticker.Class:
public void createParams()
     {//tickerTape.x = 900;
          //tickerTape.y = 40;
          int width = getSize().width;
          //System.out.println("getSize().width "+getSize().width);
          int height = getSize().height;
          lastS.width = width;
          lastS.height = height;
          System.out.println("width"+width);
          //System.out.println("width: " + width + " height: " + height);
          tickerTape.createParamsgr();
          Font font = tickerTape.getDefaultFont();
          this.setFont(font);
          FontMetrics metrics = getFontMetrics(font);
          metrics = getFontMetrics(font);
          int k = getFontMetrics(font).getHeight();
          //tickerTape.cParams();
          //tickerTape.createParams1(lastS);
          //setSize(tickerTape.cParamsHeight(),tickerTape.cParamsWidth());
     //     messageY = tickerTape.cParamsY();
          messageX = width;
          messageY = (height - k >> 1) + metrics.getAscent();
               image = createImage(getSize().width,getSize().height);
               tickerTape.initImage(image);
               //gr=image.getGraphics();
     public  void paint(Graphics g)
      update(g);
     public synchronized void update(Graphics g)
          //gr.clearRect(0, 0, d.getSize().width, d.getSize().height);
          //gr.setColor(bgCo);
          //gr.drawRect(0, 0, d.getSize().width - 1, d.getSize().height - 1);
          //gr.fillRect(0, 0, d.getSize().width, d.getSize().height);
          //g.drawImage(image, 0, 0, this);
          if (Ticker.LOADING_DATA) {
               System.out.println("Refreshing data. Please wait....");
               return;
          try {
               if(image==null)
               image = createImage(getSize().width, getSize().height);
               tickerTape.initImage(image);
               //if (tickerTape.cParamsHeight() != lastS.height|| tickerTape.cParamsWidth() != lastS.width)
               if (getSize().height != lastS.height|| getSize().width != lastS.width)
               createParams();
               if (tickerTape.getDisplayItems().size() > 0) {
                    //System.out.print("lastS.width: " + lastS.width + " lastS.height: " + lastS.height + "\n");
                    tickerTape.setBackground(lastS,bgCo,messageX,messageY);
                    if (display_URL) {
                         int k = mouseX;
                          //System.out.println("k=" + k + " messageX=" + messageX);
                         if (k > messageX) {
                              //System.out.println("(k > messageX) is true!!");
                              //System.out.println("messageCount----> " + messageCount);
                              messageCount = tickerTape.displayItemsCnt;
                              k -= messageX;
                              switch (this.mouseEvent) {
                              case TickerTape.SCROLL_LEFT:
                                   break;
                              case TickerTape.SCROLL_RIGHT:
                                   // for (int i1 = 0; i1 <= messageCount - 1; i1++)
                                   // i += ((Integer) msgsW.elementAt(i1)).intValue();
                                   // if (k >= i)
                                   // continue;
                                   // messageIndex = i1;
                                   // break;
                                   // break;
                              if (this.mouseEvent == MOUSE_CLICK) {
                                   // showStatus((String)
                                   // msgsURL.elementAt(messageIndex));
                    //Font itemFont = null;
                    //FontMetrics fontMetrics = null;
                    //Color textColor = null;
                    //Vector msgs = tickerTape.getDisplayItems();
                              switch (tickerTape.getScrollDirection()) {
                              case TickerTape.SCROLL_LEFT:
                                   tickerTape.moveLeft(messageX,messageY);
                                   g.drawImage(image, 0, 0, this);
                                   break;
                              case TickerTape.SCROLL_RIGHT:
                                   tickerTape.moveRight(messageX,messageY,ItemToDisplay);
                                   g.drawImage(image, 0, 0, this);
                                   break;
                              case TickerTape.SCROLL_UP:
                              case TickerTape.SCROLL_DOWN:
                                   tickerTape.moveDown(messageX,messageY);
                                   g.drawImage(image, 0, 0, this);
                                   //g.drawImage(image, 0, 0, this);
                                   break;
               }     else {
                         image = createImage(getSize().width, getSize().height);
                         tickerTape.initImage(image);
                         //gr=image.getGraphics();
                         tickerTape.setBackground(lastS,bgCo,messageX,messageY);
                         g.drawImage(image, 0, 0, this);
          } catch (Exception e) {
               e.printStackTrace();
     }This part of code from TickerTape.Class:
public void createParamsgr(){
          if (gr != null)
               gr.finalize();
          if (image != null)
               image = null;
     public void initImage(Image image){
          gr = image.getGraphics();
     }This code already runable. But my question is Why when I decide to move the createImage method into the method of initImage in TickerTape.class, then it come out the error with nullpointer, why like that? is it im make any wrong thing? Or any solution for me to make it correct. Thanks and appreciate!

hi, thanks for your reply.
let me briefly explain to you,
now, you try to look at the createParams() method and update(Graphics g) method int Ticker.class, inside there also got
image = createImage(getSize().width, getSize().height);
tickerTape.initImage(image);
So, now I want to move the code:
image = createImage(getSize().width, getSize().height);
into the TickerTape.class but dont Why come out the error with:
java.lang.NullPointerException
     at TickerTape.initImage(TickerTape.java:90)
     at Ticker.update(Ticker.java:503)
     at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
     at sun.awt.RepaintArea.paint(RepaintArea.java:216)
     at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
     at java.awt.Component.dispatchEventImpl(Component.java:4031)
     at java.awt.Container.dispatchEventImpl(Container.java:2024)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
but it doesnt work!
Is it I put wrong thing or I forgot to put any important code?

Similar Messages

  • I have problem in repeint method please help me

    my screen blinks badly when i use repaint method
    if i use update it only updates the page not erase prevois
    what i can do iam in very trouble please help me

    my screen blinks badly when i use repaint method
    if i use update it only updates the page not erase
    prevois
    what i can do iam in very trouble please help meAre there any lengthy calculations being done in the paint() function? This can delay the repaint() after the update() function clears the screen area and make flicer bad. Mover any code possible out of paint() and have it done before update() is called.

  • HT201363 Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104569)

  • TS1538 I have tried everything but I can't connect my iphone to my laptop. It says that apple mobile device failed to be installed. I have read everything on the internet and did everything but still am facing the same problem. Can you please help me.

    I have tried everything but I can't connect my iphone to my laptop. It says that apple mobile device failed to be installed. I have read everything on the internet and did everything but still am facing the same problem. Can you please help me.

    Again without stating the trouble shooting steps you have taken, its hard to direct you with any information.
    Try a different port on the computer.
    Does the iphone beep when u plug it up. ?
    Plug iphone into computer and give it 3 to 4 minutes to see if it connects and is running slow.,
    Delete the apple mobile device from your computer.
    Upgrade itunes to newest version.
    Is you USB cord defective ?
    Any USB 3.0 on your system ? .
    Delete or Disable  any antivirus program on your computer ?
    I will tell u the problem is your computer not the phone.
    We could do this for hours.

  • Developer 6 Timer Problem... Please help

    Hi all,
    I have installed Developer 6(Oracle Product) on my system. I am facing a strange problem whenever I try to use Create_Timer built in. The cursor moves to starting of the Item being modified as soon as the space bar is pressed (timed for timer expiration). If I remove the Built-in the problem is resolved.
    Please help urgently.
    Regards
    Anand

    Upgrade to the latest patch and the problem shoudl go away - this issue was fixed I think in 6.0.8.13+
    You can also try setting Keey Cursor position to Yes on the item.

  • HT1926 i've tried so many times but the problem still exists! please help!!

    i've tried so many times but the problem still exists! please help!!

    Could you describe what your problem is, please?

  • What to do when iTunes cannot sync my iPad 3. Problem Event Name: BEX (Please Help)

    What to do when iTunes cannot sync my iPad 3. Problem Event Name: BEX
    Please Help to solve...

    Hi Ahmed,
    In iTunes, go to the Store in the left menu, select iTunes Store, wehn it opens, make sure you are on the home screen (icon of a house in the menu bar) and from the righthand side, select Account.
    Next you will see all of your account information. Just a little don, you will find: Apple ID overview, there it says, Authorised computers; click on the button to deauthorise.
    And you should be done.
    Grtz, Carl.

  • No sound for incoming calls but it works using speaker and earpiece. I can't hear anything but the other party can hear me clearly. I was told it's hardware problem. Would anyone please help? Thanks

    No sound for incoming calls but it works using speaker and earpiece. I can't hear anything but the other party can hear me clearly. I was told it's hardware problem. Would anyone please help me? Thanks

    This is an annoying problem for many people. Most likely your dock connector (on the bottom where you plug in your phone) is dirty or screwed up and is probably just coincidence that it happened after you updated. Some people have had success cleaning the port with a dry clean tooth brush. There is a long discussion going on at the thread I linked below. Good luck...
    https://discussions.apple.com/thread/2475631

  • I suppose it is the problem with socket connection,Please help

    Hi,
    I'm trying to build a chat server in Java on Linux OS.I've created basically 2 classes in the client program.The first one shows the login window.When we enter the Login ID & password & click on the ok button,the data is sent to the server for verification.If the login is true,the second class is invoked,which displays the messenger window.This class again access the server
    for collecting the IDs of the online persons.But this statement which reads from the server causes an exception in the program.If we invoke the second class independently(ie not from 1st class) then there is no problem & the required data is read from the server.Can anyone please help me in getting this program right.I'm working on a p4 machine with JDK1.4.
    The Exceptions caused are given below
    java.net.SocketException: Connection reset by peer: Connection reset by peer
    at java.net.SocketInputStream.SocketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:119)
         at java.io.InputStreamReader$CharsetFiller.readBytes(InputStreanReader.java :339)
         at java.io.InputStreamReader$CharsetFiller.fill(InputStreamReader.java:374)
         at java.io.InputStreamReader.read(InputStreamReader.java:511)
         at java.io.BufferedReader.fill(BufferedReader.java:139)
         at java.io.BufferedReader.readLine(BufferedReader.java:299)
         at java.io.BufferedReader.readLine(BufferedReader.java:362)
         at Login.LoginData(Login.java:330)
         at Login.test(Login.java:155)
         at Login$Buttonhandler.actionPerformed(Login.java:138)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1722)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:17775)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4141)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:261)
         at java.awt.Component.processMouseEvent(Component.java:4906)
         at java.awt.Component.processEvent(component.java:4732)
         at java.awt.Container.processEvent(Container.java:1337)
         at java.awt.component.dispatchEventImpl(Component.java:3476)
         at java.awt.Container.dispatchEventImpl(Container.java:1399)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3302)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3014)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2967)
         at java.awt.Container.dispatchEventImpl(Container.java:1373)
         at java.awt.window.dispatchEventImpl(Window.java:1459)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
         at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
         My program looks somewhat like this :
    1st class definition:
    public class Login extends Jframe// Login is the name of the first class;
    Socket connection;
    DataOutputStream outStream;
    BufferedReader inStream;
    Frame is set up here
    public class Buttonhandler implements ActionListener
    public void actionPerformed(ActionEvent e) {
    String comm = e.getActionCommand();
    if(comm.equals("ok")) {
    check=LoginCheck(ID,paswd);
    test();
    public void test() //checks whether the login is true
    if(check)
    new Messenger(ID);// the second class is invoked
    public boolean LoginCheck(String user,String passwd)
    //Enter the Server's IP & port below
    String destination="localhost";
    int port=1234;
    try
    connection=new Socket(destination,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    outStream=new DataOutputStream(connection.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    System.out.println("connected to "+destination+" at port "+port+".");
    BufferedReader keyboardInput=new BufferedReader(new InputStreamReader(System.in));
    String receive=new String();
    try{
    receive=inStream.readLine();
    }catch(IOException ex){ error("Error reading from server");}
    if(receive.equals("Logintrue"))
    check=true;
    else
    check=false;
    try{
    inStream.close();
    outStream.close();
    connection.close();
    }catch (IOException ex){
    error("IO error closing socket");
    return(check);
    // second class is defined below
    public class Messenger
    Socket connect;
    DataOutputStream outStr;
    BufferedReader inStr;
    public static void main(String args[])
    { Messenger mes = new Messenger(args[0]);}
    Messenger(String strg)
    CreateWindow();
    setupEvents();
    LoginData(strg);
    fram.show();
    void setupEvents()
    fram.addWindowListener(new WindowHandler());
    login.addActionListener(new MenuItemHandler());
    quit.addActionListener(new MenuItemHandler());
    button.addActionListener(new Buttonhandle());
    public void LoginData(String name)
    //Enter the Server's IP & port below
    String dest="localhost";
    int port=1234;
    int r=0;
    String str[]=new String[40];
    try
    connect=new Socket(dest,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStr = new BufferedReader(new InputStreamReader(connect.getInputStream()));
    outStr=new DataOutputStream(connect.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    String codeln=new String("\n");
    try{
    outStr.flush();
    outStr.writeBytes("!@*&!@#$%^");//code for sending logged in users
    outStr.writeBytes(codeln);
    outStr.write(13);
    outStr.flush();
    String check="qkpltx";
    String receive=new String();
    try{
    while((receive=inStr.readLine())!=null) //the statement that causes the exception
    if(receive.equals(check))
    break;
    else
         str[r]=receive;
         r++;
    }catch(IOException ex){ex.printStackTrace();error("Error reading from socket");}
    catch(NullPointerException ex){ex.printStackTrace();}
    } catch (IOException ex){ex.printStackTrace();
    error("Error reading from keyboard or socket ");
    try{
    inStr.close();
    outStr.close();
    connect.close();
    }catch (IOException ex){
    error("IO error closing socket");
    for(int l=0,k=1;l<r;l=l+2,k++)
    if(!(str[l].equals(name)))
    stud[k]=" "+str[l];
    else
    k--;
    public class Buttonhandle implements ActionListener
    public void actionPerformed(ActionEvent e) {
    //chat with the selected user;
    public class MenuItemHandler implements ActionListener
    public void actionPerformed(ActionEvent e)
    String cmd=e.getActionCommand();
    if(cmd.equals("Disconnect"))
    //Disconnect from the server
    else if(cmd.equals("Change User"))
         //Disconnect from the server & call the login window
    else if(cmd.equals("View Connection Details"))
    //show connection details;
    public class WindowHandler extends WindowAdapter
    public void windowClosing(WindowEvent e){
    //Disconnect from server & then exit;
    System.exit(0);}
    I�ll be very thankful if anyone corrects the mistake for me.Please help.

    You're connecting to the server twice. After you've successfully logged in, pass the Socket to the Messenger class.
    public class Messenger {
        Socket connect;
        public static void main(String args[]) {
            Messenger mes = new Messenger(args[0]);
        Messenger(Socket s, String strg) {
            this.connect = s;
            CreateWindow();
            setupEvents();
            LoginData(strg);
            fram.show();
    }

  • Problem in VO execution----Please help me urgent

    Hi,
    I have One region(ASNOpptyReviewRN).this region is a tab in the main page(OpptyPG).For the region i am using one VO(OppReviewVO).
    When i came to this page i am writing the code in the process request to execute the VO based on the condition..so i can get the data on the page.
    First time VO is getting executed and data is coming in the page.if there is no data then i have the requirement to insert or update the fields in the region.
    So everything is working fine first time..or if i not insert anything new row...it is working fine all the time.
    But the problem is...after insert a new row and if i come to home page(not OpptyPG) and if i go to the ASNOpptyReviewRN the vo is getting executed but it is not showing the data on the page..
    This is happenig only when i insert a new row and i come back to that page..
    Please Help me..its urgent.. i am pasting the Processrequest and Amimpl code here...
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    String BidNumber=(String)pageContext.getTransactionTransientValue("ASNOpptyDetNbr");
    String reviewdBy=pageContext.getParameter("ReviewedBy");
    String reviewdDate=pageContext.getParameter("ReviewedDate");
    String versionNum=pageContext.getParameter("VersionNumber");
    String effortWithoutCont=pageContext.getParameter("EffortWithoutContingency");
    String contEffort=pageContext.getParameter("ContingencyEffort");
    String reviewFlag=pageContext.getParameter("ReviewFlag");
    String expiryDate=pageContext.getParameter("ExpiryDate");
    String comments=pageContext.getParameter("Comments");
    Serializable[] parameters={BidNumber,reviewdBy,reviewdDate,versionNum,effortWithoutCont,contEffort,reviewFlag,expiryDate,comments};
    pageContext.writeDiagnostics(this, "Inside ifff Bharat", 1);
    am.invokeMethod("insertBidReviewRow",parameters);
    and the method in the am is
    public void insertBidReviewRow(String BidNumber,String reviewdBy,String reviewdDate,String versionNum,String effortWithoutCont,String contEffort,String reviewFlag,String expiryDate,String comments) throws SQLException,
    ParseException
    String msg1="Hi i am inside bidreview"+BidNumber+reviewdBy+reviewdDate+versionNum+effortWithoutCont+contEffort+reviewFlag+expiryDate+comments;
    logMessages(msg1);
    Number bidnum=new Number(BidNumber);
    OpportunityBidReviewVOImpl vo;
    vo = getOpportunityBidReviewVO1();
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    vo.setWhereClause("BID_ID=:1");
    vo.setWhereClauseParam(0,bidnum);
    vo.executeQuery();
    int rowCount=vo.getRowCount();
    String msg8="Hi no of row count:-.."+":-- "+rowCount;
    logMessages(msg8);
    if(rowCount==0)
    String msg2="Hi iam inside bidreview:- Before fetch...";
    logMessages(msg2);
    vo.setMaxFetchSize(0);
    Row row=vo.createRow();
    String msg3="Hi iam inside bidreview:- After create....";
    logMessages(msg3);
    vo.insertRow(row);
    String msg4="Hi iam inside bidreview:- insert row....";
    logMessages(msg4);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    vo.setCurrentRow(row);
    String msg5="Hi iam inside bidreview:- insert row....";
    logMessages(msg5);
    OpportunityBidReviewVORowImpl opptybidreviewVo = (OpportunityBidReviewVORowImpl)vo.getCurrentRow();
    opptybidreviewVo.setBidId(bidnum);
    opptybidreviewVo.setReviewedBy(reviewdBy);
    //opptybidreviewVo.setReviewedDate(reviewdate);
    opptybidreviewVo.setVersionNumber(versionNum);
    opptybidreviewVo.setEffortWithoutContingency(effortWithoutCont);
    opptybidreviewVo.setContingencyEffort(contEffort);
    opptybidreviewVo.setReviewFlag(reviewFlag);
    //opptybidreviewVo.setExpiryDate(expirydate);
    opptybidreviewVo.setComments(comments);
    String msg6="Hi iam inside bidreview:- after all....";
    logMessages(msg6);
    String msg7="vo is cleared";
    logMessages(msg7);
    else
    String msg7="Hi iam inside bidreview:- already existing.....";
    logMessages(msg7);
    Thanks in advance
    Edited by: 842238 on Jul 1, 2011 7:07 AM

    Hi Kristoper,
    No..that Vo is based on some EO..why i am using the row.setAttribute() is...the bid number is coming from some other page...and i need to insert it in table..
    and except the bid number..other values are coming from the page...
    Thank you

  • PROBLEM WITH NEW ROW  --- PLEASE HELP

    Hello,
    I've had it with the framework. It's been 20 hours and counting that I am trying to insert/validate a new record.
    Things just don't work as advertised.
    Here's the situation:
    I have an entity object with various validation rules in the validate() method.
    Then I have a simple JSP page to insert new records.
    At submit of button, I follow the framework's default
    create new row and fill it up, with the difference
    that i need to validate the row as soon as I fill it up
    with data from the http request:
    <jbo:OnEvent name="Create">
    <jbo:Row id="newrow" datasource="ds" action="CreateInRange" >
    <% try { %>
    <jbo:SetAttribute dataitem="*" />
    <%
    newrow.validate(); //******* NOTICE HERE THAT I VALIDATE
    } catch (JboException ex) {
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    </jbo:OnEvent>
    Unexpected behavior 1: If the validation fails,
    newrow DOES NOT GET REMOVED!!!! I know this
    since when I view data thru a data table component,
    the row is there WITH THE ERROR INFORMATION set!!.
    If I do a commit transaction, then the erroneous information ENDS UP IN THE DATABASE!!!!!
    Unexpected behavior 2: If I do a rollback, every
    call to subsequent pages results in a jsp error:
    java.lang.ClassCastException: oracle.jbo.html.jsp.datatags.OnEventTag
    PLEASE HELP.
    Chris Lambrou

    I have (hopefully) found a solution to my part of this problem. I was getting the ClassCastExceptions on any page with a <jbo:row> tag after doing a failed DML action. I have tested this with the delete event. (btw, I am using jdev9.0.3.3 w/ BC4J/JSP) Before what I was doing was this:
    <% try { %>
    <jbo:Row id="delrow" datasource="ds" rowkeyparam="jboRowKey" action="Delete" />
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    If I removed the try/catch block everything worked fine. Unfortunatlely, I need to try/catch block here. To work around the problem I changed the code to this:
    <% Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    <%
    rowDelete.remove();
    %>
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    The second bit of code does the same thing (but it doesn't use a bean like I think <jbo:Row> does) and it doesn't cause the ClassCastError on subsequent errors.
    I really hope this helps someone else because it took me forever to get a workaround!
    ~Rob Lundeen

  • Problem getting with monitor please help me

    Hi All,
    Am trying with these options...but it is not working for me.....Is there any wrong with my parameters?
    I tried with all three also pop3, imap.Will you please tell me how to trace and solve this problem?
    Please help me if anybody knows...
    java monitor smtp.gmail.com bhavana.shilpa onlyonwork inbox 5
    Testing monitor
    javax.mail.MessagingException
    : Connection timed out: connect;
    nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at com.sun.mail.imap.IMAPStore.protocolConnect(
    IMAPStore.java:571)
    at javax.mail.Service.connect(
    Service.java:288)
    at javax.mail.Service.connect(
    Service.java:169)
    at monitor.main(
    monitor.java:66)
    Caused by:
    java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(
    Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.mail.util.SocketFetcher.createSocket(
    SocketFetcher.java:233)
    at com.sun.mail.util.SocketFetcher.getSocket(
    SocketFetcher.java:189)
    at com.sun.mail.iap.Protocol.<init>(
    Protocol.java:107)
    at com.sun.mail.imap.protocol.IMAPProtocol.<init>(
    IMAPProtocol.java:104)
    at com.sun.mail.imap.IMAPStore.protocolConnect(
    IMAPStore.java:538)
    ... 3 more
    Regards
    Karthik

    Two posts for the same problem? Why?
    http://forum.java.sun.com/thread.jspa?messageID=10235654

  • Cloudscape connection problem....please help!

    I am using Cloudscape DBMS (this ships packaged with J2EE RI v1.3.1 ) for a distributed application. I have two separate databases for my application. The databases named Bank1 and Bank2 hold individual account information (one account in each database). I am using the RMI framework in Cloudscape for this application. An auxiliary method in my (stateful) session bean does a lookup for DataSource objects. This helper method is placed in the setSessionContext (SessionContext context) method of the bean. The EJB Client is a swing class that was written to display the account information held in the databases and allows money transfers between accounts in the two databases. When I run the client, the EJB throws a RemoteException (an SQL Exception caught is made to throw a RemoteException). I get the following message:
    RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException:nested exception is:java.sql.SQLException:Connection previously closed, open another Connection; nested exception is:java.sql.SQLException:Connection previously closed, open another Connection
    Clicking OK for this modal messageDialog lets the client application pop up with user interface that displays only one database account.
    Could someone suggest something? Please help me out.
    Thanks
    Manoj Dhanji
    [email protected]

    Manoj,
    I am having a very similar problem. If you have managed to resolve the issue, can you please post the solution here?
    thanks for your help,
    Nick

  • TOMCAT problem on REDHAT 9,PLEASE HELP

    Hello, i am new to redhat and i installed tomcat 4.0.1 and it worked properly, i used tomcat for studying issues so i used to start it and stop it many times
    now when i use mozilla and try to request the server using http://localhost:8080/ ,mozilla status bar shows "Transfering data from localhost" and loops for ever
    so please help me

    I think this is not problem of redhat just check reinstalling tomcat.

  • Very Odd Problem connecting to network please help

    Ok so I have had my Macbook Pro for a while and I have both an Airport Extreme and an Airport Express in my room. So until recently I could turn on my computer and my Airport would automatically connect to the internet. Now recently I turn on or open my computer and I can still see my network but I cannot connect to it. I have restarted all the devices and my computer, but the only thing that eventually logs me on (after anywhere between 5 minutes - an hour) is waiting. But the second I close my laptop I will get booted off the Internet and I cannot connect again.
    However I can still see the network I just cannot connect to it.
    Also another problem I have noticed is that when in Network Setup Assistant it asks me for the password for the network, and I have entered this password many times in my life for my iPhone and for my other devices. And yet recently when I input the correct password (ive tried over 100 times) I get a message saying that the password is incorrect, when I know for a fact that I am putting the right password in.
    If anyone could please help me I would be very grateful.

    The Airport Extreme base station has 2 passwords, one for logging into the router, the other for your network access (assuming you have security switched on). Just make sure you are trying to enter the correct password (I know this sounds obvious and no offense is meant).
    If you added the Extreme to your other router, make sure in Airport utility the Extreme is set to Bridge Mode, this will remove any incompatibility issues with 2 devices trying to obtain IP addresses from your ISP. Only one router should connect to your ISP, using password, username and relevant settings, the other is a bridge for your internal network allowing faster transfers between devices connected to say for example your extreme.
    I have a Netgear DG834PN modem/router which is assigned control to connect to my ISP (as it is a modem, the Extreme Base Station isn't a modem). The Apple Extreme is connected through ethernet to the Netgear. I have all my 802.11g/b/a devices connected through the Netgear wireless network (2.4Ghz) and all my 802.11n devices connected through the Apple Extreme Base Station wireless network ('n' only @5Ghz). I also have my Mac Pro and my AppleTV connected through gigabit ethernet (through the Extreme ethernet). Everything works well. AppleTV and Mac Pro sync very quickly, my MacBook Pro connects to other computers or devices (AppleTV for streaming content) within the Apple Extreme network, wired or wireless, and allows fast transfer speeds, especially with no g/b/a devices slowing things up.
    I also have a USB hub connected to the Extreme with USB printer attached and additional external storage connected, both available throughout the Extreme network to either wired or wireless devices.
    It sounds a bit complicated but it is really easy to do.

Maybe you are looking for