Column not found problem

Hello All, I created a query, I've checked all my columns in the database multiple times but I keep getting this error.
can someone help me with this please
This is my Query and statement around it.
<% ResultSet rsMaxFaqs = dbTeam.execSQL("SELECT max(faqID), Question, Answer FROM tblFAQS GROUP BY Question, Answer");
int i = rsMaxFaqs.getInt("faqID");
out.println("<td><a href=\"editfaqs.jsp?faqID=" + i + "\"><b>Edit</b></a></td>");
out.println("<td><a href=\"deletefaqs.jsp?faqID=" + i + "\"><b>Delete</b></a></td>");
out.println("<td>" + i + "</td>");
out.println("<td>"+ rsMaxFaqs.getString("Question")+ "</td>");
out.println("<td>" + rsMaxFaqs.getString("Answer") + "</td></tr>");
%>

try
<% ResultSet rsMaxFaqs = dbTeam.execSQL("SELECT max(faqID) faqID, Question, Answer FROM tblFAQS GROUP BY Question, Answer");
Hello All, I created a query, I've checked all my
columns in the database multiple times but I keep
getting this error.
can someone help me with this please
This is my Query and statement around it.
<% ResultSet rsMaxFaqs = dbTeam.execSQL("SELECT
max(faqID), Question, Answer FROM tblFAQS GROUP BY
Question, Answer");
int i = rsMaxFaqs.getInt("faqID");
out.println("<td><a href=\"editfaqs.jsp?faqID=" + i +
"\"><b>Edit</b></a></td>");
out.println("<td><a href=\"deletefaqs.jsp?faqID=" + i
+ "\"><b>Delete</b></a></td>");
out.println("<td>" + i + "</td>");
out.println("<td>"+ rsMaxFaqs.getString("Question")+
"</td>");
out.println("<td>" + rsMaxFaqs.getString("Answer") +
"</td></tr>");
%>

Similar Messages

  • Column Not found error while trying to access database through JSP+Java Bea

    I am trying to access MS Access 2003 db through JSP using Tomcat 5.0.28.The code for accessing the database is incorporated in the bean.The JSP only calls the particular method of the bean .
    Code for Java Bean:
    package ActiveViewer;
    import java.sql.*;
    import java.util.*;
    public class CompanyBean
    Connection con;
    ResultSet rs=null;
    Statement st;
    public CompanyBean(){}
    public void connect()
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Here4");
    con=DriverManager.getConnection("jdbc:odbc:activeviewer","","");
    System.out.println("Here1");
    catch (ClassNotFoundException e)
    System.out.println("Could not locate driver.");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
    e.printStackTrace();
    catch (Exception e)
    System.out.println("An unknown Exception has occured :: "+e);
    e.printStackTrace();
    public void disconnect()
    try
    if (con!=null)
    con.close();
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
    e.printStackTrace();
    public ResultSet select(String username)
    if(con!=null)
    try
    st=con.createStatement();
    rs=st.executeQuery("select * from company where username='" + username + "'");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
    e.printStackTrace();
    catch (Exception e)
    System.out.println("An Exception has occured while retrieving :: "+e);
    e.printStackTrace();
    else
    System.out.println("Connection to database was lost.");
    return rs;
    The code for JSP that uses the above bean is:
    <%@ page language="java" import="java.sql.*,ActiveViewer.* " contentType="text/html"%>
    <jsp:useBean id="conn" scope="session" class="ActiveViewer.CompanyBean" />
    <html>
    <body>
    <% String username=request.getParameter("username");
    String password=request.getParameter("password");
    System.out.println("username:"+username);
    System.out.println("password:"+password);
    conn.connect();
    ResultSet rs=conn.select(username);
    System.out.println("Below select ");
    while (rs.next())
    String dbusername=rs.getString("username");
    String dbpassword=rs.getString("password");
    if(dbusername.equals(username) && dbpassword.equals (password))
    { %> out.println("OK");
    <% }
    else { %>Invalid Username and / or Password.
    <br>Clickhere to go back to Login Page.
    <% }
    } %>
    </body>
    </html>
    I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Column not found
    though the database is not int he same folder as the jsp, the DSN is set correctly to pint to the db location.The jsp does print in stdout file:
    Here4 (from connect method above)
    Here 1 (from connect method above)
    Below Select (from jsp)
    This means that the jsp does connect to db but it gives the above error.Also the field name also matches that in the database and data is present in the db too.
    All other things like creating package for bean in WEB-INF/classes,incorporating the packakage are done.
    Can someone please help me with their precious advice?

    Hi, I too have a problem with an SQL exception, the message is Column not found.
    I'm using the sun jdbc odbc driver with access.
    the first few lines of the stack trace are
    sun.jdbc.odbc.JdbcOdbcResultSet.findColumn(JdbcOdbcResultSet.java:1852)
    sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:603)
    net.homeip.sdaniels.MemberBean.ejbFindByUnamePwd(MemberBean.java:127)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    I am of course sure that the column does infact exist. I can insert into the column no problems. the sql looks like this:
    SELECT * FROM Members WHERE uName ='Stewart' AND encPwd='�F2C�3����h�1Y�'
    Can any one tell me if there is a common cause to this problem?
    Thanks

  • Strange SQLException : column not found

    Hello All,
    I have seen many users facing the error : java.sql.SQLException : column not found. I have the same problem, although my case doesnot match with theirs.
    I have a Base DAO class which establishes the connection with database in MySQL.I have no problem in establishing the connection. I have a extended DAO class for accessing the table 'product' in the database. I have a method in the extended class that retrieves the products under a category.
    public ResultSet getProducts(String categoryName) {
              Connection con = super.getConnection();
              String query = "SELECT * FROM product WHERE sectionId = \'" + categoryName + "\'";
              System.out.println("Query = " + query);
              try {
                   Statement stmt = con.createStatement();
                   ResultSet rs = stmt.executeQuery(query);               
                   return rs;
              } catch (Exception e) {
                   System.out.println("Unable to retrieve products for category " + categoryName);
                   e.printStackTrace();
              return null;
         }There is a helper method that displays the contents of the ResultSet. I have a main method that calls the above function and everything works fine.
    Now coming to strange part !!! The same function displays an error "java.sql.SQLException : Column not found" when called using Struts Action Object.
    The Struts Action object calls a Service method (ProductService.java) which then calls the above extended DAO class to retrieve sub categories and products of a category. I am using a similar select query for retrieving the sub categories and it works fine.
    I am pretty sure that I am using the correct field name. Any help would be a help for me....
    Thanks,
    Praveen.

    Couldn't you rephrase your SQL query to
    SELECT column1, column2 ..... columnN FROM product WHERE sectionId = ?(i.e., enumerate the columns instead of relying on the "*" syntax)
    use a PreparedStatement
    use stmt.setString(1, categoryName)
    and get the columns by number (starting from column 1)?
    Sometimes the error "column not found" is really the case of the column being not found, because the version of the table that your DBA has installed in the DB has not the column that you expect to find in the table...

  • Column not found error while populatin a oracle table with ODI USer

    Hi,
    I am trying to populate a column in a oracle table with the ODI USER name using the function getUser("USER_NAME") in the Mapping column of the Interface, But the interface throwhing an error *Column not found : Supervisor in Statement [Select......]*. but it's working fine with getUser("I_USER') the column is populating the user identifier.
    can any one help me out why user is not populating.
    Thanks

    Enclose the call to the getUser api inside single quotes
    '<%=getUser("USER_NAME")%>'ID being a number can be used directly but USER_NAME returns a string that needs to be quoted

  • Column Not found error while trying to access databse through JSP+Java Bean

    I am trying to acees MS Access 2003 db through JSP using Tomcat 5.0.28.The code for accessing the databse is incorporated in the bean.The jsp only calls the particular method of the bean .
    Code for Java Bean:
    package ActiveViewer;
    import java.sql.*;
    import java.util.*;
    public class CompanyBean
    Connection con;
    ResultSet rs=null;
    Statement st;
         public CompanyBean(){}
         public void connect()
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Here4");
    con=DriverManager.getConnection("jdbc:odbc:activeviewer","","");
         System.out.println("Here1");
         catch (ClassNotFoundException e)
         System.out.println("Could not locate driver.");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
         catch (Exception e)
    System.out.println("An unknown Exception has occured :: "+e);
         e.printStackTrace();
    public void disconnect()
         try
         if (con!=null)
    con.close();
         catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
    public ResultSet select(String username)
    if(con!=null)
         try
    st=con.createStatement();
         rs=st.executeQuery("select * from company where username='" + username + "'");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
    catch (Exception e)
    System.out.println("An Exception has occured while retrieving :: "+e);
    e.printStackTrace();
    else
    System.out.println("Connection to database was lost.");
    return rs;
    The code for JSP that uses the above bean is:
    <%@ page language="java" import="java.sql.*,ActiveViewer.* " contentType="text/html"%>
    <jsp:useBean id="conn" scope="session" class="ActiveViewer.CompanyBean" />
    <html>
    <body>
    <% String username=request.getParameter("username");
    String password=request.getParameter("password");
    System.out.println("username:"+username);
    System.out.println("password:"+password);
    conn.connect();
    ResultSet rs=conn.select(username);
    System.out.println("Below select ");
    while (rs.next())
    String dbusername=rs.getString("username");
         String dbpassword=rs.getString("password");
         if(dbusername.equals(username) && dbpassword.equals (password))
    { %> out.println("OK");
              <% }
    else { %>Invalid Username and / or Password.
    <br>Clickhere to go back to Login Page.
    <% }
    } %>
    </body>
    </html>
    I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Column not found
    though the database is not int he same folder as the jsp, the DSN is set correctly to pint to the db location.The jsp does print in stdout file:
    Here4 (from connect method above)
    Here 1 (from connect method above)
    Below Select (from jsp)
    This means that the jsp does connect to db but it gives the above error.Also the field name also matches that in the database and data is present in the db too.
    All other things like creating package for bean,incorporating the packakage are done.
    Can someone please help me with their precious advice?

    U're getting this error because there is no field called 'password' in ur database, the field in ur database is named 'cpassword' and not 'password'. So change the statement rs.getString("password"); to rs.getString("cpassword");

  • Work around for server not found problems on FF36

    I have found a work around for all the people having server not found problems with FF36.
    If you manually set your network adapter DNS to an external DNS server (as opposed to your local ISP) then the problem goes away. I set mine to use the two google DNS servers:
    Preferred: 8.8.8.8
    Alternate: 8.8.4.4
    Not a clue why this works but it is 100% successful on my desktop PC, whereas before I could hardly connect to a webpage with FF36 without multiple page refreshes and much frustration, even though FF35 was fine and rolling back to FF35 was also fine.
    Something has changed in FF36 and either the way it handles DNS or the way it works with some network adapters.
    It is nothing to do with add-ons, profiles or firewall software as I have tried all of these things and only the DNS change made a difference. I even copied over a full working profile and the program files directory for Mozilla from my portable which was having no problems and the problem still existed on the desktop, which is why I started looking at the network adapater since everything else between the working PC and the non working one was identical.
    Hopefully this will help the developers to pin down the real cause of the problem and fix it in the next release.

    Well done. Thanks for finding that.
    That is not only assigned but has an approved patch included in the scheduled Fx36.0.1 release so it should be fixed in few days, watch out for the upgrade.
    * Bug 1093983 - DNS resolver should not use 'ANY' to get cached records for TTL <sup>[https://bugzilla.mozilla.org/show_bug.cgi?id=1093983#c35 c#35]</sup>
    * https://wiki.mozilla.org/Firefox/Channels/Meetings/2015-03-03#Schedule_Update
    With the bug now fixed it would not really be appropriate to add further comment. I do now see another related bug assigned but not being fast tracked, so if all goes well that will probably land in Firefox 39.
    * Bug 1138242 - DNS: Request A and AAAA record types rather than ANY when obtaining TTL on Windows

  • External Table error: KUP-04043: table column not found in external source

    I am trying to get the syntaxc correct for an external table.
    I keep getting this error:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SITE
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    Data looks like: (some of one of many files, where the character field widths are variable)
    ZZ,ANYOLDDATA,77777,25002000,201103,12,555.555,11.222
    ZZ,ANYOLDDATA,77777,25002300,201103,34,602.162,8.777
    ZZ,ANYOLDDATA,77777,25002400,201103,12,319.127,9.666
    ZZ,OTHERDATA,77121,55069600,201103,34,25.544,1.332
    ZZ,OTHERDATAS,77122,55069600,201103,22, 1.011,0.293
    External table def I have:
    CREATE TABLE MY_INPUT (
    FIRST_CODE VARCHAR2(10),
    SECOND_CODE VARCHAR2(20),
    MY_NUMBER VARCHAR2(20),
    THIRD_CODE VARCHAR2(20),
    YEARMO VARCHAR2(6),
    N NUMBER,
    MEAN NUMBER,
    SD NUMBER
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY INPUT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    BADFILE INPUT_LOGDIR:'bad.bad'
    LOGFILE INPUT_LOGDIR:'log.log'
    DISCARDFILE INPUT_LOGDIR:'discards.log'
    fields terminated by ',' LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    ( THIRD_CODE,N,MEAN,SD) )
    LOCATION ( 'myfile.rpt')
    NOPARALLEL
    REJECT LIMIT UNLIMITED;
    I have the directories INPUT_DIR and INPUT_LOGDIR defined, and read/write access granted to the user who creates the table and tried to query from it.
    I have tried various combinations of VARCHAR2 lengths and NUMBER vs VARCHAR2 for some of the numeric fields.
    I am not getting any Bad, Log or Discard files.
    I can do a GET from the SQL prompt, and see the data:
    SQL> GET 'C:\temp\input_dir'myfile.rpt'
    and I see the data.
    Windows 7
    Oracle 11.2
    I am not positive of the newline record delimiter - these files are generated by an automated system. Probably generated on a UNIX machine.
    Any suggestions on what to try would be helpful.
    KUP-04043 error message says to check the syntax .. .I am running out of thigns to check.
    Thank you - Karen

    And the get ( I created the sanitized file, so we have a real working, failing, santiized example):
    SQL> get c:\Inputfiles\myfile.rpt
    1 ZZ,ANYOLDDATA,77777,25002000,201103,12,555.555,11.222
    2 ZZ,ANYOLDDATA,77777,25002300,201103,34,602.162,8.777
    3 ZZ,ANYOLDDATA,77777,25002400,201103,12,319.127,9.666
    4 ZZ,OTHERDATA,77121,55069600,201103,34,25.544,1.332
    5* ZZ,OTHERDATAS,77122,55069600,201103,22, 1.011,0.293
    So the full series is:
    CREATE DIRECTORY INPUT_DIR AS 'C:\InputFiles';
    -- grant READ and WRITE
    GRANT READ ON DIRECTORY INPUT_DIR TO ILQC;
    GRANT WRITE ON DIRECTORY INPUT_DIR TO ILQC;
    -- As SYS, create the bad/log/discard directory:
    CREATE DIRECTORY LOGDIR AS 'C:\InputFiles\Logs';
    -- grant READ and WRITE
    GRANT READ ON DIRECTORY LOGDIR TO ILQC;
    GRANT WRITE ON DIRECTORY LOGDIR TO ILQC;
    CREATE TABLE MY_INPUT (
    FIRST_CODE VARCHAR2(10),
    SECOND_CODE VARCHAR2(20),
    MY_NUMBER VARCHAR2(20),
    THIRD_CODE VARCHAR2(20),
    YEARMO VARCHAR2(6),
    N NUMBER,
    MEAN NUMBER,
    SD NUMBER
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY INPUT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    BADFILE INPUT_LOGDIR:'bad.bad'
    LOGFILE INPUT_LOGDIR:'log.log'
    DISCARDFILE INPUT_LOGDIR:'discards.log'
    fields terminated by ',' LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    ( THIRD_CODE,N,MEAN,SD) )
    LOCATION ( 'myfile.rpt')
    NOPARALLEL
    REJECT LIMIT UNLIMITED;
    SELECT * FROM my_input;
    and GET is as above.

  • [ADF JDEV11.1.1.4] Timezone region not found problem in JDEV

    HEllo,
    I just moved my project to JDEV11.1.1.4 from 11.1.1.3.
    All is fine except for database Navigator.
    In 11.1.1.3, I was able to connect to my Oracle Database from Database Navigator Tab. I just needed to set the Java options -Duser.timezone="+01:00" to my project to resolve the timesone region not found problem when running my app onto the embedded WLS.
    In 11.1.1.4, I can run mu project fine with same Java options but I cannot anymore connect to my DB using Database Navigator.
    I got the famous ORA-01882: timezone region not found error.
    I tried adding this line into ide.conf:
    AddVMOption -Duser.timezone="+01:00"
    but still not working.
    Any idea what I should do pls?
    thx
    Jack

    OK, I made a mistake into the line:
    Adding :
    AddVMOption -Duser.timezone="+01:00"
    in ide.conf works fine.
    I just forgot to close and reopen JDEV.

  • Column not found error in SelectQueryModel.executeSelect()

    Greetings,
    I'm posting this question to verify whether this is the intended JATO
    behavior or I am doing something wrong.
    I have a SelectQueryModel (e.g. Model1) based on a SQL query:
    select A, B from ...
    before executing the model I add a where criterion:
    addUserWhereCriterion(C,"=","123")
    the FIELD_SCHEMA in Model1 includes field descriptors for A, B, and C
    upon executeSelect(null) I get the exception "Column not found". I
    found out the positionResultSet() in
    com.iplanet.jato.model.sql.ResultSetModelBase fetches all the values
    from the ResultSet based on the field definitions in FIELD_SCHEMA. I
    don't have the column 'C' in the SQL SELECT clause above and thus got
    the exception. Removing 'C' from the FIELD_SCHEMA does not allow me
    to add a user where clause.
    Is there a proper way to define a SelectQueryModel where some fields
    are for WHERE clause specification only and are not included in the
    result set?
    Thanks
    --haim

    Varun,
    1:Have you imported new column in to universe?
    2:If Imported the new column into universe then refresh the table in the universe.
    3:After refresh implement all you business like joints,context,class etc .
    4:Perform integration check.
    5:Create a simple query and check results.
    6:Once the results are satisfactory
    7:Then export
    Thanks,
    Yuagndhar

  • Gcc: command not found problem

    Hi,
    i just full installed cygwin 1.5.5-1 'cause i need to comiple and build a dll so i need to use gcc but in response to this command:
    gcc helloworld.cpp
    i get:
    bash: gcc: command not found
    Is that a windows xp problem or do i have to somehow configure cygwin? I read all the manuals i found but couldn't help.
    Best regards
    Nereida

    Depending on the way you install cygwin, the start for setup.exe is different.
    I will explain the way starting from web:
    http://www.cygwin.com/setup.exe
    You have to choose
    1) Install from Internet
    2) your directory for cygwin like: "D:\Programme\cygwin"
    and the install for all or just for you
    3) choose a local package directory like "D:\Programme\cygwin"
    4) choose the settings to access the web like "Use IE5 Settings"
    5) choose the nearest you download server
    !!! and now the interesting Selection starts: !!!
    A tree of packages is listed you have to click at 6. line (+Devel) at the word Default
    +Devel # Default
    Default should changed to:
    +Devel #  Install
    ...this is already your developer-pack within gcc
    but further you have to go to Libs (line 12) and now click to the '+' -sign:
    + Libs # Default
    The lib tree should now opened.
    go up to the 5. last line at the 6. column "Package" you should read w32api: Win32 API header and library ...
    look back to column 3 "New" there stands Skip click on it [as long] that you see the version number (2.5-1) or any better
    It should help but it is not necessary to click on
    + Doc # Default (line 7)
    so that it changes to
    + Doc # Install.
    so now you can finish your installation!
    I hope it helps
    mike

  • How do I get past the drivers not found problem during Windows 7 install?

    I have a brand new (March 2012) MBP running Mac OS 10.7.3 (Lion) with a SuperDrive.  I'm trying to use Boot Disk Assistant to install Windows 7 with a valid Windows 7 DVD burned from an .iso.  I've partitioned the 750 GB HDD with 500 GB for Mac OS and 250 GB for Windows.  The system reboots and starts to install Windows 7.  Then it pops up an error:
    "A required CD/DVD drive device driver is missing.  If you have a driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
    Note: If the Windows installation media is in the CD/DVD drive, you can safely remove it for this step."
    Of course, I can't eject the Windows setup DVD because the eject button doesn't work so I can insert the Windows Support Software that I downloaded from Apple.  So, I copied the Windows Support Software to a USB drive.
    Once I get to this point, I can browse to the USB drive and I get the following file tree:
    Drivers
         Apple
              x64
         Asix
         Atheros
         ATI
         Broadcom
         Cirrus
         IDT SigmaTel
         Intel
              Chipset
                   All
                   ia64
                   Lang
                        Chip
                             (various languages)
                   WIN7
                   x64
         Marvel
         NVidia
              NVidiaChipset32
                   Ethernet
                        NAM
                   HDAudio
                   SMBUS
                   SMU
              NVidiaChipset64
                   Ethernet
                        NAM
                   HDAudio
                   SMBUS
                   SMU
              Win7_32
              Win7_64
         RealTek
    The only directory that the installer recognizes as having valid drivers is the Intel > Chipset > WIN7.  When I select all of the drivers listed, the installer acts like it's installing something but then it stops saying that new devices were not found.  I can't get past this point.  The Windows 7 installer will not continue.  If I select any of the other directories, I get the message "No device drivers were found.  Make sure that the installation media contains the correct drivers, and then click OK."
    Any thoughts?  Admittedly, this is the my first experience dealing with Mac OS and I'm completely out of my league.  However, this is a Windows installation issue and I'm getting hung up on device drivers.  Usually in the PC world, I can easily go to the manufacturer's website and just download the drivers I need directly.
    ...Mel    
    Sr. Systems Administrator - Windows, SharePoint

    valid Windows 7 DVD burned from an .iso.
    Usually burned ISO to DVD only works when burn speed is set to slowest.
    Otherwise there are a number of problems with the install failing to do proper install, sometimes not even booting to start the install. Trouble is from using Apple Disk Utility. Burned in Windows, the ISO will be fine. Using Disk Utility at slowest has become "try reburn again at reduced speed."
    You can use mouse on startup to eject DVDs but what you want is your drivers later after Windows is installed, and have them on USB flash or something.
    you don't need any drivers except in a few cases (MacBook Air that lacks DVD and uses USB-DVDs)
    Product support page is best place to start with every device and product.
    www.apple.com/support/bootcamp
    has manual pdf, faq, how to, support articles

  • Import javax.mail not found problem

    I have downloaded the most recent mail.jar and activation.jar files and have created a library w/in JDev called javamail and have added these jars to that library. I have also included this library in my ViewController Project. The problem I am having is that the following imports statements are not found by JDev:
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.Multipart;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    When I open up the mail.jar I can find all of these classes, so why are these imports not being recongnized?
    I have also tried import javax.mail.*; to include everthing and this does not work either.
    Does anyone have any suggestions on how to trouble shoot this issue?

    Try to add the J2EE library - which is predefined in JDeveloper- to your project's libraries.
    Worked for me.

  • Table or View Not Found Problem

    Hi all,
    I am facing a strange problem where-in I am calling a query from a normal SQl window which works but the same in Procedure gives me an error.
    User A...This runs this statement
    Select * from B.emp which gives results. The same statement when I compile in a procedure it gives an error saying Table or View not Found.
    User A has a select on B.Emp where B is the owner of table Emp.
    I am not able to get to the solution of the same. Is it apossibility of a synonym conflict? Can someone help in what ways this error can come?
    Thanks and Regards,
    Kapil Uppal

    Hi,
    >>Well the error is Table Or View Does not exist
    Interesting, what version of Oracle are you using ? As you can see below, the stored procedure does not recognized the privilege that have been granted through a role.
    LEGATTI@ORACLE10> create user user1 identified by user1;
    User created.
    LEGATTI@ORACLE10> create user user2 identified by user2;
    User created.
    LEGATTI@ORACLE10> grant connect,resource to user1,user2;
    Grant succeeded.
    LEGATTI@ORACLE10> create table user1.emp (id number);
    Table created.
    LEGATTI@ORACLE10> create role user1_role_tables;
    Role created.
    LEGATTI@ORACLE10> grant user1_role_tables to user2;
    Grant succeeded.
    LEGATTI@ORACLE10> grant select on user1.emp to user1_role_tables;
    Grant succeeded.
    LEGATTI@ORACLE10> connect user2/user2
    Connected.
    USER2@ORACLE10> select count(*) from user1.emp;
      COUNT(*)
             0
    USER2@ORACLE10> create or replace procedure my_test_procedure as
      2  n_id number;
      3  begin
      4  select count(*) into n_id from user1.emp;
      5  end;
      6  /
    Warning: Procedure created with compilation errors.
    USER2@ORACLE10> show errors
    Errors for PROCEDURE MY_TEST_PROCEDURE:
    LINE/COL ERROR
    4/1      PL/SQL: SQL Statement ignored
    4/38 PL/SQL: ORA-01031: insufficient privilegesCheers

  • Class not found problem in Tomcat Web app

    Hi,
    I created a Web Service using JWSDP. I want to invoke a Web service method from my servlet. It works fine on Win NT Workstation, but on Windows 2000 it gives class not found error because it fails to pick up the jars that come with the pack in common\lib directory. I copied the jars to all possible lib paths as below, but looks like there's something wrong with the class loader. This problem comes in all our win2k machines. Does anyone have any clue about this.
    /WEB-INF/lib/*.jar of your web application
    $CATALINA_HOME/common/endorsed/*.jar
    $CATALINA_HOME/common/lib/*.jar
    $CATALINA_HOME/shared/lib/*.jar
    Thanks in advance,
    Sriram.

    If it can't find servlet.jar in the Tomcat dir, you should do what I did. I copied servlet.jar to C:\j2sdk1.4.0_01\jre\lib\ext\servlet.jar
    Then I added that to my CLASSPATH, and it finally found servlet.jar (it never found it in the Tomcat folder where it was).

  • Page not found problem

    I hope someone can help me with this mystery.
    I added a first level page to my site and checked it in preview mode. Looks great. Everything works fine. But when I published it, the menu bar takes me to a page not found error.
    So I saved the site as html and uploaded that to my server. Still the same problem. Then I created a duplicate page with a different name and went through the whole process again but it is also not found.
    I don't think this is a hosting problem because all of my other changes are showing up instantly.
    I've never had this problem in Muse before. Can anyone tell me how to get the new page to show up online?

    Hi
    In Muse, Under site plan, go to page that shows this error, right click on thumbnail and see if "Export Page" option is checked or not. If not, check it, save and republish, this will resolve the problem.

Maybe you are looking for

  • Rebate: Differ "Scale Base Value" between "Statistics" and "Billing Doc"

    Dear SD Expert,             After I go with Transaction Code :"VOB3" (run report RV15B002), I found that "Scale Base Value" have different value between "Statistics" and "Billing Doc". And the correct value is "Billing Doc". However, the value which

  • Not all pictures transfered from pe10 to 11

    I have discovered not all pictures have transfered over from pe10 to 11. I have since added pictures to 11. Now what? Keyward tags for example hve question marks and no pictures associated with the keyword but everything is fine in pe 10. What happen

  • Question for InfoSet

    I very well know that InfoSet doesn't support conversion. However, would like to know if there is an alternative to it? Thanks

  • How to have sticky column headers in a large list?

    I have a list in sharepoint 2013.  It was created from a Microsoft Access database and so it displays like a spreasheat type list.  It is quite large and it would be nice to make the column headers "sticky" so that when you scroll down the page/list

  • ORA-01000 Error - NEED Help

    Hi, I had an Oracle Cursor error ORA-01000, here is the message: *** SESSION ID:(171.9) 2001.08.17.08.56.41.000 *** 2001.08.17.08.56.41.000 ksedmp: internal or fatal error ORA-01000: maximum open cursors exceeded ----- PL/SQL Call Stack ----- object