Facing a very strange problem plz help

hello experts
before sometimes code that is given below was working very well
i doesn,t make any change in this code but after sometime when i run this code thn rs.getstring(1) was not able to acess the data while rs.next(); methode is working properly
is something wrong here or i am missing some very important in this i am very puzzled please help me
<%@ page language="java" import="java.sql.*" %>
<html>
<head>
<title>Process the authentication</title>
</head>
<body background="images/modbkgnd.jpg" bgproperties="fixed">
<%
   String tablename="",query1;
   tablename = request.getParameter("thread");
   String subject = request.getParameter("Subject");
   Connection conn=null;
   out.print(tablename);
   ResultSet rs;
   Statement st=null;
   query1="select * from "+tablename;
  try 
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
   conn=DriverManager.getConnection("jdbc:odbc:lingua");
   st=conn.createStatement();
   rs=st.executeQuery(query1);
   while(rs.next())
%>
    <p><font size="1"color="#CC00CC"><span style="background-color: #C0C0C0">
       <%= subject %> 
                    <%= rs.getString(2) %>  
            <%=rs.getString(3) %>    
           </span></font><span style="background-color: #808080">
    <a target="_blank" style="text-decoration: none" href="replyforum.jsp?tableid=<%=tablename%>"> <font size="1" color="#FFFFFF">Reply>></font>
    </a> 
    </span>
    <table width=60% style="border-collapse: collapse" cellpadding="0" cellspacing="0" border="0" >  
        <tr align=left>
          <td width=60%><font size="1" color="#800000"><%= rs.getString(1) %>
           </font></td>
        </tr>
   </table>
<%    }
     }catch(SQLException ex)
       out.print("Please try after some time");
      finally
        conn.close();
        st.close();
%>
</body>
</html>

