Help! JDBC Weirdness...

Hi
I'm using the Forte CE. I'm trying to make a connection to a MySQL dB (but the results are the same regardless of the dB & driver I use). Using the Runtime Explorer for databases I can connect to the dB server, database itself & query the tables & fields within it. However, when I place the same .jar file in the filesystem for access & call:
Class.forName("com.mysql.jdbc.Driver");
or
Class.forName("com.mysql.jdbc.Driver").newInstance;
I ALWAYS get a ClassNotFoundException. I've tried everything including unzipping the .jar file, including a reference in import & even trying to call the Driver class via 'new'.
Does anyone know the answer to this one, it's starting to get me down?

Are you using the MySQL Connector/J JDBC driver? I've seen this type of behavior before and it almost always comes down to my having a messed up classpath.
A couple of things to try.
* Put the mysql-connector-j-<version>-bin.jar in the $JAVA_HOME/jre/lib/ext directory.
* Explicitly add the directory to your $CLASSPATH environment variable.
* Put the directory on the invocation line using the -classpath option

Similar Messages

  • BI JDBC - How to configure Helper.jdbc.properties?

    Hi,
    I am little bit confused regarding where to configure
    Helpers.jdbc.properties.
    In a new project I have placed the Helpers.java and
    exported it as a par.And from the .PAR i extracted the 
    jar file and included it in my JDBC project.
    Pl. suggest how to configure the Helper.jdbc.properties.
    regards
    Mrutyunjay

    Friends,
    Would be thankful for any hints.
    Thanks & Regards
    Mrutyunjay

  • Help - JDBC MS SQL Server and Cursors Error

    Hello,
    Please help. I am using weblogic 8.1 and MS SQL Server 2000. Using JDBC. I have am calling a stored procedure which outputs a CURSOR. I haveing problems specifying the right java.sql.Type for this. I tried java.sql.Type.OTHER but it fails. The code is as follows
    Connection conn = null;
    CallableStatement stmt = null;
    String sqlProc = "{ call GetDocumentDetails(?,?) }";
    try {
    conn = this.getConnection();               
    stmt = conn.prepareCall(sqlProc);
    stmt.setInt(1, docId);
    stmt.registerOutParameter(2,Types.OTHER);
    stmt.execute();
    ResultSet rs = (ResultSet) stmt.getObject(2);
    while(rs.next()) {
    The exception that I get is
    java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    PLEASE HELP.
    Thanks in advance
    GM

    hi llturro,
    Thanks for answering my question. I have tried out what you suggested, but I still can't fix my problem. The following are the messages that display when I try to run my servlet. It seems that the DataSource, Connection and Statement are ok, however when it comes to the ResultSet the error message appear. What's wrong with my ResultSet coding ?
    ResultSet rs = stat.executeQuery("SELECT ISBN FROM BOOKSINFO WHERE ISBN='"+primarykey+"'");
    setEntityContext Method
    Find by primary key
    DataSource OK
    Connection OK
    Primary Key = 013-00-675721-9
    Statement OK
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    <<no stack trace available>>

  • Help JDBC Java Studio (

    Hi I want to connect to my sever is a Ms Sql Server 2000 , of course i Try to connect by Java Studio using the Sqldrive but i cant connect,
    Please Help me i am a beginner in Java

    Hi KSorokin I am new in Java, thank you for help me.
    my problem is in Sun Java Studio Enterprise 8 I write a little example to connect to MS SQL server and then run and it was executed succesfull but after, one message appear me, the message was
    java.lang.ClassNotFoundException: com.sun.sql.jdbc.sqlserver.SQLServerDriver
    Failed to load MS SQL Server driver
    I dont know why, i know that I have to say a Java where is the CLASSPATH system path but I dont Know where is the driver's Class and I dont Know how to install one.
    if you can help me , I would thank you very much.
    my english is not very well I am a mexican boy, the code is next :
    package select;
    import java.sql.*;
    * @author Administrador
    public class Select {
    /** Creates a new instance of Select */
    public Select() {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    String url = "jdbc:sun:sqlserver://ALFA:1433";
    Connection con = null;
    try {
    String driver = "com.sun.sql.jdbc.sqlserver.SQLServerDriver";
    Class.forName(driver).newInstance();
    catch (Exception e) {
    System.out.println(e.toString());
    System.out.println("Failed to load MS SQL Server driver");
    return;
    try {
    con = DriverManager.getConnection(url,"sa", "");
    Statement select = con.createStatement();
    ResultSet result = select.executeQuery("SELECT * FROM Articulos");
    System.out.println("Got Results.");
    while (result.next()) {
    int key;
    String val;
    key = result.getInt(1);
    if (result.wasNull()){
    key = -1;
    val = result.getString(2);
    if (result.wasNull()){
    val = null;
    System.out.println("PARTE = "+ key);
    System.out.println("DESCRIPCI�N = "+ val);
    System.out.println();
    catch(Exception e){
    e.printStackTrace();
    finally {
    if (con != null) {
    try { con.close();
    catch(Exception e){
    e.printStackTrace();
    }

  • [Help]JDBC adapter- sender/receiver

    Hello Gurus,
    I have a scenario but can not find a solution.
    We have a ECC and a database.
    The scenario is to run a report from ECC, sending the selection criteria to the database, and get the result from the SQL statement.
    How can i configure in PI?
    Thanks a lot in advance!
    Best regards,
    Charlie

    Hi,
        This can be done using sync client proxy call.
        On the ECC side we need to make a sync call to PI using client proxy, the input parameters to this proxy will be the
        selection criteria, on the receiver side in PI use JDBC adapter.
        For receiver side use the data type for "Select" statement :
        (http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm)
         and in mapping use the values received from ECC and map them as <key> elements.
        The returned value will be part of the output parameters of the client proxy.
    Pravesh.

  • HELP - JDBC to Oracle!

    We're doing Usage Pattern Simulation using LoadRunner. Our Oracle table has about 100 rows with 8 columns.
    Our test includes <insert / select / update / select>. We run the test using 5 vUsers.
    Interesting enough, insert & update works fine. However, we don't seem to get any concurreny on select.
    What are we missing here? Any pointers?
    null

    I am working on the same; here is my servlet code, hope it helps
    private static void loadJDBCDriver ()
    System.out.println ("Loading Database driver...");
    try {
         DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver());
    catch (Exception e) {}
    try {
    DriverManager.registerDriver ( new sun.jdbc.odbc.JdbcOdbcDriver() );
    catch (Exception e2) {
    System.err.println ("loadJDBCDriver: " + e2.toString());
    return;
    System.out.println ("Database driver loaded...");
    private static Connection getConnected () {
    System.out.println ("Establishing database connection...");
    String jdbc_url;
    Connection conn;
    try {
    jdbc_url = "jdbc:oracle:thin:@localhost:1521:oracle";
    conn = DriverManager.getConnection (jdbc_url, "scott", "tiger");
    catch (Exception e) {
    try {
    jdbc_url = "jdbc:odbc:BookNook";
    conn = DriverManager.getConnection (jdbc_url);
    catch (SQLException e2) {
    System.err.println ("getConnected: " + e2.toString() );
    return null;
    System.out.println ("Database connection established ...");
    return conn;

  • Help, getting weird banding when downsizing title to 720p from Full HD

    Hi there, I hope someone can explain what is happening with this project.
    Someone made some video intros for me in Full HD 1928x1080. When I make same resolution MPEG from it in Elements 9, it comes out fine.
    But when I output to my usual 720p (1280x720p), I get some weird banding, no matter what format I input and what format I output.
    I'm not sure why this is, and more importantly, what do I need to get it export properly at 720p. Perhaps I need it in 720?
    I've uploaded a sample clip here: http://www.elevatedmarketing.ca/wp-content/media/video-sample-error.zip
    In it are three versions of the intro video at full HD resolution, 1928x1080
    4.mov
    4.mp4
    4.wmv
    and a video made downsized to 1280x720 where you'll notice the effors in the sample video.
    Sample error Eat M.wmv
    Any feedback is appreciated

    The danger in letting someone else create video clips for you is that you don't know for sure what codecs and other specs they're using for their videos. And that makes it hard to find a project preset that matches the footage.
    When you say that the 1920x1080 footage your friend made works fine in Premiere Elements, do you mean that when you add the clips to the timeline there are no red lines above the clips? If you do see red lines above these clips, it means that you haven't got a match between your project settings and your video -- and that could definitely account for the issues with your output.
    Also, you say you're outputting to 1280x720p. There are actually a number of ways to create a video at this resolution. What do you plan to do with this 720p footage? That could determine your best output settings. It could be that the output settings you're using aren't the ideal format for the player you're using to view them. (BTW, what viewer are you using to play them?)
    Finally, if you could, can you post a sample of this output video to YouTube, Vimeo or Muvipix so that we can see the issues you're describing, that would be very helpful. Like many others on this forum, I'd prefer not to download and open a zip file from a stranger. No offense.

  • Help! Weird issue with FCPX

    Just got FCPX, first video I edited went very smoothly although I'm still learning. Now I created a new project and I am so confused. When I drop in a video it goes on the timeline in this weird blue-framed section. I can't move it later down the timeline where I want it. I put in the next clip and it glues it to the first. I lift the first clip to the layer above and the 2nd jumps to the front. Help! Impossible to edit anything this way! Snapping is turned off.

    Please post screen shots of what you're seeing.
    this weird blue-framed section
    Sounds like a video clip in the FCP timeline.
    I can't move it later down the timeline where I want it. I put in the next clip and it glues it to the first. I lift the first clip to the layer above and the 2nd jumps to the front.
    This sounds normal. The timeline is magnetic and cannot be switched off. If you want to move something to some arbitrary point in the timeline window to need to fill the intervening space with a gap.

  • HELP! Weird action going in my CS3

    Guys/Gals
    Don't know what happened, but my Illustrator is acting weird today. I rebooted my system, and still doesn't change anything. It may be an option I clicked by mistake yesterday while looking for something. HELP ME deselect this action, or solve my problem.
    See attached, when I bring my mouse over some texts (the upper left one), it becomes light. When I click on it to edit the text, it remains that way, so very hard to read.
    Help me!!!
    Jack

    Jack,
    It looks like View>Smart Guides (Ctrl/Cmd+U).

  • Java Student In Need Of Help - JDBC

    I need to create a connection between a MS Access database and my Java Application. Could anyone help me with this? I've tried the online tutorials but I still could not manage to get my head around it!
    Please help
    Finbarr.

    hey lee
    i'm just after finding a good site on JDBC with MS ACCESS, so i'm going to study this and see can i make head or tails of it! i really want to try and see if i can do it myself first. If i'm having trouble I'll get back to ya!
    This is my first time in here!
    Thanx
    Fin.

  • HELP! Weird message instead of SENT mail original messages

    Whenever I send mail, it goes into the OUT box, and then the SENT. However, instead of containing its original content, the content is replaced by the following
    The message from test <<b>[email protected]> concerning “sample” has not been downloaded from the server. You need to take this account online in order to download it.
    I replaced my email address with the word "test"
    One the apple website it said to "rebuild" my mail boxes... well when I do this, it deletes all the weird emails and only leaves the ones I can actual view the original content in... but I'm not sure what is causing the problem in the first place. Our tech guy who runs our website doesn't know what is causing it. We had another guy in here, but he is not a MAC guy and didn't know, but he said it sounded like it was treating the sent mail the same as received mail and it couldn't download it from the service.....
    Dual 1.25 GHz PowerPC G4   Mac OS X (10.3.9)  

    Got a user here experiencing the same problem using 10.4.4 G4 powerbook apple mail. Are you on an imap account or pop? How large is your mailbox? I am trying to narrow it down at my side, will post if I find anything
    Cheers
    Karen

  • HELP! Weird Error Message when I sign into Mail!

    Why do I keep getting the message "this mac cannot connect to icloud because of a problem with ...(my icloud address). Open icloud preferences to fix problem". When I do go to the icloud preferences, I can't access anything, even though I sign in with the correct password. I am still getting mail though. By the way, this started happening after I updated to Yosemite. I have a Macbook Air purchased end of August 2013. Any help would be greatly appreciated!.

    Does apple Read these? I want to upgrade to 4.2 on my 3G and cannot because I don't have itunes 10, and i'm only running 10.4.11, so Itunes 10 won't run on my pc, I'm not ready to upgrade yet to a new computer yet. I guess Apple does not care about it's older users of older equipment..not to allow us to fix our phones with the lastest updates????

  • HELP with weird Suitcase Message in Entourage...

    Hello all.
    I would have to say that my office PM G5 has been "plagued" with fonts problem recently... and the bottomline is, it seems that all my fonts are corrupted??
    Lately when I launch Entourage and click on a new email to read, a little window pop up will say:
    (! in a dialog bubble icon)
    Suitcase
    From Suitcase (TM)
    There was a conflict when attempting to activate the font 'Bookmam Old Style' in the suitcase Bookman Old Style for this document. Please close the document and resolve the conflict in the Suitcase application
    OK Button
    I click OK and can still continue to read the email, but seems like every new email will have a similar message, with different font in the pop up.
    A check in Suitcase and the Bookman font in question is not activated, at least by Suitcase, but it shows it is active, with a User icon besides... so I "suspect" it is either activated by Font Book (which I have loads of problems previously) or it is already in the systems.
    This series of font-related problems occur only recently, so I don't know what might have cause all these...
    I have not update the latest MS Office Updater yet... should I?
    The problem is not major, but very inconvenient and "annoying"...
    I have a more major font-related problem when trying to open a Word or Excel docu:
    http://discussions.apple.com/thread.jspa?threadID=547731
    Thanks and cheers

    Hello azain
    Welcome to the Community
    Please check the Article below to help you solve the issue.
    "Unable to login to your BlackBerry ID account" or "Unable to update your BlackBerry ID account info...
    Goodluck and please let us know if it helps you
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • URGENT Please help with weird behavior of test suite

    Hi All,
    I have a composite involving three operations of two different services. The weird behavior comes by the time on which I run the test suite on the EM, if I try to emulate two different operation response from one service, by the time that the flow, tries to emulate the second one, I always receive this error:
    part name="summary">
    <summary>oracle.fabric.common.FabricException: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Error writing stream: java.io.IOException: Can only write attribute within a tag.: WSDLException: faultCode=OTHER_ERROR: Error writing stream: java.io.IOException: Can only write attribute within a tag.</summary>
    </part>
    On the other hand if I emulate two responses of the same operation it works.
    Does any one have any idea of how to deal with this kind of test? Which seems a very simple test.
    Best regards,

    Hi thanks for your response, in detail my problem is as follows:
    1- I have a simple composite with two services and three invokes, all of the operations are two ways operations. Here´s the BPEL (Service1 Demandas, operation Actualizar; Service 2 Aviso, operations buscar, actualizar):
    <scope name="SINAUT_Aviso_SRV_Demandas_Actualizar">
    <bpelx:annotation xmlns:bpelx="http://schemas.oracle.com/bpel/extension">
    <bpelx:pattern patternName="bpelx:automated"/>
    <bpelx:analysis>
    <bpelx:property name="LastUpdateDate">9/10/10 9:35:50 AM</bpelx:property>
    <bpelx:property name="BusinessId">Scope_151babe7-bc1e-11df-3ca0-0015c5fce8ce</bpelx:property>
    </bpelx:analysis>
    </bpelx:annotation>
    <sequence>
    <bpelx:annotation xmlns:bpelx="http://schemas.oracle.com/bpel/extension">
    <bpelx:analysis>
    <bpelx:property name="BusinessId">Sequence_151babe7-bc1e-11df-3ca0-0015c5fce8ce</bpelx:property>
    <bpelx:property name="LastUpdateDate">9/10/10 9:35:50 AM</bpelx:property>
    </bpelx:analysis>
    </bpelx:annotation>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable"
    query="/client:process/client:input/idDemada"
    part="payload"/>
    <to variable="Invoke_2_actualizar_InputVariable"
    part="payload" query="/payload/demanda/idDemanda"/>
    </copy>
    <copy>
    <from variable="inputVariable"
    query="/client:process/client:input/estadoDemanda/codigo"
    part="payload"/>
    <to variable="Invoke_2_actualizar_InputVariable"
    part="payload"
    query="/payload/demanda/estadoDemanda/codigo"/>
    </copy>
    </assign>
    <invoke name="Invoke_2"
    inputVariable="Invoke_2_actualizar_InputVariable"
    outputVariable="Invoke_2_actualizar_OutputVariable"
    partnerLink="SRV_Demandas"
    portType="ns2:SINAUT_Aviso_SRV_Demandas"
    operation="actualizar"/>
    </sequence>
    </scope>
    <scope name="SINAUT_Aviso_SRV_Avisos_Actualizar">
    <bpelx:annotation xmlns:bpelx="http://schemas.oracle.com/bpel/extension">
    <bpelx:pattern patternName="bpelx:automated"/>
    <bpelx:analysis>
    <bpelx:property name="LastUpdateDate">9/10/10 9:35:57 AM</bpelx:property>
    <bpelx:property name="BusinessId">Scope_c235386b-bc1f-11df-3ca0-0015c5fce8ce</bpelx:property>
    </bpelx:analysis>
    </bpelx:annotation>
    <sequence>
    <bpelx:annotation xmlns:bpelx="http://schemas.oracle.com/bpel/extension">
    <bpelx:analysis>
    <bpelx:property name="BusinessId">Sequence_c235386b-bc1f-11df-3ca0-0015c5fce8ce</bpelx:property>
    <bpelx:property name="LastUpdateDate">9/10/10 9:35:57 AM</bpelx:property>
    </bpelx:analysis>
    </bpelx:annotation>
    <assign name="Assign_2">
    <copy>
    <from variable="inputVariable"
    query="/client:process/client:input/ReferenciaPly"
    part="payload"/>
    <to variable="Invoke_1_actualizar_InputVariable"
    part="payload" query="/payload/aviso/referenciaPlyAviso"/>
    </copy>
    <copy>
    <from variable="inputVariable"
    query="/client:process/client:input/estadoAviso/codigo"
    part="payload"/>
    <to variable="Invoke_1_actualizar_InputVariable"
    part="payload" query="/payload/aviso/estadoAviso/codigo"/>
    </copy>
    </assign>
    <invoke name="Invoke_1"
    inputVariable="Invoke_1_buscar_InputVariable_1"
    outputVariable="Invoke_1_buscar_OutputVariable_1"
    partnerLink="SRV_Aviso"
    portType="ns1:SINAUT_Aviso_SRV_Avisos"
    operation="buscar"/>
    <assign name="Assign_4">
    <copy>
    <from expression="'12345'"/>
    <to variable="Invoke_3_actualizar_InputVariable"
    part="payload" query="/payload/aviso/referenciaPlyAviso"/>
    </copy>
    </assign>
    <invoke name="Invoke_3"
    inputVariable="Invoke_3_actualizar_InputVariable"
    outputVariable="Invoke_3_actualizar_OutputVariable_1"
    partnerLink="SRV_Aviso"
    portType="ns1:SINAUT_Aviso_SRV_Avisos"
    operation="actualizar"/>
    </sequence>
    </scope>
    2- My test suite is as follows:
    <wireActions wireSource="SINAUT_Aviso_PR_DemandasActualizar_TO_BE_/SRV_Demandas" operation="actualizar">
    <emulate duration="PT0S">
    <message>
    <part partName="payload">
    <content>
    <payload xmlns=""/>
    </content>
    </part>
    </message>
    </emulate>
    </wireActions>
    <wireActions wireSource="SINAUT_Aviso_PR_DemandasActualizar_TO_BE_/SRV_Aviso" operation="buscar">
    <emulate duration="PT0S">
    <message>
    <part partName="payload">
    <filePath>prueba_busqueda.xml</filePath>
    </part>
    </message>
    </emulate>
    </wireActions>
    <wireActions wireSource="SINAUT_Aviso_PR_DemandasActualizar_TO_BE_/SRV_Aviso" operation="actualizar">
    <emulate duration="PT0S">
    <message>
    <part partName="payload">
    <filePath>prueba_actualizar.xml</filePath>
    </part>
    </message>
    </emulate>
    </wireActions>
    3- When the test suite executes the second operation of the second service it throws this exception:
    <bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>oracle.fabric.common.FabricException: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Error writing stream: java.io.IOException: Can only write attribute within a tag.: WSDLException: faultCode=OTHER_ERROR: Error writing stream: java.io.IOException: Can only write attribute within a tag.</summary></part><part name="detail"><detail>Can only write attribute within a tag.</detail></part></remoteFault></bpelFault>
    4- if I change the second operation with the first one(buscar), it doesn't throws any exception.
    5- If this is a limitation , how can I test a composite that involves n operations of the same service?
    Kind regards and thanks for all of your support

  • HELP! Weird "Underwater" effect when reducing high and low frequency noise.

    Hi everyone.
    I am in a spot of bother with Soundtrack Pro. I hooked up a reel-to-reel player's audio line out to my PowerBook's line in. Then in Soundtrack Pro, I hit record.
    So everything works out fine, except...
    There is some hissing in the audio file which I can easily remove with the "Reduce Noise..." feature, but there is this low "rumbling" noise in the background. When I try to remove that, the entire song sounds like it was played "underwater". I tried selecting only the low noise, goin to "Process>Set Noise Print" then reducing the noise, and the underwater effect gets worse.
    I need help pronto!
    Thanks

    Hmmm...OK. The hiss is removed, and the underwater effect is elimanated, but how do I get rid of this annoying low rumbling? I tried looking under the Analysis tab and selecting "Power Line Hum" but it couldn't find anything. High Pass Filter and Linear Phase EQ either kill the whole bass frequencies or they make the song sound "Tinny".
    Any advise?
    Thanks

Maybe you are looking for

  • Error in Query Execution in BI 7.0

    Hi, We had recently upgraded to netweaver 2004s. While executing a query we are getting the below error.  “Object Field I_S_DATA-ZINSCOUNT not found “while executing the query. ZINSCOUNT is a key-figure that is used in the query. The query is working

  • Exchange 2003 sp2 to exchange 2007 sp1 upgrade error

    Hi, We had Windows 2003 DCs and Exchange 2003 servers. We migrated AD DCs to windows 2008 R2 at parent domain. We have one parent domain and 10 child domains in remote sites .3 remote sites have been migrated to windows 2008 R2. Now at parent domain

  • How can I tell what generation my 80 Gb I-Pod classic is.

    Model No is A1238. Does this help

  • Problems importing Photoshop docs

    Hello- Hopefully someone can help me with this: My Phooshop docs are importing without an alpha channel (I.e.: all transparancy turns to white). I don't recall having this problem before; but then again, this wouldn't be the first time that I stepped

  • ? about mobile app

    I have the mobile app on my cell phone. If I received a phone call at my home, it always showed up as caller ID on my cell phone. It was always good to have this. It recently disappeared and does not appear anymore.  Can you help?