A problem to connect to my database and to insert a line into it.

I can't connect to my database there's an error
in my index file i have written this code:
<?php
mb_http_input("iso-8859-1");
mb_http_output("iso-8859-1");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
       <title>Formulaire</title>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
             <link rel="stylesheet" media="screen" type="text/css" title="Miseenforme" href="Miseenforme.css" />
             <style type="text/css">
             @import url("ModuleStyleSheets.css");
       </style>
             <link href="CSS/colors5.css" rel="stylesheet" type="text/css" />
             <style type="text/css">
             h1 {
          font-size: xx-large;
       #corps form p {
          font-size: 24px;
          text-align: left;
          font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
       #corps form p br {
          font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
          font-size: 24px;
       #corps form p label {
          text-align: left;
       #corps form p label {
          text-align: left;
       </style>
             <link href="CSS/styles.css" rel="stylesheet" type="text/css" />
</head>
   <body>
   <div id="corps">
   <form action="creation.php" method="post" enctype="multipart/form-data">
   <p><!-- #BeginDate format:fcAm1 -->Friday, August 23, 2013<!-- #EndDate -->
   </p>
   <p> </p>
   <table width="500" border="1" align="center" cellpadding="2" cellspacing="2">
     <tr>
       <th width="500" align="center" bgcolor="#66FFFF" scope="row">SAISIE DES DONNEES ADMINISTRATIVES DU FIDELE</th>
     </tr>
   </table>
   <p> </p>
   <p>
      <label>Nom</label>  
              <input type="text" name="Nom"/> <br/>
               <label>Prenom</label>             : <input type="Prenom:" name="Prenom"/> <br/>
            <label>Adresse</label> :</br> <textarea type="text" name="Adresse" rows="8" cols="25"></textarea> <br/>
      <label>codepostal</label> : <input type="codepostal" name="codepostal"><br>
            <label>Ville</label> : <input type="text" name="Ville"/> <br/>
            <label>Commentaires</label> : <textarea type="text" name="Commentaires" rows="8" cols="25"></textarea> <br/>
      <label>Don</label>: <select name="don">
        <option value="chabat">chabat</option>
        <option value="rochhachana">roch hachana</option>
        <option value="kippour">kippour</option>
        <option value="souccot">souccout</option>
        <option value="simhatthorah">simhat thorah</option>
        <option value="pessah">simhat thorah</option>
        <option value="chavouot">chavouot</option>
      </select>
   </p>
   <p>Montant :
     </label><input   type="number" name="montant" style="color:#33C; background-color:#F60;
     font-size:36px"/> <br/>
   </p>
          <p>
          <input name="Submit" type="submit" value="Submit" /> <input type="reset"/>
          </p>
          </form>
          </div>
          </body>
          </html>
and in my creation.php which is the name of the action form there's the following code:
creation.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
          <head>
                    <title> Envoie des données </title>
                           <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
             <link rel="stylesheet" media="screen" type="text/css" title="Miseenforme" href="Miseenforme.css" />
          </head>
          <body>
<p>
<?php
define('DB_SERVER', 'localhost'); // serveur mysql
define('DB_SERVER_USERNAME', 'localhost@localhost'); // nom d utilisateur
define('DB_SERVER_PASSWORD', ''); // mot de passe
define('DB_DATABASE', fideles); // nom de la base
$Nom=$_POST['Nom'];
$Prenom=$_POST['Prenom'];
$Adresse=$_POST['Adresse'];
$Lien=$_POST['Lien'];
$Image=$_FILES['Image'];
$Ville=$_POST['Ville'];
$Cd_post=$_POST['Cd_post'];
$Commentaires=$_POST['Commentaires'];
$montantT=$_POST['Montant'];
$db=mysql_connect("localhost","localhost@localhost","")or die("Erreur de connexion au serveur");
mysql_select_db("fideles",$db)or die ("Erreur de connexion à la base FIDELES");
$MonSql="INSERT INTO 'fideles'(F_NOM, F_PRENOM,F_ADRESSE, F_CD_POST, DON,F_comment, F_VILLE,F_MONTANT) VALUES('$Nom','$Prenom','$Adresse','$Cd_post','$Don','$Commentaires','$Ville','$Montant') ";
$res=mysql_query($MonSql);
if (!$res && mysql_errno() == 1062)
   echo 'Ce titre existe déjà, l\'enregistrement a échoué.';
mysql_close($db);
?>
<a href="Formulairemodif.php">Creation d un &eacute;v&egrave;nement </a>
<table border="4" color="black">
<caption>Fiche</caption>
<thead>
<tr border="5">
    <th width="100">Nom</th>
          <th width="141">Prenom</th>
          <th width="102">Adresse</th>
          <th width="78">Don</th>
          <th width="77">Code postal</th>
          <th width="79">Ville</th>
          <th width="139">Commentaires</th>
    <th width="104">Montant</th>
</tr>
</thead>
<tbody>
<tr>
</tr>
</tbody>
</table><br/>
<h3><a href="Formulairemodif.php"> Modifier un évènement </a></h3> <h3><a href="supprimer.php"> Supprimer un évènement </a></h3>
</p>
</body>
</html>
Tell me where is my error
Thank you

>I can't connect to my database there's an error
What error?
Also, this post belongs in the app dev forum.

Similar Messages

  • Problem to connect to a database from an Excel pivot table

    Hello,
    I have Office 365 private. I could connect to the database and then all of a sudden it stopped and when i wanted to refresh the pivot table i got the following error: "an error was encountered in the transport layer", then i click OK and
    i get a prompt to logon to the database which I do and get this message: "Errors in the OLE DB database. The Integrated Securty property cannot be set if a username and password is supplied". Again, i could connect without any problem and since few
    days it stopped.
    thank you in advance for any help,
    Arma

    If the database you mentioned is a Cube, please check the post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b2861abd-0060-4efb-970b-bf455731f5a9/an-error-was-encountered-in-the-transport-layer?forum=sqlanalysisservices
    Best Regards,
    Wind

  • "Please connect to one database and try again."

    "Please connect to one database and try again."
    That is the error message that comes up when I launch Apple Mail. I have not made any changes to my Apple Mail in 8 months. Not one.
    Has anyone seen this error message before? I'm not even sure what is failing as all of my mail (at least in a quick check) seems to be working (a few IMAP and a few POP accounts).
    Thanks for any info regarding this... strange....

    Well, all of a sudden it's gone now... probably some strange IMAP occurance, but who knows.
    Thanks.

  • I want to know the ways of connecting 9iAS to Database and clients to database through 9iAS as middleware.

    My question was about the necessity of implementing OID or any other version of LDAP.
    We have a new 9iAS and 8.1.7 database implementation and i have a doubt about their networking architecture.
    I want to know the ways of connecting 9iAS to Database and clients to database through 9iAS as middleware. We are debating if OID is compulsory or if we can go ahead with this implementation with out OID.
    Can you please help me and provide me couple of implementation designs(i.e connecting clients to database through 9iAS). It would be great if any one can provide me the implementation's with and with out OID.
    -Thanks

    Hi ,
    For all delta and full DTP loads you can get  information in table  RSICCONT .Check table  RSMONICDP  this will give you detail information .Here you will get all the information with timestamp and request id .
    Hope these tables will serve your purpose .
    Regards,
    Jaya

  • Problem in connecting to Access Database.

    Hi,
         I am new to this Java/JSP Concepts. I am using IBM Websphere Studio(Application Developer 5.1.2). I am facing a problem to connect to the Access database. I have written a java file to connect to the Access Database. When i compile my java code and run it. It was working fine and i am able to insert into the Access database.The java file is working fine without errors. But when i create an object in the jsp and called the methods through that object i am getting "java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver", "java.sql.SQLException: No suitable driver", "java.lang.NullPointerExceptionexceptions" exceptions.
    Please help me in solving the problem.
         My Java code is :
    package myPack;
    import javax.sql.*;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class DB_Connect {
         private Connection con;
         private Driver driver;
         //private String connectStr ="jdbc:odbc:MS Access Database;DBQ=C:\\Movie_Club.mdb";
         public void initialiseDrivers(){
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   System.out.println("driver found");
              catch (ClassNotFoundException e){
                   e.printStackTrace();
                   System.out.println("driver not found");
              try{
                   con = DriverManager.getConnection("jdbc:odbc:MS Access Database;DBQ=C:\\Movie_Club.mdb","","");
                   System.out.println("database found");
    //"jdbc:odbc:MS Access Database;DBQ=C:\\156761\\Movie_Club.mdb");
    //"jdbc:odbc:MC","",""); I have tried with both of them they are working.
              catch (SQLException ce){
                   ce.printStackTrace();
                   System.out.println("database not found");
         public int insertDB(String empno, String empname, String action, String adventure, String animation, String comedy, String horror, String romantic, String thriller, String sci_fic) throws SQLException {
              int i=0;
              Statement stmt = null;
              try {
                   if(!con.equals(null))
              stmt = con.createStatement();
              i = stmt.executeUpdate("insert into Movie_Flavour values("+empno+","+empname+","+action+","+adventure+","+animation+","+comedy+","+horror+","+romantic+","+thriller+","+sci_fic+")");
              stmt.close();
              con.close();
                   else
                   System.out.println("con not made");
              catch (java.sql.SQLException exception) {
              exception.printStackTrace();
              return i;
         public ResultSet getDetails(){
              Statement stmt = null;
              ResultSet rs = null;
              try{
                   stmt = con.createStatement();
                   rs = stmt.executeQuery("select * from Movie_Flavour where empno = 1");
              catch(Exception e){
                   e.printStackTrace();
              return rs;
         public static void main(String[] args) {
              int i=0;
              DB_Connect db = new DB_Connect();
              try{
                   db.initialiseDrivers();
                   i = db.insertDB("1","2","3","4","5","6","7","8","9","10");
                   System.out.println(i);
              catch(Exception e){
                   e.printStackTrace();
    and my JSP code is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
    <%@ page import="myPack.DB_Connect" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.sql.*" %>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <TITLE>User_Input</TITLE>
    </HEAD>
    <BODY>
    <%
         DB_Connect db = new DB_Connect();
         try
              db.initialiseDrivers();
              db.insertDB("1","1","1","1","1","1","1","1","1","1");
         catch(Exception e)
              e.printStackTrace();
    %>
    </BODY>
    </HTML>
    Websphere shows the following messages in the console.
    [3/1/06 16:35:27:986 IST] 57687dab WebGroup I SRVE0180I: [RTSC_MCWeb] [RTSC_MCWeb] [Servlet.LOG]: /User_Input.jsp: init
    [3/1/06 16:35:28:002 IST] 57687dab SystemErr R java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
    [3/1/06 16:35:28:002 IST] 57687dab SystemErr R      at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:390)
    [3/1/06 16:35:28:002 IST] 57687dab SystemErr R      at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:300)
    [3/1/06 16:35:28:002 IST] 57687dab SystemErr R      at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    [3/1/06 16:35:28:002 IST] 57687dab SystemErr R      at java.lang.Class.forName1(Native Method)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at java.lang.Class.forName(Class.java(Compiled Code))
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at myPack.DB_Connect.initialiseDrivers(DB_Connect.java:28)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at org.apache.jsp._User_5F_Input._jspService(_User_5F_Input.java:126)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [3/1/06 16:35:28:049 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    [3/1/06 16:35:28:064 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)[3/1/06 16:35:28:111 IST] 57687dab SystemOut O driver not found
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R java.sql.SQLException: No suitable driver
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at java.sql.DriverManager.getConnection(DriverManager.java:558)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at java.sql.DriverManager.getConnection(DriverManager.java:188)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at myPack.DB_Connect.initialiseDrivers(DB_Connect.java:38)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at org.apache.jsp._User_5F_Input._jspService(_User_5F_Input.java:126)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    [3/1/06 16:35:28:111 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [3/1/06 16:35:28:127 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    [3/1/06 16:35:28:127 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    [3/1/06 16:35:28:127 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    [3/1/06 16:35:28:127 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    [3/1/06 16:35:28:127 IST] 57687dab SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    [3/1/06 16:35:28:127 IST] 57687dab SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    [3/1/06 16:35:28:127 IST] 57687dab SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    [3/1/06 16:35:28:127 IST] 57687dab SystemOut O database not found
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R java.lang.NullPointerException
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at myPack.DB_Connect.insertDB(DB_Connect.java:54)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at org.apache.jsp._User_5F_Input._jspService(_User_5F_Input.java:127)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    [3/1/06 16:35:28:143 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    [3/1/06 16:35:28:158 IST] 57687dab SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

    Check if the OdbcDriver is in the classpath

  • Connectivity between Oracle database and client...

    Hi guys,
    I was asked to make a connection between oracle client and database via internet so that our clients can access the database from different parts of the country, and the data that is transmitted in the internet does not require security consideration. And I have successfully implemented this.
    But later onwards they asked me to structure it in such a way so that clients must be able to select, insert, update and delete data offline, in case there is online connectivity problem.
    So my question is, are there any possibilities in oracle to temporarily store data that are available in the oracle database to the client side and then later onwards transfer those datas once the clients are available online. Or are there any other alternative ways...
    Additional Information - Client access the database through an application created by VB.
    Please do help me on this project.
    Thanks in advance for your help.
    Asif.

    user11000521 wrote:
    Hi guys,
    I was asked to make a connection between oracle client and database via internet so that our clients can access the database from different parts of the country, and the data that is transmitted in the internet does not require security consideration. And I have successfully implemented this.
    But later onwards they asked me to structure it in such a way so that clients must be able to select, insert, update and delete data offline, in case there is online connectivity problem.
    So my question is, are there any possibilities in oracle to temporarily store data that are available in the oracle database to the client side and then later onwards transfer those datas once the clients are available online. Or are there any other alternative ways...
    Additional Information - Client access the database through an application created by VB.
    Please do help me on this project.
    Thanks in advance for your help.
    Asif.You probably should do a cost/risk analysis. Where you are headed might be able to be done (but it will require that the "clients" also have their own copy of the database) but it won't be easy and it certainly won't be cheap, either in initial implementation or in on-going maintenance. The alternative is to take a hard look at your network connections and see if it wouldn't be cheaper/easier to be able to ensure that it is reliable. Remember "the internet" won't break, it is highly redundant. If you have connectivity issues, they will almost certainly be in your own equipment and configurations, so your (your organization) will have the ability to address and fix any issues there.

  • I was facing problem while connecting to oracle database.Can some one help me soon!!!!!

    Hi all,
    I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
    Thanks in advance,
    pavankumar.

    Well, the obviously solution is to use separate Apple ID's for iCloud.

  • Itext connect to the database and put values in a table

    Hi, I have a problem because I can't find any tutorial that would connect to the database using the itext servlet and then update the table. I have found a source code that is transferring the database items on the list package of itext. I need an example that is dynamically creating a table. Can anyone please help me with these problem. I need it to for my reports or could anyone suggest an easy to use library rather than itext. THANKS

    tr3k wrote:
    Guys, need your help...I just want to populate a resultSet on an itext table.I don't know what it means to "populate a ResultSet on an iText table". I guess the tool you are using to translate your question to English isn't very good.
    Does it mean you have an iText table (whatever that is) and you want to create a ResultSet that allows you to extract data from it? Or do you really have a table in your database, and you want to use a ResultSet based on that table to create something in iText? Or what?

  • Connection to the database and session

    Friends I am developing a JSP based application ,and I am storing Connection (to the database) info in a session variable in my main menu , and then I retrieve the connection session in all the pages that I navigate to.
    But a friend of mine told me it is not a good programming practice.He adviced me to use the connection pooling to make effecient use of the connection.
    So using session for storing connection to the database is a bad idea ?
    I thought it is bad idea to get connected to the database everytime a jsp is thrown ...hence I was using session variable.
    Please give ur thought about this.
    Thanks.

    Well.
    You are using a kind of connection pooling already, since you make a connection and reuse it along every jsp page in a session but reusability is at the cut&paste level here.
    And what would you do if you needed to share a connection between sessions (scope:application)
    Or how would you resolve the need to connect to 2 databases in one JSP page ?? Duplicate the code from the "main menu" ?
    If you have let's say 5 applications written as you described and the connection data (ip address, SID, host) changes as someone moves the database to another machine (for example :-))) you will have to manually correct all 5 applications. So it's not much of flexibility in this kind of code.
    Connection pooling as I understood it (I might be wrong :-))) is placing the code in a bean or servlet and the parameters in a txt (or better xml) file so when something changes you don't rewrite applications, just rewrite one txt (xml) file and you are done.
    If you use a connection pool as a bean you have the bean scopes you can choose from and so on.....
    Visit
    http://www.codestudio.com/index.shtml
    for an example of a very well written connection pool. Maybe there you will find other issues to help you decide.
    Hope this helps!
    Bye

  • Unix Script to connect to Portal Database and move the files to XI Server

    Hi all,
    we have a requirement where the source BW system is placing files in Content Management in the link http://xxx:50100/irj/go/km/docs/documents/Public%20Documents/HFM.
    XI needs to read the files from the above location.Since the files are stored in Portal database,we cant do FTP to this location.
    So we have been asked to write a script which connect to this location and moves the files to XI directory.
    Can someone plz help me with this script?

    The concern has been discussed earlier at
    here and should be helpful to check the database size and free available space in exchange server.
    This blog has also good explained about "how to count mailbox per database in exchange 2010". Please check this :
    http://blog.powershell.no/2010/11/21/retrieve-number-of-mailboxes-per-database-in-exchange-server-2010/

  • Urgent: Problems with connecting to a database

    I have problems with getting a connection to both Oracle and Access.
    For Access I added the .jar files in my classpath.
    For Oracle I don't know which files I should add to the classpath.
    Here's the code:
    To connect with Access:
    public class AccessDatabase extends JFrame {
         private Connection conn;
         private Statement stmt;
         public AccessDatabase() throws SQLException,IOException{          
         DriverManager.registerDriver(new easysoft.sql.jobDriver());
         System.out.println("Connecting...");
    conn= DriverManager.getConnection ("jdbc:odbc:easysoft:db1");
         System.out.println("Connected");          
              stmt=conn.createStatement();
         ResultSet r=stmt.executeQuery("select name,adress from Tabel1");
         while(r.next()){
              String a=r.getString("name");
              String b=r.getString("adress");
              System.out.println(a+""+b);
    and for Oracle:
    public class AccessDatabase extends JFrame {
    private Connection conn;
    private Statement stmt;
    public AccessDatabase() throws SQLException,IOException{          
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    System.out.println("Connecting...");
    conn= DriverManager.getConnection ("jdbc:odbc:easysoft:db1");
    System.out.println("Connected");          
    stmt=conn.createStatement();
    ResultSet r=stmt.executeQuery("select name,adress from Tabel1");
    while(r.next()){
              String a=r.getString("name");
              String b=r.getString("adress");
              System.out.println(a+""+b);
         }}}     

    For getting connection from oracle you need to do 2 things.
    1-- As said earlier put classes12.zip in classpath
    2. For getting connection use as below ---
    instead of --conn= DriverManager.getConnection ("jdbc:odbc:easysoft:db1");
    Use thin driver ---
    conn = DriverManager.getConnection (jdbc:oracle:thin:@servername:portno , UserName,Password);
    replace servername UserName,Password in code you will get the connection.
    Thanks
    Rakesh

  • Connections to target databases and directories

    Hi All,
    I'm creating a few custom provisioning connectors to databases and directories using the GTC framework -- http://download.oracle.com/docs/cd/E10391_01/doc.910/e10360/custom_prov.htm#Toc153968045.
    I'm using the initialize() method in the Transport Provider to do a few things including establishing a connection to the target system. The sendData() is used to actually update the target.
    Unfortunately, every time a task in the process definition is called, a new instance of the Transport Provider is created, which means the initialize() method will be called. This becomes an issue when you have a huge number of users being updated in OIM because for each user at least one new connection will be created and destroyed and creating new connections is generally an expensive operation.
    So I'm wondering if there's any way to keep a persistent class within OIM that would hold the connection to the target system so it wouldn't have to be recreated with every change.
    Thanks

    If you do not perform the full list of tasks for every action, then you will need to bulk load the users. For OIM, every instance of a task runs independent of other tasks. So if you have 500 new users being onboarded, you will get 500 instances of the Create User. You cannot change this.
    If you want to customize the connector, you could possibly create a JDBC connection pool to be used instead but then you are on your own for the custom coding and everything.
    -Kevin

  • How to select from drop-down menu connected to SQL database and then autofill?

    Hello,
    I am in the process of creating a series of forms and I need some help if working out how to do the following.
    I have already set up a data connection to an SQL database, and I have three fields connected: Job Number, Job Name and Customer Name.
    What I want to do is have it so that the Job Number is a dropdown box, so they can select the number, and then the other two fields, Job Name and Customer Name, are autofilled to the information corresponding to the Job Number.
    Is anyone able to help me do this please??
    Thank you!!

    The 101 of database connections from LiveCycle Designer can be found in Stefan Camerons blog.
    This is the right place to start.
    http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/
    http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    http://forms.stefcameron.com/2006/10/12/displaying-all-records-from-an-odbc-data-connectio n/

  • Driver problem to connect the oracle database

    sir
    i want to use oracle 8.0 database at the backend in my project
    i want that it is platform indpendent but
    so i access that it is achive when i am not use the odbc driver
    In xp the oracle not connect with my application
    and in win98 some time it is connected to the application by
    the odbc driver.
    can it is possible that i use oracle database with out use of ODBC bridge in all Microsoft opertaing system types that is win 98,2000,XP
    and NT
    if yes how please help me and where i found the driver for oracle
    with no price.
    also how can i made the connection with my application.
    thanks in advance

    First:
    post this in the approriate forum. This is for Swing questions, not for database driver questions. You have more luck in the JDBC forum, but still this isn't really a Java/JDBC question.
    Second:
    try to use the search before posting a question. Questions regarding the ODBC bridge are posted about 5 times a day (in the JDBC forum)!
    Third:
    to answer your question: download the Type 4 JDBC driver from otn.oracle.com. You can use it with every JDK on every platform.

  • Problems with connection Creative zen M and DVD-CD pla

    Hi,
    I have problems whem i connect my zen to the DVD player. I've connected zen with a cable going from the headphones to the audio line in (red and white) at the back of the DVD system. I get sound but the problem is that my zen automaticly switch to the FM radio mode, when it should be playing from the music libary. This happens by 70% of the numbers. How can I deal with this problem?
    Problem 2 is that I hear a strong noise when I connect my zen to the DVD player. It's al low sound which comes back in all the 5 boxes en sounds like a bee...
    Problem 3 is that I can't get the full volume on the DVD system. Even when zen is max on 25 i've to put the DVD system also max before a normal sound is coming to me...
    Can anybody please help me? Thanks!

    Hi there,
    . The reason the ZVM is switching to fm radio is because the headphone jack also supports a wired remote that controls some of the ZVM functions there will be some sort of back feed from your DVD head unit to the ZVM causing this to happen.
    2. The headphone jack does carry a bit of noise when used with line in applications and compared to the line out function of the ZVM is muffled and lacks power(this also could be noise in your DVD unit).
    3. Same as above(2) the A/V out function has a set volume and is louder and much clearer than the headphone out jack.( The line out is the A/V out function of the ZVM found in the supplied adaptor that plugs into the bottom of the ZVM)
    To overcome this problem simply use the line out function of the ZVM either through the dongle and an A/V cable or get an after market cable to suit and that should solve your problems with this type application.
    Let us know how you go with it
    Heres the bits
    http://us.creative.com/products/prod...7&product=4484
    Or you can search for a cable that plugs straight into the bottom of the ZVM and has rca's on the other end, you should be able to find then via a search here or through epizenter.net in one of the threads
    Message Edited by AussieBoy on 08-0-2006 09:50 PM

Maybe you are looking for

  • Typing text in multiple text boxes simultaneously

    Is is possible or is there a way or a plugin that will allow me to type a number in one text box and it will appear on multiple other text boxes in the same document. My scenario is I am running 15-up business card type layouts and I am trying a add

  • Major/Minor Line Relationships in Oracle Service Contracts&Install Base.

    Hi, We have come across a scenario where, based on some business validations, Coverage of a Major Line needs to be TERMINATED. So, In that case if the Major Line has child lines(Minor) within, then do we need to 'EXPIRE' the 'COMPONENT-OFF' relations

  • How can we migrate bill presentment templates from DEV to PROD?

    Hi, E-business suite 11.5.10.2 Once we have designed a bill presentment template in the development environment, how can we migrate it in other environments? (TEST, PROD). Thanks.

  • Copying the 'Configurator' Account

    Is it possible to 'copy' the configurator account to another new account within IDM so it has exactly the same access rights etc. similar to the way you can right click and copy an account in Active Directory?

  • Picture not loaded in splashscreen

    Hi the problem of splash not displaying only arises whem called from anther class. When run run from the main method no problem arises. This is what i don' understand. U have an answer?