hello guys for your valuable support but i have tried that thing you are saying above
when i write rs.getString(1) before other it still give unable to access database
think something else i am very confused
[i have told u that code initially was working but now i don,t know why ......................................                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Very strange problem plz help////

    user name == scott.
    tablespace name == data and users.
    data tablespace content approx.20 tables.
    users tablespace content approx 5 tables.
    both tables are under scott schema...
    i want to reclaim data tablespace size..
    so first i import complete tablespace data. as system user.
    then after i want to drop data tablespace but i got error...
    SQL> drop tablespace data including contents and datafiles;
    drop tablespace data including contents and datafiles
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02429: cannot drop index used for enforcement of unique/primary key
    plz. sir help how can i drop this tablespace plz. help plz. plz. plz.

    Try
    SQL> drop tablespace data including contents and datafiles cascade constraints;It seems that you have some referential integrity constraints, outside data tablespace, pointing to a table inside data tablespace.

  • Very Weird Problem plz help!!

    Here's what happened:
    Every night before I go to bed, I charge my iPhone 3g. Last night I plugged it in to charge it,
    and I made sure that it saidmitnwas charging before I went to sleep. When I went to unplug it this morning, it said that the battery was only at 20% left. I checked the plug ( where usb
    plug plugs into wall adapter), and it wasn't fully plugged in. This is where it gets weird.
    I pushed the USB ug fully into the wall adapter, it came up saying it was fully charged,
    and I unplugged it from the wall outlet. I keep the charger in a place where myself or
    nothing else would have been able to unplug it. It seems to be working fine now, but this was really weird.
    It said it had only 20% battery life left, and then one second later it was fully charged.
    Plz help me!

    possibly the screen had frozen during a display, or hadbeen about to display the 20% status and froze. It still took the full charge and the displayed an action in its cache memory that was no longer accurate hence it then flicked to showing full charge.

  • Memory fault?? very strange problem please help!

    hi!
    my computer return from lab today. i replase a CPU fan+MB fun.
    the techntion also touch the memory card because i ask him something about it and he pull it out and than return it.
    now i come to home i start the computer and suddenly i hear long beep....
    i open the case ,pull the memory card off and than return it again. all seems good .
    suddenly .in game,the computer stuck. after restart i hear long beep again!!!
    i pull out the to memory (thay connect at dual channel) and the result is this:
    whan i put one memory card in GREEN SLOT-all seems good. i try with the second memory and he work good(alone)
    whan i put the memory card in the the green connector and the other one in the green connector (BOTH) all seems good!
    whan i put the memory in the PERPEL connect-i HEAR A BEAP!  doest meter if i put one or two card. in BOTH OF THE PERPLE CONNECTORS! (and of course it beep on dual channel)
    what is the problem?

    ECC is a stick of memory that double-checks every signal before passing it on, one might say. ErrorCorrectionCode.
    You cannot have Dual Channel with only one stick. Two sticks needed.
    Reasons:
    Your two sticks can't work at the same speed. They are too different.
    Not good timings for the memory. Timings is mostly how the memory works, and how it waits.
    (You memtested so it seems as if the sticks are in good physical health. And the slots.)
    The memory sticks want different voltage, and one wont work well with what the other wants.

  • Nokia 3250:A very strange problem...

    hi..i'm facing a very strange problem in my handset 3250.. i've upgraded its os but still there is problem: http://discussions.europe.nokia.com/discussions/bo​ard/message?board.id=smartphones&;message.id=9102#M9102 any idea about such type of problem.....

    MR.,
    what is firmware?? How can i have its latest edition??
    Can you help me because i too have the same problem:
    Problem 1:
    1-I install any software (e.g:snake game) through Application manager (Pc Suit) in memory card.
    2-I launch that software (snake game) just after installation it works properly.
    3-Now i switch-off the hand set and than switch-on it.
    4-I try to launch that software (snake game) again but it doesn't response.
    Problem 2:
    1:There is a image in my Memory card.
    2: I set that image as a wallpaper.
    3-Now i switch-off the hand set and than switch-on it.
    4-Wallpaper reset to default one.
    Problem 3:
    1-I install a theme through Application manager (Pc Suit) in memory card.
    2: I apply that theme in my hand set.
    3-Now i switch-off the hand set and than switch-on it.
    4- Now theme reset to default one.

  • ALV Grid - Very Strange Problem

    I am facing a very strange problem in ALV Grid. Our’s is a ECC5 system on SAP_APPL SAPKH50011 and SAP_BASIS SAPKB64016.
    I have implemented the ALV grid in a screen using classes. This grid by default appears in display mode however it can be switched to change mode and back to display mode using a custom button on the ALV toolbar. When the user clicks the change button the grid appears in editable mode. During the back and forth switching of the ALV between Change/Display modes the ALV grid control is not destroyed however the toolbar, fieldcatalog and ALV contents are refreshed.
    The data which is entered in an editable cell is validated using the data_changed event which has been implemented locally. If the validation fails an error message is raised using the message statement which is being issued correctly. Now when I correct the data and then click on another cell in the ALV grid the program is being aborted. Any clue why this is happening??

    Please check this code
    In the PBO of the screen set the field catalog and layout , i think this will help not to refresh the field catalog every time swtich between display and change mode
        set titlebar sy-dynnr with p_netwk.
        call method g_grid->set_frontend_fieldcatalog
          exporting
            it_fieldcatalog = gt_fieldcat[].
        call method g_grid->set_frontend_layout
          exporting
            is_layout = gs_layout.
        call method g_grid->refresh_table_display.
    2. Regarding program abort, please paste the first page of system dump

  • Very strange problem facing

    Hello All,
    I am facing very strange problem from last a week.
    I have made flex application using Flex3 and AMFphp.
    I was running very fine but just from before 7 days, my all images will not displayed in Mozilla Firefox browser.
    but it is running fine in Internet Explorer browser.
    any idea? I have tried to know what happen but i failed.
    Please help me to identify what's going wrong.
    Thank you.

    Have you tried emptying your cache?
    Dany

  • A very Strange Problem!!!help me!!

    i encounter a very strange problem, in EJB
    i write two EJB, one Stateless Session called A, and one Entity called B.
    i want to call B's findByPrimaryKey method in one A's Business, but failed!!!
    but when i remove the statement that performed the findByPrimaryKey method to A's setSessionContext method, It's Success!!!!!
    what the Problem, i am useing the Borland 's AppServer.
    who can help

    how u create the entity bean B from A?
    using proper lookup?
    can u try by write a small function inside bean A
    that contain proper lookup to Bean B...
    then try to call finbyPrimaryKey...
    now tell me is it working?
    or else can u give code or clear idea..
    if i can help u ,,,, sure i will
    do mail me
    [email protected]

  • I have very strange problem with Iphone 3gs. Whenever it gets little hot or exposed to 30 degree temperature it losses signals (No service). Whenever it is cooled down the service is back. Please help!

    I have very strange problem with iphone 3gs. Whenever it gets little hot or exposed to 30 degree or above temperature it losses signals (No service). Whenever it is cooled down the service is back. Whenever I am using Skype or playing game for a while it losses carrier signals and wifi. When it is cooled down afer shutting down the carrier signals and wifi are back. It is for sure problem is with heating, but 30 degree tempeature in Oman is normal and some time it goes upto 50 degrees. I have noticed this has started after I started using substandard charger as I lost my original charger of the phone. Please help!! Thanx.

    The specifications define an operating range up to 35 degrees.

  • This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangly (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

  • Very strange problem / Perpetual command key

    I've been using OS X since its inception, and have never had this problem before.
    Starting yesterday, I noticed a very strange problem that was happening randomly. When I clicked on an app in the dock, it would just reveal the app to me in Finder rather than opening it. Other problems including multiple selections when single-clicking on items with my mouse, and not being able to type. After some fidgeting, I realized that my iMac is acting like I'm always holding down the command (apple) key. If I have a window open, for instance, pressing the H (just by itself) key will hide the window. Pressing Q will quit whatever is active.
    I shut down, restarted, plugged in a different keyboard, used a different mouse, unplugged all my periphs, deleted all haxies and their attached files, and it still happened. I unplugged my 2nd monitor, and that seemed to fix it after another restart... but then I plugged in my 2nd monitor again and restarted, and now everything is fine. It's just happening randomly. I'm afraid to restart my Mac now. This is really bizarre!!!
    Someone please help!

    If it's any help, it started right after the following:
    When booted to Vista one night, I noticed ghosting on my nice new iMac screen which kinda irked me. I could see the menubar with the Spotlight menu icon burned into the screen.
    So when I got back into OS X I looked for a menubar hider. I tried Menushade and Menufela, both of which are quite old... probably before any mention of an Intel switch had ever occurred.
    But now I had a problem... no clock. So I went ahead and downloaded Yahoo! Widget Engine (aka Konfabulator). I know, I know... what a crazy workaround just to hide the menubar (this is why it would be GREAT if Apple would build in its own menubar hider option!)
    Anyway, this stuff started happening, so I deleted all of those apps (Menufela, Menushade, and Yahoo Widget Engine) with AppZapper (a great little app).
    Ugh... this is what you get for experimenting with homegrown apps, I guess.
    Anyway, hope that helps.

  • A very strange problem in netbeans

    i debug a project in netbeans,a a very strange problem happens.
    a member variable was different between wtk20 and wtk22.and the variable was changed many places so it's hard to trace!
    but there hasn't the problem when i debug project in jbuilderx!

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • Audio Clip problem plz help..

    There is some problem with my code. It is actually for simply playing a wav file.
    It gives errors on two lines....
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class MediaPlayerDemo extends JFrame
         AudioClip clip; //Error Here
         public MediaPlayerDemo(String title)
              super(title);
         clip = getAudioClip(getCodeBase(),"access.wav"); //Error Here
         clip.loop();
         public static void main(String args[])
              MediaPlayerDemo m = new MediaPlayerDemo("Title");
              m.setSize(400,400);
              m.setVisible(true);
    }

    "Audio Clip problem plz help"
    You have to learn to help yourself.
    Have you done anything to try to fix the errors yourself?
    AudioClip clip; //Error Here
    the error generated here is self-explanatory.
    if you can't fix this, you should get a good book on java basics and start again.
    the other error is also easy to fix.

  • Classpath problem plz help me

    hi!
    i am unable to run my RMI server program .Name of My server class is SumServer.java,it implements SumInterface.java all the files(.class,.java and stub) are at location c:\javaprog\rmi\sum.
    I have not put them in any package.
    value of classpath is
    classpath=c:\jdk1.4\lib;.;c:\javaprog\rmi\sum
    i go in sum folder and run the program
    c:\javaprog\rmi\sum > SumServer
    it gives me following exception.plz help me out.
    Thx in advance.
    Exception occur.Unable to register serverjava.rmi.ServerException: RemoteExcepti
    on occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: SumServer_Stub

    Deepa lakshmi wrote:
    Hi,
    Am new to weblogic.
    Am using the tools are,
    Weblogic8.1 version
    MySql5.0,mysql-connector-java-3.1.12-bin.jar file
    While test configuration of connection pooling am getting the error is "JDBC Driver is not on the classpath".
    How can i solve this problem
    plz help me
    regards
    DeepaEdit the start-weblogic script. Near the bottom, you will see
    lines that create a CLASSPATH for the weblogic server. Add a
    script line that adds the mysql driver to the classpath there.
    Joe

  • I can't watch Dailymotion videos on my iPad but can do so on my iPhone and PC. Very strange. Please help !

    I can't watch Dailymotion videos on my iPad but can do so on my iPhone and PC. Very strange. Please help !

    Take it to an Apple store genius bar to have the techs see what your options are for repair/replacement.  An out-of-warranty replacement is $149 in the US for the iPhone 4.

Maybe you are looking for

  • Lightroom cant see my folders when importing

    When I go to the import dialog in Lightroom 5.3 and I select one of my 3 networked hard drives (hosted on a Mac) I can only see the directory structure of one of my drives in lightroom my Y: Drive (for videos) shows up properly, but when I select the

  • Getting references to the objects in a VM to dynamically link MBeans

    Hi, I am dynamically generating MBeans and using Apache BCEL to change the resource classes to link themselves to the MBeans. The objective is to instrument applications wich we can't access the code and, if possible, do it on a running one. I could

  • How to call RFC from Excel

    Hi all, Can any one give me sample VBA code to connect to SAP and call an RFC. I have found some code fragments in this forum, I would be grateful if someone can send me code for end-to-end processing. Regards, Hanif Message was edited by: Muhammad H

  • PI 7.1 Upgrade Mount Point

    Hi. Im upgrading a 7.0 PI system to 7.1, and all was going well until the system asked about the mount points. I have tried everything - the cds, the downloaded product. Nothing seems to recognise the 'SAP Kernel DVD Unicode' folders /cds. Its able t

  • Notification, but no updates available

    I'm notified that updates are available for my apps, but when I choose to update them, it says no updates are available.  For instance, there's a red number indicating that 3 updates are available, but when I click the update option, it searches, the