Strange problem with connection to Integrator Server

Hi,
I have a strange problem with making a connection to my Integrator Server.
I have one workspace folder that I share between Integrator version 2.4 and 3.0 (I have several versions installed for testing purposes)
When I try to create a new Integrator Server Project in Integrator Designer I get this nice 'Connect to CloverETL Server' panel.
By default: the connection URL is http://localhost:8080/clover. So by default Integrator Designer wants to connect to my 2.4 Integrator Server.
When I change this to http://localhost:8301/clover by using the drop-down box and fill in my credentials everything is looking fine. I click Next.
The problem now is that every time I switch to the next or previous configuration windows the connection is reset to the default http://localhost:8080/clover.
So it seems like Integrator Designer resets the CloverETL Server URL each time I switch to a different configuration window by using NEXT or BACK.
The problem occurs in both versions of Integrator Designer.
Does anybody know that the problem is? Can I change the default URL to my 3.0 Integrator Server?
Greetings,
Marcow
Edited by: Marco Snels (AortaBI)(NL) on 31-mei-2013 4:59

I'm using iPlanet App server as well and experiencing similar problem. I load my SQL Server driver by Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"), then use DriverManager.getDriver() to obtain the Driver.
However, the Driver returned is not the SQLServerDriver as expected. The Driver returned is com.netscape.server.jdbc.Driver! And then when I do Driver.getConnection("jdbc:microsoft:sqlserver://MyServer"), it throws an SQLException saying that it doesn't accept a jdbc:microsoft:sqlserver subprotocol. Well, of course it doesn't, it's not a microsoft Driver at all.
I suspect the problem is that the netscape Driver's acceptsURL() method ALWAYS returns true in iPlanet app server, thus when you getDriver(), the netscape Driver is always returned (and always returned as the first one since it's default?). Thus even though the same piece of code works fine as a standalone application, it just doesn't work on iPlanet app server.
My work around is:
Class.forName("my.Driver");
Enumeration enu = DriverManager.getDrivers();
Driver useThis = null;
while (enu.hasMoreElements()) {
Driver d = (Driver)enu.nextElement();
if (d.getClass().toString().indexOf("my.Driver") > -1) {
useThis = d;
Mind that my above code does not have an performance issue. If you look into the source code of how DriverManager get a Driver for a particular URL, it also loads the whole set of available Drivers, then call acceptsURL() method on each of them to find the first "suitable" one. Thus time complexity is the same.
I know this is not a very elegant solution and it defeats the purpose of having a DriverManager. Does any one else has a better way to solve this problem, like a way to specify the priority of each Driver so that SQLServerDriver is returned before the netscape Driver?
Thanks a lot.

Similar Messages

  • How do I get connected to a server on my network via an IP address?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    I am new to Mac...How do I get connected to a server on my network via a hyper link IP address path?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    Some of the following is going to use some technical terms — this area is inherently somewhat technical. 
    If you don't understand some part of the following reply, please ask.
    Is this your own OS X Server system on your own network, or is this some other server within some larger organization? 
    You're posting this in the OS X Server forum, which is a software package that allows OS X systems to provide web-based and many other services; to become servers.
    If it's your OS X Server on your network, then the network and DNS configurations are suspect, or the server is somehow malfunctioning or misconfigured.   This is unfortunately fairly common, as some folks do try to avoid setting up DNS services.
    If it's a larger organization and somebody else is managing the server and the network, then you'll probably need to contact the IT folks for assistance; to learn the network setup and DNS requirements, and if there's a problem with the server itself.
    The basic web URL "hyper link IP address path" — without using DNS — usually looks something the following, where you'll need to replace 10.20.30.40 with the IP address of your server:
    http://10.20.30.40
    UptimeJeff has posted a URL that specifies the AFP file system; an OS X file share.  That's used if you're connecting to an Apple storage service somewhere on your network.  You might alternatively need to specify smb://10.20.30.40 or such, if it's a Windows file server.  (There can be additional requirements for connecting to Windows Server systems, too.)
    If there's local IT staff available here, please contact them for assistance.  If these are your own local systems and your own local OS X Server system, then some information on the server will be needed.  (If you're on a NAT'd network, you'll also need to get DNS services configured and working on your local OS X Server system and your network — you'll not be able to skip this step and reference ISP DNS servers here — or things can and usually will get weird.)

  • If anybody have a problem with connection to smtp server from iPhone

    If anybody have a problem with connection to smtp server just add new server
    Seetings → Mail, Contacts, Calendars → User Me account → Account → Under Advanced choose Mail → SMTP → Add Server
    smtp.me.com
    user name ([email protected])
    password
    Apple, i am in love with your product, please fix this so we could injoy it even more.

    Might be something to help you here >  iCloud: Mail server information

  • Problem with connect to sql server ..

    I have problem with connect to sql server2005
    i use jpa(hibernate) and jsf
    javax.servlet.ServletException: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
    root cause
    javax.faces.el.EvaluationException: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
    javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    javax.faces.component.UICommand.broadcast(UICommand.java:315)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    root cause
    javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
    org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)
    org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)
    org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1371)
    org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
    servlet.PrzychodniaBean.dodaj(PrzychodniaBean.java:30)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    org.apache.el.parser.AstValue.invoke(AstValue.java:262)
    org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
    com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
    javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    javax.faces.component.UICommand.broadcast(UICommand.java:315)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    root cause
    org.hibernate.exception.JDBCConnectionException: Could not open connection
    org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131)
    org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
    org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
    org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
    org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:304)
    org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)
    org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67)
    org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160)
    org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1263)
    org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:57)
    servlet.PrzychodniaBean.dodaj(PrzychodniaBean.java:30)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    org.apache.el.parser.AstValue.invoke(AstValue.java:262)
    org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
    com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
    javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    javax.faces.component.UICommand.broadcast(UICommand.java:315)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    root cause
    java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost;databaseName=MIS
    java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.DriverManager.getConnection(Unknown Source)
    org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173)
    org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:276)
    org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297)
    org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)
    org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67)
    org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160)
    org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1263)
    org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:57)
    servlet.PrzychodniaBean.dodaj(PrzychodniaBean.java:30)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    org.apache.el.parser.AstValue.invoke(AstValue.java:262)
    org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
    com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
    javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    javax.faces.component.UICommand.broadcast(UICommand.java:315)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    note The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs.
    persistance.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    <persistence-unit name="PrzychodnieLekarskiePU" transaction-type="RESOURCE_LOCAL">
    <class>model.Przychodznia</class>
    <properties>
    <property name="hibernate.connection.username" value="a"/>
    <property name="hibernate.connection.password" value="a"/>
    <property name="hibernate.connection.url" value="jdbc:sqlserver://localhost;databaseName=MIS"/>
    <property name="hibernate.connection.driver_class" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
    <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
    <property name="javax.persistence.jdbc.url" value="jdbc:sqlserver://localhost;databaseName=MIS"/>
    <property name="javax.persistence.jdbc.user" value="a"/>
    <property name="javax.persistence.jdbc.password" value="a"/>
    <property name="javax.persistence.jdbc.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
    </properties>
    </persistence-unit>
    </persistence>
    Edited by: 985713 on 2013-02-02 07:12
    Edited by: 985713 on 2013-02-02 07:37

    it works ok : I don't known where is error in jpa .. ?
    public class MyConnection {
         public static Connection getConnection () throws SQLException{
              String url = "jdbc:sqlserver://ABADDON1;databaseName=MIS";
              String user = "a";
              String pass = "a";
              DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver());
              Connection conn = DriverManager.getConnection(
                        url,user,pass);
              System.out.println("OK");;
              return conn;
    try {
                   conn = MyConnection.getConnection();
                   } catch (SQLException ex) {
                        System.out.println("Error: " + ex.getErrorCode()
                                  + ex.getMessage());
                   }

  • Adobe Cirrus:Problems with connection to Cirrus Server

    Hello!
    I am developing applications for the Cirrus.
    Such a problem:
    On some computers, connections to Cirrus server is a long time, sometimes more than 2 minutes ... And sometimes it does not connect(NetConnection.Connect.Failed).
    Possible to fix it? Maybe, somebody know explanation of this?
    Thanks!

    I made this little test to try to check what is wrong:
    while(true){
    Connection conn = openConnection();
    closeConnection(conn);
    Opening Connection:com.microsoft.sqlserver.jdbc.SQLServerConnection@1835282
    Closing Connection: com.microsoft.sqlserver.jdbc.SQLServerConnection@1835282
    Closed
    ... and it keeps running and running but nothing else happens.This is just what you coded up.
    You'll never exit that loop. while (true) {} runs forever unless you put something inside it to break out, and you did not.
    Looks like the code did exactly what you asked it to. You just didn't know what you were asking.
    Here's what I would do:
    Connection conn = null;
    try
        conn = DriverManager.createConnection(url, username, password);
        DatabaseMetaData meta = conn.getMetaData();
        String product = meta.getDatabaseProductName();
        String version = meta.getDatabaseMajorVersion();
        System.out.println("vendor: " + vendor);
        System.out.println("version: " + version);
    catch (SQLException e)
        e.printStackTrace();
    finally
        // static method with try/catch block
        close(conn);
    }This will be better.
    %

  • Problems with connecting to FreeNX server

    When I try to connect to the server a black window with the NX logo apears for 1sec and then it disapears with no errors. In the error file this shows:
    Proxy: WARNING! Handling data for finishing FD#7 channel ID#1.
    Proxy: WARNING! Handling data for finishing FD#7 channel ID#1.
    After trying with a windows client, i got this log from the client:
    Info: Proxy running in client mode with pid '3380'.
    Session: Starting session at 'Mon May 26 03:36:22 2008'.
    Warning: Connected to remote version 3.1.0 with local version 3.2.0.
    Info: Connection with remote proxy completed.
    Warning: Unrecognized session type 'unix-kde'. Assuming agent session.
    Info: Using WAN link parameters 768/24/1/0.
    Info: Using cache parameters 4/4096KB/16384KB/16384KB.
    Info: Using pack method 'adaptive-9' with session 'unix-kde'.
    Info: Using ZLIB data compression 1/1/32.
    Info: Using ZLIB stream compression 1/1.
    Info: No suitable cache file found.
    Info: Forwarding X11 connections to display ':0'.
    Info: Listening to font server connections on port '11000'.
    Session: Session started at 'Mon May 26 03:36:24 2008'.
    Info: Established X server connection.
    Info: Using shared memory parameters 0/0K.
    Session: Terminating session at 'Mon May 26 03:36:25 2008'.
    Session: Session terminated at 'Mon May 26 03:36:25 2008'.
    Last edited by tafsen (2008-05-26 01:41:22)

    Your only option is to contact the server administrator. Who
    hosts your
    server?
    If you have an account with them, you should be able to login
    to your
    account and change your FTP settings however if they are
    having problems
    with servers, this might not be possible!
    There isn't, as far as I know, any other way to connect.
    Hope this is useful anyway.
    Nath.
    "B_C_B_C" <[email protected]> wrote in
    message
    news:ftu0qj$lph$[email protected]..
    > Hi there, I registered to ask this question and to see
    if anyone had any
    > answers to help me. I own Dreamweaver CS3, the full
    licensed version. I
    > already have a testing server and a server under the
    remote info section,
    > and
    > on the site I've added quite a few things. Recently I've
    had real
    > problems
    > connecting to the server - my password and log-in name
    is correct, exactly
    > the
    > same at my University, and yet it refuses to log in.
    However, my teacher
    > mentioned that the server is quite unreliable and that
    they're working on
    > installing a new one, so it looks like even they
    acknowledge there's a
    > problem.
    > Any hints or tips on how to connect, or to maybe reset
    the password and
    > log-in
    > on both the remote info server and the testing server?
    Because this is a
    > huge
    > inconvenience for me at the moment. Any help or info
    would be hugely
    > appreciated.
    >
    >

  • Problem with connection to SQl Server ( charecter set cp1255 not found )

    Hello my name is Ron ,
    i want to connect to SQL SERVER with the microsoft driver
    from Java ( with jDeveloper ) .
    then i did the following steps:
    1) i download and install the jdbc driver for Sql server
    on my machine ( windows XP with , JDK 1.3 )
    2) i update my classpath with the .Jar lib file of the driver .
    3) when creating the connection
    i'm using the
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    this is Ok , the driver was loaded .
    4) when trying the GetConnction
    Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://server1:1433","username","secret");
    i get the following error:
    [Microsoft][SQLServer 2000 Driver for JDBC]Character set CP1255 not found in com.microsoft.util.transliteration.properties.
    please help me with this . any idea ?
    thanks in advance
    Roni

    Ron,
    Try following this document
    http://otn.oracle.com/products/jdev/howtos/bc4j/bc_psqlserverwalkthrough.html
    from the how-tos archive.
    Also, try to change the compiler encoding to UTF-8. you do this in the project setting window.
    http://otn.oracle.com/products/jdev/htdocs/vcmigration/weblogic/unicode.gif
    http://otn.oracle.com/products/jdev/htdocs/vcmigration/weblogic/unicode2.gif
    good luck

  • Problem with Connection to SQL Server via Servlet (in iPlanet 6 App Server)

    Hi ,
    I am using the iPlanet ApplicationServer 6.0 SP2 for development & testing of an internet application.
    I am facing a problem when I am trying to connect to MS SQL SERVER via the native jdbcodbc driver (obdc32.dll). The error is something like this :
    [26/Jul/2001 11:50:35:7] warning: DriverConnect: (28000): [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'.(DB Error: 18456)
    [26/Jul/2001 11:50:35:7] warning: ODBC-027: CreateConn: failed to create connection [new connection]: DSN=fadd,DB=cashbook,USER=test,PASS=xxxxxxxxx
    [26/Jul/2001 11:50:35:7] error: DATA-108: failed to create a data connection wit
    h any of specified drivers
    Error in connecting to the Database for cirrus :java.sql.SQLException: failed to
    create a data connection with any of specified drivers
    java.sql.SQLException: failed to create a data connection with any of specified
    drivers
    at com.netscape.server.jdbc.Driver.afterVerify(Unknown Source)
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at gefa.util.DBConnection.jdbcConnectionOpen(DBConnection.java:65)
    at gefa.servlet.ServUpload.doPost(ServUpload.java:45)
    at gefa.servlet.ServUpload.doGet(ServUpload.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    I have configured a DSN with the name "fadd" on the machine with the application server and it used NT authentication. I have supplied an NT userid and password that has appropriate rights on the database "cashbook".
    When I write a java standalone program, it does connect but via a servlet it does not connect.
    Can some guide me with this problem please ?
    Anything one might have observed in the past ? (may be specific to iPlanet ?)
    Thanks a lot in advance
    ~Sunil

    I'm using iPlanet App server as well and experiencing similar problem. I load my SQL Server driver by Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"), then use DriverManager.getDriver() to obtain the Driver.
    However, the Driver returned is not the SQLServerDriver as expected. The Driver returned is com.netscape.server.jdbc.Driver! And then when I do Driver.getConnection("jdbc:microsoft:sqlserver://MyServer"), it throws an SQLException saying that it doesn't accept a jdbc:microsoft:sqlserver subprotocol. Well, of course it doesn't, it's not a microsoft Driver at all.
    I suspect the problem is that the netscape Driver's acceptsURL() method ALWAYS returns true in iPlanet app server, thus when you getDriver(), the netscape Driver is always returned (and always returned as the first one since it's default?). Thus even though the same piece of code works fine as a standalone application, it just doesn't work on iPlanet app server.
    My work around is:
    Class.forName("my.Driver");
    Enumeration enu = DriverManager.getDrivers();
    Driver useThis = null;
    while (enu.hasMoreElements()) {
    Driver d = (Driver)enu.nextElement();
    if (d.getClass().toString().indexOf("my.Driver") > -1) {
    useThis = d;
    Mind that my above code does not have an performance issue. If you look into the source code of how DriverManager get a Driver for a particular URL, it also loads the whole set of available Drivers, then call acceptsURL() method on each of them to find the first "suitable" one. Thus time complexity is the same.
    I know this is not a very elegant solution and it defeats the purpose of having a DriverManager. Does any one else has a better way to solve this problem, like a way to specify the priority of each Driver so that SQLServerDriver is returned before the netscape Driver?
    Thanks a lot.

  • Problem with Connection to message server "DB-Connect Failed, Return Code "

    Hello,
    I have the problem that disp+work exe start but after one minute the precedure stopped.  The Messages in syslog are "Message server disconnected DB-Connect Failed, Return Code  008192. Can anybody help me?
    Best regards Mohamed

    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Tue Oct 09 19:07:25 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'F:\usr\sap\BI7\DVEBMGS70\exe\dbmssslib.dll' ...
    B  Library 'F:\usr\sap\BI7\DVEBMGS70\exe\dbmssslib.dll' loaded
    B  Version of 'F:\usr\sap\BI7\DVEBMGS70\exe\dbmssslib.dll' is "700.08", patchlevel (0.72)
    B  New connection 0 created
    M sysno      70
    M sid        BI7
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    80
    M intno      20050900
    M make:      multithreaded, ASCII, optimized
    M pid        7580
    M
    M  kernel runs with dp version 217(ext=109) (@(#) DPLIB-INT-VERSION-217)
    M  length of sys_adm_ext is 360 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 7580) [dpxxdisp.c   1301]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          11440     (880)
    M  DpShMCreate: sizeof(tm_adm)          3397704     (16904)
    M  DpShMCreate: sizeof(wp_ca_adm)          18000     (60)
    M  DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    M  DpShMCreate: sizeof(comm_adm)          528048     (1048)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1196)
    M  DpShMCreate: sizeof(wall_adm)          (22440/34344/56/100)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 06350040, size: 4024776)
    M  DpShMCreate: allocated sys_adm at 06350040
    M  DpShMCreate: allocated wp_adm at 063519F0
    M  DpShMCreate: allocated tm_adm_list at 063546A0
    M  DpShMCreate: allocated tm_adm at 063546D0
    M  DpShMCreate: allocated wp_ca_adm at 06691F18
    M  DpShMCreate: allocated appc_ca_adm at 06696568
    M  DpShMCreate: allocated comm_adm at 06697CD8
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 06718B88
    M  DpShMCreate: allocated gw_adm at 06718BC8
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 06718BF8
    M  DpShMCreate: allocated wall_adm at 06718C00
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  ThInit: running on host ATTNWSRV

    M Tue Oct 09 19:07:26 2007
    M  calling db_connect ...
    C  Process 7580
    C  GetProfileParameter( wait_and_see ) returned [<null>]
    C  GetProfileParameter( deadlock_priority ) returned [<null>]
    C  GetProfileParameter( packet_size ) returned [8192]
    C  GetProfileParameter( rpc_batch ) returned [<null>]
    C  batched RPC will be used
    C  GetProfileParameter( dbsl_profile ) returned [1]
    C  dbsl profile written to dbsl_w0
    C  GetProfileParameter( pn_cache_size ) returned [20000]
    C  GetProfileParameter( par_stmt_cache_size ) returned [500]
    C  GetProfileParameter( dbcon_pn_size ) returned [<null>]
    C  GetProfileParameter( dbcon_par_stmt_cache_size ) returned [<null>]
    C  GetProfileParameter( stats_on ) returned [1]
    C  GetProfileParameter( network ) returned [<null>]
    C  GetProfileParameter( sp_prefix ) returned [<null>]
    C  GetProfileParameter( rdisp/TRACE ) returned [1]
    C  GetProfileParameter( set_rowcount ) returned [<null>]
    C  GetProfileParameter( set_fast1 ) returned [<null>]
    C  GetProfileParameter( use_integrated_security ) returned [<null>]
    C  GetProfileParameter( conn_str ) returned [<null>]
    C  GetProfileParameter( ignore_moduledrop ) returned [<null>]
    C  GetProfileParameter( use_cursor ) returned [<null>]
    C  GetProfileParameter( cursor_type ) returned [<null>]
    C  GetProfileParameter( fupd_cursor_type ) returned [<null>]
    C  GetProfileParameter( set_topn ) returned [<null>]
    C  GetProfileParameter( short_col_headers ) returned [<null>]
    C  GetProfileParameter( update_with_updlock ) returned [<null>]
    C  GetProfileParameter( maxincnt ) returned [<null>]
    C  GetProfileParameter( transmit_defaults ) returned [<null>]
    C  GetProfileParameter( square_brackets ) returned [<null>]
    C  GetProfileParameter( with_recompile ) returned [<null>]
    C  GetProfileParameter( max_duration ) returned [<null>]
    C  GetProfileParameter( irow_supported ) returned [<null>]
    C  GetProfileParameter( ins_block_increment ) returned [<null>]
    C  GetProfileParameter( max_ins_block_columns ) returned [<null>]
    C  GetProfileParameter( unc_rd_begin_tran ) returned [<null>]
    C  GetProfileParameter( use_rpc_call_string ) returned [<null>]
    C  GetProfileParameter( perm_stmt_reuse_cnt ) returned [<null>]
    C  GetProfileParameter( batch_stmt_reuse_cnt ) returned [<null>]
    C  GetProfileParameter( temp_stmt_reuse_cnt ) returned [<null>]
    C  GetProfileParameter( prepare ) returned [<null>]
    C  GetProfileParameter( par_stmt_prepare ) returned [<null>]
    C  GetProfileParameter( profile_with_timestamp ) returned [<null>]
    C  GetProfileParameter( no_utab_workaround ) returned [<null>]
    C  GetProfileParameter( use_block_fetch ) returned [<null>]
    C  GetProfileParameter( connect_retries ) returned [<null>]
    C  GetProfileParameter( connect_timeout ) returned [<null>]
    C  GetProfileParameter( use_system_locale ) returned [<null>]
    C  GetProfileParameter( ignore_stmtids ) returned [<null>]
    C  GetProfileParameter( recompile_par_stmts ) returned [0]
    C  GetProfileParameter( subst_params ) returned [<null>]
    C  GetProfileParameter( provider ) returned [<null>]
    C  GetProfileParameter( lob_rc ) returned [<null>]
    C  GetProfileParameter( buffer_cvarlobs ) returned [<null>]
    C  GetProfileParameter( allow_multipleconnections ) returned [<null>]
    C  GetProfileParameter( fupdorder ) returned [<null>]
    C  GetProfileParameter( no_vbdata_workaround ) returned [<null>]
    C  GetProfileParameter( use_mars ) returned [<null>]
    C  GetProfileParameter( as_c ) returned [<null>]
    C  GetProfileParameter( save_stmt_string ) returned [<null>]
    C  GetProfileParameter( server ) returned [ATTNWSRV]
    C  GetProfileParameter( user ) returned [<null>]
    C  GetProfileParameter( passwd ) returned [<null>]
    C  GetProfileParameter( dbname ) returned [BI7]
    C  GetProfileParameter( schema ) returned [dbo]
    C  Warning: Env(MSSQL_SCHEMA) [bi7] <> Prof(dbs/mss/schema) [dbo]. Profile value will be used.
    C  GetProfileParameter( auth/shadow_upgrade ) returned [<null>]
    C  GetProfileParameter( add_procs ) returned [<null>]
    C  Thread ID:7584
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'F:\usr\sap\BI7\DVEBMGS70\exe\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      72
    C    patchcomment MSSQL: Thread check in DbSlDisconnect (969143)
    C  COMPUTERNAME: ATTNWSRV
    C  np:(local) connection used on ATTNWSRV
    C  CopyLocalParameters: dbuser is 'dbo'
    C  Formatted connect string : [Driver=SQL Server;Server=np:(local);Trusted_Connection=yes;WSID=ATTNWSRV;APP=R3D00(0)comm rd [MDAC] OLEDB]

    C Tue Oct 09 19:07:27 2007
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: MARS property was not set.
    C  Packet size is set to: 8192
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 18456, sev 0), Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  Packet size is set to: 8192
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 18456, sev 0), Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  Packet size is set to: 8192
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 18456, sev 0), Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn to np:(local).
    C  Retrying without protocol specifier: (local)
    C  Formatted connect string : [Driver=SQL Server;Server=(local);Trusted_Connection=yes;WSID=ATTNWSRV;APP=R3D00(0)comm rd [MDAC] OLEDB]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  Packet size is set to: 8192
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 18456, sev 0), Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  Packet size is set to: 8192
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 18456, sev 0), Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]

    C Tue Oct 09 19:07:28 2007
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  Packet size is set to: 8192
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 18456, sev 0), Login failed for user 'ATTNWSRV\SAPServiceBI7'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn. 0
    B  ***LOG BY2=> sql error 0      performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> <message text not available> [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 0      performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> <message text not available> [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10169]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = no VM

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server ATTNWSRV_BI7_70 on host ATTNWSRV (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Tue Oct 09 19:07:28 2007
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10367
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 7580) [dpnttool.c   327]

  • Problem with connecting remote OPC Server

    Today, when I opened my labveiw 8 program which worked properly yesterday, it couldn't connect to the Items on remote OPC server anymore thought I can still browse those items in Server Explorer.  In the NI published variable monitor, quality for those items is "Server failure", Then I added a new variable which bind to a local OPC item, it works properly. What's the difference between labview8 and Server Explorer when they are used to view a OPC Item?
    LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
    欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn

    I've solved the problem,  the reason is that the NI variable engine log on as the system account, I changed it to the specified user which I used it in DCOM config, then it's ok
    the  method is:   computer management->Services->NI variable Engine->log on->this user...
    LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
    欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn

  • Problem with Connection to the Server

    From the Java Applet,
    Basically when I try and connect it returns a org.omg.BAD_OPERATION - remote exception. The Serer is not registered in the implementation. It says use the putit and I have but it doesn't change things...
    Basically my code for this look like
         if ((tmp = ServerField.getText ()) == null)
         markerServer = "";
         else
         markerServer = ":" + tmp;
         // get host name from text field
         hostName = HostField.getText ();
         System.out.println("hostname:" + hostName);
         System.out.println("Server:" + tmp);
         // bind to server object
         try {
              System.out.println("Attempting to connect " + markerServer);
              System.out.println("to :"+ markerServer);
              System.out.println( "on "+ hostName);
              wcGUI = WCGUIHelper.bind (markerServer , hostName);
    Thanks in advance for any assistance you can give in solving this problem for me

    org.omg.BAD_OPERATION
    wcGUI = WCGUIHelper.bind (markerServer , hostName);These look like non standard classes. Are they part of a solution from another company or have you developed them yourself?
    If they're from another company do they have a website, support contact or forum? you're unlikely to find an answer here I'm afraid.

  • Strange problem with IGS

    Dear Experts
    I have a strange problem with IGS
    My IGS server is running perfectly when I execute SIGS at my server system and also thrw Http link, and in GRC also
    But when I tried to execute the same tcode SIGS from internet thrw another system it is blank.
    Even risk terminator also blank due to that.

    Explain what you meant by internet thrw another system?
    IGS is integrated into the SAP kernel and make sure your kernel files are intact when compared to your server with another server you quoted.
    Check the program name is IGS.<SID of the SAP instance> in the RFC dest IGS_RFC_DEST & GFW_ITS_RFC_DEST.

  • Strange problem with the internet connection

    Hello,
    I've a strange problem with the network connection , I have bought a Iphone 3g in Italy in date 31st
    October 2010. Now in Italy I have just subscribed a telephone rental with Wind company, where there is an unlimited internet service. The problem is that in my Iphone there is not the line.
    All this is strange because I receive the messages from social networks (like facebook and msn) but I cannot open tha page for the internet connection. I have gone to Apple store and I have tried to put my SIM in an other phone (iphone 3g or 3gs): my SIM is perfectly working.
    The problem is only for the internet connection on my phone because wifi connection is good.
    Thanks!!

    Please help everyone who has the same problem by posting yr solution, thx!

  • Strange problem with ACLs

    Hi,
    I have just migrated an oracle database from 11.1.0.7 on Win Server 2003 to 11.2 on Linux 64 bit. I am having a strange problem with ACLs - I can create the ACL but when I perform either of the following two commands:
    SELECT * FROM DBA_NETWORK_ACLS
    or
    SELECT * FROM NET$_ACL
    I get no rows returned. The ACL exists somehow because if I try and create it again I get the error that it exists. Has anyone got any advice here? Something is out of sync and I need to know how to fix it up.
    Thanks
    Adam

    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    PL/SQL procedure successfully completed.
    select * from DBA_NETWORK_ACLS;
    (no rows)
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    ORA-31003: Parent /sys/acls/ already contains child entry email_server_acl.xml
    ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 252
    ORA-06512: at line 2
    Edited by: Adam J. Sawyer on 15/04/2011 17:08

  • Strange problem with SSL Sockets using more than 10 Clients

    Hi
    I�m using Jsse ( JDK 1.4.2_06 ). I have coded a Client/Server Applikation acting over SSLSockets or over unsecured Sockets. If I use unsecured Sockets everthing works fine, but if I use SSLSockets for the Connection and about 20 Clients, the Clients often can�t connect to the Server and the following Exception was thrown:
    java.net.ConnectException: Connection refused: connect
    Could it be that there is some strange problem with SSLServerSockets relating to this phenomenon?
    If I use only a few Clients the Exception occurs never or only sometimes.
    Has anyboby an idea what is happaning there?
    Regards Chrisli

    Hi
    From the description of your scenario, you have coded your own server side of the application. I would advise that you consider moving your application to run under Tomcat framework and test if you still get the same exception.

Maybe you are looking for

  • Upgrade Question on Number of Files

    Today, I installed my new copy of Snow Leopard. Things went just fine and have been running without issue. I did notice that the number of files listed in Disc Utility has jumped by about 100K, even though the number of GB is down by about 3.5GB. Any

  • Why last  4 lines of  every page in sap script are not coming ,it is not o

    pls give some solution why last  4 lines of  every page in sap script are not coming ,it is not over flowing to next page even? it is any page format related problem or coding problem?

  • Write tif file color table

    Hello: I am trying to write a 16-bit tif file with the proper color table using Vision utility.  I cannot get the proper color table.  I can save as other formats but have special requests for 16-bit tif. I have attached an example VI to show you thi

  • SCOM 2012 SP1 Integration with Qlikview

    Hi , can anyone help me with information on how to integrate SCOM 2012 Sp1 and Qlikview ? Any pointers or documentation will be greatly appreciated. Thank you,

  • Simple quaries

    hello deveopers, i am a bit new using jdbc so please help me answering these questions. 1) what all the libraries i need to connect to and access the Oracle database? 2) which one is the best application swing/servlet/jsp, where the data should be in