JDBC for Lotus 1-2-3?

Can I get data from Lotus 1-2-3 by JDBC?
Thank for the help!
Victor

If you can setup an ODBC DSN (through the Windows control panel) to point to your spreadsheet. You may be able to make this work. I have never access Lotus 123, but I have a test program to access Excel. Perhaps you can modify this and try and make it work with Lotus 123? Sorry, best I can do...
import java.sql.*;
import java.util.*;
import java.text.*;
class dbtestexcel {
    public static void main (String args []) throws SQLException {
        try {
            String url = "jdbc:odbc:jdbcexcel";
            System.out.println("Attempt url=" + url); // jdbc:odbc:&odbc;
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            Connection conn = DriverManager.getConnection(url, "userName", "password");
            String sql = "SELECT * FROM Sheet1";
            Statement statement = conn.createStatement();
            ResultSet rs = statement.executeQuery(sql);
            while(rs.next()) {
                System.out.println(rs.getInt(1));
                System.out.println(rs.getInt(2));               
                System.out.println(rs.getInt(3));               
                System.out.println(rs.getInt(4));               
                System.out.println(rs.getInt(5));               
            statement.close();
            conn.close();
        catch (Exception e) {
            System.out.println("Java Exception caught, error message="+e.getMessage());
}

Similar Messages

  • JDBC to Lotus Notes, only 255 bytes be read for each field. Any clue?

    Hi,
    I am programming with JDBC to Lotus Notes. I can extract data from .nsf files but for each field, only 255 bytes can be read, all the rest got truncated. I ran the ResultSetMetaData.DisplayColumnSize(), it returns 255.
    What is the problem? How can I extract larger strings (such as 700 bytes)? I tried bloc data type, it doesn't help.
    In the API docs, there is a RowSetMetaData that has a SetColumnSize() method, but I can not find an implemented package of it, also not sure it will work. Any suggestion will be deeply appreciated!
    Thanks!
    William

    You must declare the filed Rich Text, not Only Text, because the Method GetString only get 255... although your filed have more caracters...
    If you declare rich Text you must use tgetAsciiStream Method...
    suppose the filed 2 is Rich Text...
                 byte[] buffer = new byte[4096];
                 int size;
                 InputStream strin = rs.getAsciiStream(2);
                 if(strin == null){
                    System.out.println("notas es null\n");
                 else {
                    for(;;){
                        try {
                        size = strin.read(buffer);
                        if(size <= 0){
                           break;
                        System.out.print(new String(buffer,0,size));
                        } catch (java.io.IOException e){
                           e.printStackTrace();

  • Remote Data Source Settings for Lotus Notes CWS

    I have installed the Crawler Web Service for Lotus Notes on a box seperate from Machine hosting Portal Server. After that I did all the migrations successfully at the portal side as mentioned in installation guide. But while configuring Remote data Source ,in Authentication Page , i am not getting an edit box to specify the User ID file.Its just have edit box to specify password.
    Its taking the last user id that was used in the Notes Client on that machine, or more specifically the KeyFilename setting in the Notes.ini file
    How can i set the User ID File(to be considered).
    Moreover there is an error
    An error occurred while validating the remote XUI service. Verify the Web Service settings, including the SOAP Encoding Style.
    Can anybody provide pointers on configuring the Remote Data Source for Lotus Notes database
    Thanks in Advance

    Hi,
    I would check this with the Lotus Notes guys. If the mail is OK in SOST, then SAP is delivering the mail correctly. There is something wrong with the Lotus Notes client itself. I have seen this same problem and I have alos witnessed the HTML email to crash the whole Lotus client. (This lead to a situation that it was just easier to send the plain text emails.)
    Regards,
    Karri

  • Does j2me support jdbc for Palm Oracle Lite(8i/9i)

    I have a requirement to develop an application in Java for PALM OS with Oracle Lite 8i/9i connectivity. does j2me support jdbc for Palm Oracle Lite(8i/9i). Please help me to know what all java VM available in the market which have oracle connectivity(jdbc/odbc/whatever) for Oracle Lite for PALM.
    thanks
    dk

    Pleae some one reply, if j2me/kvm supports jdbc/odbc connectivity to oracle lite 9i/8i on palm
    thanks
    dk

  • JDBC for Postgresql(on Linux): java.lang.NullPointerExceptio--Please HELP!

    I'm trying to build a JSP web application with Apache Tomcat 4.0 on Linux, using PostgreSQL database.
    The test page for building a connection to the database is very simple.
    However, unfortunately, I always get the following error message from the web server.
    The code is also show below.
    I have another Tomcat server working on Window2000 with Oracle. So I change the JDBC driver to Oracle on that machine, and it works fine.
    I guessed I might have some problem with the Tomcat setting, but I'm not sure what I need to change.
    The directory of my web application is built under the webapps.
    And I've added JAVA_HOME, JAVA_HOME/lib/tool.jar, and JDBC for PostgreSQL to my CLASSPATH.
    Is there any other configuration that I missed?
    Please help if you see the problem.
    Thanks a lot in advance.
    Error message:
    type: Exception report
    message: Internal Server Error
    description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         at org.apache.jsp.index$jsp._jspService(index$jsp.java:231)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    Here's my code:
    <%@ page language="java" import="java.io.*, java.sql.*, java.util.*, java.lang.*" %>
    <HTML>
    <HEAD>
    <TITLE>TEST</TITLE>
    </HEAD>
    <BODY>
    <b> City </b><br>
    <%
         Class.forName("org.postgresql.Driver");
         String sqlurl = "jdbc:postgresql://localhost:5432/customer";
         String username = "guest";
         String passwd = username;
         Connection conn = DriverManager.getConnection(sqlurl, username, passwd);
         Statement st = conn.createStatement();
         String queryStr = "select CITY from WEATHER";
         ResultSet rs = st.executeQuery(queryStr);
         if (rs != null){
              while(rs.next()){
                   String strCity = rs.getString(1);
    %>
    -- <%=strCity %> --<br>
    <%
         st.close();
         conn.close();
    %>
    </BODY>
    </HTML>

    Error is not there in the code what you are showing. Can you edit index$jsp.java and see what is there in line 231?
    You may find it in tomcat_home\work\your_application directory.
    Sudha

  • JDBC for Oracle 8i (8.1.5)in JRE 1.2

    I'm trying to connect to Oracle 8i dbms (8.1.5) thru an applet.
    In JDeveloper 2.0 environment (with JDK1.2) it works fine, but
    at netscape 4.5 with JRE plug-in version 1.2, it throws an
    exception from oracle connection "No Suitable Drive".
    I've read the FAQ regarding the issue and tried to use the
    following JDBC versions, facing the same problem:
    JDBC for 8.0.5 (classes111.zip)
    JDBC for 8.1.5 (classes111.zip)
    JDBC for 8.1.6 (classes12.zip)
    JDBC for 8i - 8.1.5 (of Jdeveloper 1.1)
    BTW, All of the above JDBC versions connects fine under netscape
    to oracle 7.3, oracle 8.0.5.
    (I've tried JRE 1.2.2 as well but no success)
    PLEASE HELP !!!!
    null

    Have you tried setting the CLASSPATH and related JDBC environment
    variables so that your JDBC app recognizes the Driver that you're
    calling when registering? Have you done a version string check
    on that driver's class itself from the command line?
    (java jdbc.xxxx.Driver)
    HTH
    Avi (guest) wrote:
    : I'm trying to connect to Oracle 8i dbms (8.1.5) thru an applet.
    : In JDeveloper 2.0 environment (with JDK1.2) it works fine, but
    : at netscape 4.5 with JRE plug-in version 1.2, it throws an
    : exception from oracle connection "No Suitable Drive".
    : I've read the FAQ regarding the issue and tried to use the
    : following JDBC versions, facing the same problem:
    : JDBC for 8.0.5 (classes111.zip)
    : JDBC for 8.1.5 (classes111.zip)
    : JDBC for 8.1.6 (classes12.zip)
    : JDBC for 8i - 8.1.5 (of Jdeveloper 1.1)
    : BTW, All of the above JDBC versions connects fine under
    netscape
    : to oracle 7.3, oracle 8.0.5.
    : (I've tried JRE 1.2.2 as well but no success)
    : PLEASE HELP !!!!
    null

  • How to establish a trusted connection with JDBC for SQL SERVER 2000

    Hi!I am using jdk 1.4 and eclipse 3.3.
    I create a servlet in eclipse with in-build tomcat.
    When I run it ,it was working perfectlly has it was suppose to work.
    In this servlet I connect to a sql 2000 database using jdbc-odbc bridge driver.
    But when I tried to deploy the servlet on tomcat 5.5 manully on the same machine ,it gave me error saying
    [Microsoft][SQLServer JDBC Driver][SQLServer]Login failed
    for user 'sa'
    I searched around some post and found that ok ,I need trusted connection
    But I have 2 Questions
    1). Why was in eclipse I was able to connect to the SQL server and why not in the servlet which I deployed manully on tomcat.
    2). How do I create a trusted connection with JDBC for SQL server 2000
    Thnaks for your help in advance.

    Hi! duffymo ,QussayNajjar ,dvohra09 .
    Thank for help.
    The ideas are really great.
    I am trying generate reports for my company.
    When I used eclipse the code worked perfectly.
    below is code which I used
    out.println("Calling For Class Name<br>");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    out.println("Calling For Class Name success Now calling database <br>");
    1). jdbcConnection = DriverManager.getConnection("jdbc:odbc:SQLJasper");
    2). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb");
    3). jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=ServerName;Database=tempdb","UID=UserName","Password=Password");
    out.println("connecting to database success<br>");
    I had tried to connect the database using this three way.
    In 1st I tried using DSN name .
    Next 2 self explainer for expert like you.
    I used to 2nd variant to connect in eclipse and it worked fine.
    I not an expert in java ,I just doing some research on jasperReport.
    My best guest is that eclipse is using some library files of which I have no clue.
    Thank's for your help,I appretiate it.
    Once again thank a billion.
    Sorry for the messy righting.

  • Microsoft Transporter for Lotus Domino

    Hi,
    Is there any way that the Microsoft Transporter for Lotus Domino can migrate the Domino nsf files to a PST file?
    Although there is the Exchange and Sharepoint infrastructure in place, those servers are not directly available to myself and therefore unable to migrate directly to them. 
    Thanks

    No, not to my knowledge.
    We used Kernel for Lotus Notes to Outlook:
    http://www.nucleustechnologies.com/lotus-notes-to-outlook.html?gclid=CNXqrYaf1KQCFVM33godtVMyRA
    Regards
    Pano
    Pano Boschung, PageUp AG

  • JDBC for MS SQL Server 2000

    Hi all, i'm newbie here and i have some problems doing with Java for my Final Project, just for my graduation...
    Here's the problem ...
    First i install the JDK 1.5 and MS SQL Server 2000. And then i also install JDBC for MS SQL Server 2000 sp3. Than i'm doing some experiments with JDBC, but its result error that i couldnt understand how to fixed it...
    I'm asking is JDBC for MS SQL Server 2000 sp3 doesn't support j2ee 1.5.0 and where i can find native driver jdbc for MS SQL Server 2000.
    Please help me....

    Than i'm doing some experiments with JDBC, but
    its result error that i couldnt understand This is the most important part of your post yet you don't seem to recognize it as such.
    Tell us what the error is. Not what you think it is. Exactlly what it says. And please provide a relevent, formatted snippet of code.

  • ESSO-LM multiple accounts for Lotus Notes 7

    Hi,
    My customer want to use ESSO-LM 11g for Lotus Notes 7.
    The customer have some people who have multiple account in Lotus Notes 7.
    I checked the pre-defined application template for Lotus Notes in ESSO-LM,
    The application templates defined only password field.
    I think that the ESSO-LM require the username field for specify the account
    from multiple accounts.
    Is it possible to use Lotus Notes 7 with multiple account by ESSO-LM?
    Best Regard
    Masayuki

    Hi,
    Maybe you can find something from here:
    /discussions/board/message?board.id=pcsuite&message.id=5760&view=by_date_ascending&page=2

  • Use the jdbc for oracle

    Hello folks,
    I have this issue:
    i develop a java application using JBUILDER 9 under windows where the application use jdbc for connection to oracle,i add the jdbc package from the tools>configure jdk...... and so, under windows everything works fine.
    what i want is to run my program under unix, also when trying to compile the program under unix i got the error on the jdbc package, please can anyone help with how to import the jdbc package, where i must put it on unix under which folders, and how to import to my class, a small example will help a lot, and thank you...

    Just make sure your Oracle JDBC is on your class path!

  • Where can i find the Oracle JDBC for Oracle RDBMS 8.1.7 ? Thanks.

    Where can i find the Oracle JDBC for Oracle RDBMS 8.1.7 ? Thanks.

    http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html

  • Does OIM Connector for Lotus Notes support Domino certification authority?

    Lotus Notes allows an Organization to register servers and users without stamping each server ID and user ID if you have migrated the certifier to a Domino server-based certification authority (CA).
    A Customer has done such a migration to a server-based certification authority (CA), and therefore they have set up Notes and Internet certifiers to use the CA process.
    So, now this Customer does not require access to the certifier ID and ID password.
    Having enabled certifiers for the CA process, they can now assign the registration authority role to administrators, who can then register users and manage certificate requests without having to provide the certifier ID and password.
    My question is: is this compatible with the requirements of Oracle Identity Manager Connector for IBM Lotus Notes and Domino Release 9.0.4, that, among other parameters, requires to specify CertPath (Complete file specification of the certifier ID to be used when creating certifier ID files) and CertPwd (Password of the certifier ID file)?
    Regards,
    Angelo Carugati

    I quite new with OIM, but not at all... For sure, I need to configure a connector for Lotus Notes / Domino.
    The main points in my question are (USING A connector for Lotus Notes / Domino):
    - How can I create 1 user account (and related data), on different servers (IT Resources), with different "mail templates", when the data should be the same, and the user mail database, should only be a replica on the the 2nd server
    - Maybe, I need to configure 2 distincts IT Resources, and run both (through Provisioning Policies), when I need to provision a user, as described in my scenario (above), right?
    - In the 2nd server, I dont want the user to be created with a new mail database (neither new user data, as shortName, IDfile... ).
    I want that same data, and a replicated mail DB is generated on the 2nd server (webmail server)
    Is it possible, how can I configure this within OIM connector for Lotus Notes / Domino?

  • IDK for Lotus Notes/Domino

    A customer has asked us if we can build an IDK for Lotus Notes/Domino in Lotus Script.
    We've validated that it's technically possible and now it's time to figure out how to approach the problem from the business side, i.e. do we do it as a consulting project, a closed-source/for-profit product or as an open source product.
    I'm leaning toward open source, but first I want to see if anyone out there would benefit from a Lotus Notes/Domino IDK (aside from this one customer of ours).
    Thoughts?
    Chris Bucchere | bdg | [email protected] | http://www.thebdgway.com

    I quite new with OIM, but not at all... For sure, I need to configure a connector for Lotus Notes / Domino.
    The main points in my question are (USING A connector for Lotus Notes / Domino):
    - How can I create 1 user account (and related data), on different servers (IT Resources), with different "mail templates", when the data should be the same, and the user mail database, should only be a replica on the the 2nd server
    - Maybe, I need to configure 2 distincts IT Resources, and run both (through Provisioning Policies), when I need to provision a user, as described in my scenario (above), right?
    - In the 2nd server, I dont want the user to be created with a new mail database (neither new user data, as shortName, IDfile... ).
    I want that same data, and a replicated mail DB is generated on the 2nd server (webmail server)
    Is it possible, how can I configure this within OIM connector for Lotus Notes / Domino?

  • JCA adapter for lotus notes

    Hi,
    I am working for the integration of Lotus notes (R5) with weblogic server 7.0 using JCA.Can anyone please help me to know about the JCA Resource adapters that are available for Lotus Notes integration with Weblogic 7.0.
    with regards,
    Vinod

    Vinod,
    Have you got anything on this already? Please share.

Maybe you are looking for

  • Removing USB wakes computer from sleep.

    I just bought a new monitor to use with my PowerBook. The monitor is a Dell with built in USB plugs. The problem is that when i put the computer to sleep, the monitor(like almost all monitors) goes in to a "power-save" mode (where it doesnt display a

  • Gtkpod won't recognize ipod touch

    I've installed gtkpod and ifuse in the hopes that I can synch with my 2nd generation ipod touch running iOS 3.1.2. With ifuse I am able to mount the ipod successfully and have no trouble reading or writing to the mount. When I run gtkpod -m /mnt/ipod

  • Creating an Index HTML in Dreamweaver?

    I am new to Dreamweaver and was trying to up load my web to the server.  It seems most servers require an INDEX HTML as the opening p age.  However, dreamweaver does not create this.  I have afolder with the home page files in it.  How do I make thes

  • Sales order status profile

    Hi, I have made a sales order status profile & assigned it. It is working fine. However, i am having difficulty in assigning authorisations to the particular users. The Basis consultant has advised that it is a purely functional issue. How do i go ab

  • Subcontracting partial material

    Several of you contributed to an excellent post last year on "subcontracting" - threadID 427179.  We are trying to do a variation and having a challenge.  We want to send out a partially completed material to a local vendor to do some work on it (e.g