Get a tns connection through JDBC.

Hi
I am trying to get tns connection using jdbc to the dabatase. The following code returns an exception "SQLException: IO Error: Unknown host specified ". Most likely becuase the string is missing a host address. Does a tns connection require a host to be included? I am under the assumption, there are only 3 tns properties - username, password and a Net Service Name (e.g. ORCL) . Thanks.
string url = jdbc:oracle:thin:@//username/password/service_name";
try {
Class.forName("oracle.jdbc.OracleDriver");
} catch (java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
e.printStackTrace();
try {
Connection connection = DriverManager.getConnection(url);
new ConnectionInfo(connection);
} catch (SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
Edited by: 875864 on 10-Jan-2012 16:53

The thin driver needs the host; it doesn't use the tnsnames.ora file
Here is a simple set of code to get a connection
        String driver   = "oracle.jdbc.OracleDriver";
        String url      = "jdbc:oracle:thin:@host:port:sid";
        String username = "SCOTT";
        String password = "tiger";
        try {
            Class.forName(driver);
            Connection con = DriverManager.getConnection(url, username, password);
       ...This link shows how to use the thin or the OCI (thick) drivers. The OCI driver needs an Oracle client and will use tnsnames.ora
http://www.orafaq.com/wiki/JDBC

Similar Messages

  • Updating firmware when I can't get an internet connection through the router

    I am trying to update the firmware for WRT54G V8, but some of the instructions indicate I need to have the router connected and be connected to the internet.  I cannot get an internet connection through the router.  Can I upgrade firmware without being connected to the internet through the router.  (I have had this router for about a year and a half with no problems until now.)

    Yes, you can upgrade the firmware without an Internet connection.
    To upgrade the firmware, first download the new firmware into a computer that you can wire to your router.
    Next, power down your entire network.
    Then wire the computer to a LAN port on the router.
    Disconnect all other wires from the router.
    Power up the router and allow it to fully boot (1-2 minutes).
    Power up your computer.
    Login to the router, and do the firmware upgrade  (it will likely take several minutes).
    Power down your entire network.
    Next you need to reset the router to factory defaults.
    To reset your router to factory defaults, use the following procedure:
    1) Power down all computers, the router, and the modem, and unplug them from the wall.
    2) Disconnect all wires from the router.
    3) Power up the router and allow it to fully boot (1-2 minutes).
    4) Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
    5) Power down the router.
    6) Connect one computer by wire to port 1 on the router (NOT to the internet port).
    7) Power up the router and allow it to fully boot (1-2 minutes).
    8) Power up the computer (if the computer has a wireless card, make sure it is off).
    9) Try to ping the router. To do this, click the "Start" button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: "ping 192.168.1.1" (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with "Reply from ... " or "Request timed out." If you see "Reply from ...", your computer has found your router.
    10) Open your browser and point it to 192.168.1.1. This will take you to your router's login page. Leave the user name blank, and in the password field, enter "admin" (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.
    If you get this far without problems, try the setup disk (or setup the router manually, if you prefer), and see if you can get your router setup and working.
    If you cannot get "Reply from ..." in step 9 above, your router is likely dead. Report back with this problem
    If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. Report back with this problem.
    If you need additional help, please state your ISP, the make and model of your modem, your router's firmware version, and the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.
    Please let me know how things turn out for you.

  • Connection through jdbc thin client taking more time than from sqlplus!!!

    Hello All
    Machines A and B
    Applicaion in A is connecting to B(9.2.0.6),db server.
    The schema is so small with few tables and data in each table less than 500 rows
    We are in the process of migrating the Application Schema in B to C[9.2.0.8].
    But the response time is more when the application fetches from C.
    Even while selecting the sysdate from dual.
    The application is using the jdbc thin client for fetching the data.
    When the same sql is executed by (from A to C)
    sqlplus -s user/pass @execute.sql, its gets done in a fraction of a second.
    But when the same is done through the application which uses jdbc thin client, it takes few seconds
    to complete.
    When tried with a small java program that uses classes12.jar (from A to C)
    conn = DriverManager.getConnection(URL,UID,PASS);
                   stop = System.currentTimeMillis();
                   System.out.println("Connection time in milli sec: " + (stop - start));
                   System.out.println();
    ..It was found that creating the connection was taking time.
    But the same is not happening when tired through the sqlplus
    Could someone throw some light into this?
    What could be the reason for jdbc to get slower while establishing connections?
    TIA,
    JJ

    are you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • Suddenly, my MBP Won't get an internet connection through my routers

    I've had my MBP 15" 2.4 for about three months now, and I've never had a problem connecting to the internet. This morning I booted it up, but when I went to get on a wireless connection it would connect, but still say I had no internet. I have two routers in my house - the main one on one side, and my old iMac in my room (my room is too far from the main router to get signal), and the MBP won't get internet from either. However, as you can see by me posting this topic, I'm getting clear internet through the ethernet cable. An error message in connecting to the wireless signal has also appeared a few times. Lastly, my MBP is running very slowly this morning, and there's lots of lag for the track pad.
    At first, I thought it was the main router's problem. But since the iMac's Airport isn't providing internet connection either, it leads me to believe it's something with the MBP. I'm not sure what to do, and I'd greatly appreciate any help I could get.

    Sorry to hear about the signal dropping. I don't have a solution but would like hear if anyone has an idea what's going on.
    My situation is similar. I have an Airport Extreme (n) and the MBP would drop its connection to it randomly. I've gone to pains to change my phone from using any close freq to the wireless.

  • Having a problem getting an internet connection through WRT54G at school

    I recently purchased a WRT54G router to try and set up a wireless network within my dorm. The internet connection is already being provided by the school itself and comes to me through a box that provides the internet/phone line/and cable. The problem I am having is getting the connection to go through my router. When I plug the router into the unit that is giving my computer the connection currently the router recognizes some sort of connection because the "Internet" light is on. I can't follow the directions of installation exactly because I don't have the actual modem in my room. Any suggestions on how to remedy this problem are welcome.

    hi ,
    if your computer is connected to linksys router through the wire in that case what u can do is ..
    you can swich off your modem and linksys router ...after that swich on only your mode and than wait for the lights to get stable once the lights are stable than swich on the linksys router ..and this should fix your issue
    or
    if you are connecting to the linksys router wirelessly than connect any of your computer to the linksys router through wire and than on your computer open a internet page and in the address bar type 192.168.1.1 you will get the linksys setup page make the wireless settings and than seacrch for the wireless network on the othe wireless laptop you should find your network than try connecting to that network once u r connected to that network u will be able to go online ..
    if still the issue remains same let me know  u r network setup
    (Mod Note: Removed Email address.)
    Message Edited by daikunzeon on 08-30-2007 12:50 PM
    Rajiv Kumar

  • Connection through JDBC to dBase files stored on a different UNIX computer

    I would like to access files created in dBase (*.dbf) format and stored directly on the hard disk of a different or remote UNIX OS platform standalone computer which is not connected to any network through a JDBC driver. I need to do this from my home Windows XP system with J2SDK 1.4.2_19 and Tomcat already installed on it. May I know if there is any driver with this feature and how do I go about establishing connection, please?
    Thank you.

    jwenting wrote:
    jschell wrote:
    Ltbay wrote:
    Thank you very much. I am grateful.So you will be using carrier pigeons?The PPPP (point to point pidgeon protocol) is well documented.
    [http://www.faqs.org/rfcs/rfc1149.html] yes, it exists...
    I do hope anyone reading that, realises that it was an April's fool joke.
    Some of the phrases are quite good however:
    The carriers have an intrinsic collision avoidance system, which increases availability.Except for the occassional magnetic field that allows them to fly face first into glass windows.
    An additional property is built-in worm detection and eradication.Yummy!
    With time, the carriers are self-regenerating.With time? Hell they double yearly, at least!
    Audit trails are automatically generated, and can often be found on logs and cable trays.
    on not in logs and cable trays.

  • Cant get my KN8 Neo 4 -F to get an internet connection through cable modem.

    I have a full signal since I checked with my other computer. I just built this system and I cant get a connection to the internet. Seems like the LAN isnt working.

    I dont think it's a mobo problem.
    There is something that went wrong setting up the conn.
    Try disabling firewall... both windows and Nvidia
    Open a command window ant type: ipconfig
    Check what u get.
    Is cable connected from modem to pc?
    Are u using router?
    Let us know plz.

  • How to connect to Pgsql on server through jdbc with java on local machine

    I am developing an application in which I have to connect to my database that is in Pgsql and Pgsql is installed on Linux server. I am going to access that from my java program and the java is here on my local computer(in Linux). All the intranet connections are there. How can I get accees to that database? I have heard of java SSL tunnel. Is this the only solution or there is something else that I can use more easily. Also if I use java installed on th same server as Pgsql then what I will have to do to call the java methods using AMI. Will the java at server be able to make connection to Pgsql more easily? Please tell me about it if you know.
    Thanks

    The closer java and pgsql, the easier it is of course to connect. So the easiest way is to have everything on the same machine. If you are in the same network you will need an IP based network, which is pretty much standard these days. In this case you need to modify the pg_hba.conf file to allow connections from other machines. In both cases you have to start the postmaster with the -i option to enable enable TCP/IP connections.
    Having java and pgsql connected through the internet is a different story, I do not have any experience with that. But you can use ssh to build a tunnel and connect to a local ip address / port from java which is then forwared securely via the internet to the server.
    In all cases you will need the postgres jdbc driver in your classpath. You can find information about postgres and jdbc on the postgres web site.
    good luck

  • Getting error while connecting to AS400 DB through Jdeveloper

    I am using Jdeveloper 11.1.2.4.0 and Connecting AS400 DB using the Driver com.ibm.as400.access.AS400JDBCDriver and I put the jt400.jar in classpath : :\JDeveloper\system11.1.2.4.39.64.36.1\DefaultDomain\lib\jt400.jar.
    Now I am able to test the connection through IDE and it is connected successfuly. But the Issue is I am not able to run the Business Component thtough Application Module and Run the UI pages.
    I am getting the following Error:
    [1112] DBTransactionImpl.initTransaction: Login failed
    [1113] java.sql.SQLException: No suitable driver found for jdbc:as400://host/database
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
    at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
    at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
    at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
    at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
    at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
    at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
    at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
    [1114] A dead application module instance was detected
    [1115] The application module instance was removed from the pool
    [1116] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    [1122] oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
    at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
    at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
    at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
    at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
    at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
    at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
    Caused by: java.sql.SQLException: No suitable driver found for jdbc:as400://host/database
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
    at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
    ... 32 more
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver found for jdbc:as400://host/database
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
    at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
    at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
    at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
    at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
    at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
    at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
    at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
    [1123] JUErrorHandlerDlg.reportException(oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper)
    [1124] UIMessageBundle (language base) being initialized
    18-Jul-2013 10:12:44 oracle.jbo.jbotester.MainFrame exit
    INFO: BC4J Tester exit code(-3)
    Process exited with exit code -3.
    Please explain me why I am getting this error: java.sql.SQLException: No suitable driver found for jdbc:as400://host/database
    Do we really able to connect to As400 through this driver? Please tell me if i am doing wrong configuration like Classpath and wrong jar usage and need some more jar... ?
    This is very very urgent issue..pls reply me asap.

    Hi Vijaya,
    Thanks for your quick reply. After I change my JDBC URL with  : instead of /  jdbc:as400://<hostname>:<Database>
    I am able to run the page and getting the UI in browser. But I am not getting the Databindings ui like table/ form with data.
    <20-Jul-2013 15:41:47 o'clock GST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at 20-Jul-2013 15:41:47 o'clock GST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = 20-Jul-2013 15:41:47 o'clock GST SERVER = DefaultServer MESSAGE = [ServletContext@24114406[app:CasthouseInspectionPOC module:CasthouseInspectionPOC-ViewController-context-root path:/CasthouseInspectionPOC-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    oracle.jbo.JboException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-29000. Error message parameters are {0=java.lang.NoClassDefFoundError, 1=com/ibm/as400/access/AS400JDBCDatabaseMetaData}
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4739)
    Caused By: java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDatabaseMetaData
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
    at weblogic.jdbc.wrapper.DatabaseMetaData_com_ibm_as400_access_AS400JDBCDatabaseMetaData.getDatabaseProductVersion(Unknown Source)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1198)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
    at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
    at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:487)
    at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261)
    at oracle.adf.model.BindingContext.put(BindingContext.java:1318)
    at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:247)
    at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1020)
    at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1645)
    at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1514)
    at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1474)
    at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1150)
    at oracle.adf.model.BindingContext.get(BindingContext.java:1103)
    at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82)
    at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111)
    at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2743)
    at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2791)
    at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115)
    at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:329)
    at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1473)
    at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1603)
    at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2542)
    at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2477)
    at oracle.adf.model.binding.DCIteratorBinding.getAttributeDefs(DCIteratorBinding.java:3319)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.fetchAttrDefs(JUCtrlValueBinding.java:514)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDefs(JUCtrlValueBinding.java:465)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:541)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:531)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding$1JUAttributeDefHintsMap.<init>(JUCtrlValueBinding.java:4104)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeHintsMap(JUCtrlValueBinding.java:4211)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getHints(JUCtrlValueBinding.java:2564)
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:2389)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.internalGet(FacesCtrlAttrsBinding.java:329)
    at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
    at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.getLabel(LabelLayoutRenderer.java:929)
    at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.encodeAll(LabelLayoutRenderer.java:213)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelLabelAndMessageRenderer.encodeAll(PanelLabelAndMessageRenderer.java:96)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1088)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:50)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1604)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1523)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:420)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:208)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1599)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:263)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1275)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)
    at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
    at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)
    at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1035)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:342)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:236)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = WS51403 TXID =  CONTEXTID = b895c2ee669b5f03:200689b7:13ffbe1b109:-8000-0000000000000036 TIMESTAMP = 1374320507333 
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <20-Jul-2013 15:41:50 o'clock GST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in d:\jdeveloper\system11.1.2.4.39.64.36.1\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_5 with a lockout minute period of 1.>
    <20-Jul-2013 15:42:57 o'clock GST> <Error> <JDBC> <BEA-001112> <Test "SELECT 1" set up for pool "As400POCDB" failed with exception: "java.sql.SQLException: [SQL0104] Token <END-OF-STATEMENT> was not valid. Valid tokens: + - AS <IDENTIFIER>.".>
    <20-Jul-2013 15:43:26 o'clock GST> <Error> <JDBC> <BEA-001112> <Test "SELECT 1" set up for pool "AS400DBConn" failed with exception: "java.sql.SQLException: [SQL0104] Token <END-OF-STATEMENT> was not valid. Valid tokens: + - AS <IDENTIFIER>.".>
    Could you please update me what is going wrong here. Please update me any of you come across the same issue?
    This is stopping my entire work and please give me the solution.
    Thanks,
    Raj

  • How to connect informix database from informatica through JDBC instead of ODBC

    How to connect informix database from informatica through JDBC instead of ODBC.

    Hi mate,
    You may get fast reply for this in informatica forums.
    Thanks
    http://mkashu.blogspot.com

  • Error in Test Connection through the DQE for my JDBC system

    Hi,
    I created a JDBC system and I gave DQE properties to connect to the PUBS database.
    I am getting the below error when I did Test Connection through the DQE.
    Test Details:
    The test consists of the following steps:
    1. Checks the existence of a backend admin user ID/password in the system properties.
    2. Checks the existence of a default alias for the system.
    3. Checks the DQE connection.
    Results
    1. Backend admin user ID and password exist in the system properties.
    2. Default alias of the system exists.
    3. DQE connection failed. The system is currently being loaded. Please wait and try again.
    I re-entered admin id and password in DQE properties as per OSS note 761753.
    Still I am getting the same error.
    Thanks,
    Ramakrishna

    Vadim
    I did all steps mentioned by you.
    Still my issue is not resolved...
    Thanks,
    Ramakrishna

  • Getting Sql Exception while using JDBC/ODBC to Excel 2007 through Java

    Iam getting the SQLexception by trying to connect using JDBC/ODBC to Excel 2007 through Java. Any Guys can tell abt this problem. java.sql.SQLException: [Microsoft][ODBC Excel Driver] External table is not in the expected format.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at InteractWithExcel.main(InteractWithExcel.java:13)

    From [Google Groups|http://groups.google.co.uk/group/sybase.public.powerbuilder.general/browse_frm/thread/97fbab02a5e6d45b]
    To use Excel as a datasource, you need to defined a named range in the spreadsheet, with the first row containing the column names.

  • HT1430 I CANT GET my IPad to connect to my WiFi and now I can't get it to go back so I can connect through iTunes- any ideas??

    cannot get iPad to connect to WiFi because I can't find the password-and now i can't get the iPad to reset to be able to connect through iTunes--help

    cannot get iPad to connect to WiFi because I can't find the password-and now i can't get the iPad to reset to be able to connect through iTunes--help

  • HT2250 I have been able to get my MacBook Pro to print wirelessly through my Airport device. How do I make it so other computers (non-Mac) can also print wirelessly as well? They are able to connect through my wireless network but can't print.

    I have been able to get my MacBook Pro to print wirelessly through my Airport device. How do I make it so other computers (non-Mac) can also print wirelessly as well? They are able to connect through my wireless network but can't print.

    Well, you could install the drivers to the wireless printer in you other computers.
    blue apple > System Preferences... > sharing
    check printer sharing.

  • Getting Creative Zen player to connect through amarok [SOLVED]

    Edited 12-27 to include new info
    I'm trying to get myCreative Zen player to connect through amarok but am having some problems. After some looking around I figured out the libmtp in the extra repository doesn't support this player, but the newest versions do. I made a new package for libmtp-0.2.4 and installed it since there's been some tweaks that affect this player since 0.2.2 which is in testing. I also had to recompile amarok since one of libs changed a name with the new libmtp. The instructions from libmtp mentioned udev rules needed to be defined, which was done by copying a file from the source code into /etc/udev/rules.d. That file (minus the parts relating to other players, which is pretty much the same as here):
    # UDEV-style hotplug map for libmtp
    # Put this file in /etc/udev/rules.d
    ACTION!="add", GOTO="libmtp_rules_end"
    ATTR{dev}!="?*", GOTO="libmtp_rules_end"
    SUBSYSTEM=="usb", GOTO="libmtp_usb_rules"
    # The following thing will be deprecated when older kernels are phased out.
    SUBSYSTEM=="usb_device", GOTO="libmtp_usb_device_rules"
    GOTO="libmtp_rules_end"
    LABEL="libmtp_usb_rules"
    # Creative ZEN 8GB
    ATTR{idVendor}=="041e", ATTR{idProduct}=="4157", SYMLINK+="libmtp-%k", MODE="666"
    GOTO="libmtp_rules_end"
    LABEL="libmtp_usb_device_rules"
    # Creative ZEN 8GB
    ATTRS{idVendor}=="041e", ATTRS{idProduct}=="4157", SYMLINK+="libmtp-%k", MODE="666"
    GOTO="libmtp_rules_end"
    LABEL="libmtp_rules_end"
    When I plug the player to my usb port dmesg gives
    usb 5-1: new high speed USB device using ehci_hcd and address 8
    usb 5-1: configuration #1 chosen from 1 choice
    As my normal user amarok doesn't seem to recognize anything, and mtp-detect gives:
    libmtp version: 0.2.4
    Attempting to connect device(s)
    usb_claim_interface(): Operation not permitted
    LIBMTP PANIC: Unable to initialize device 1
    LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1561
    Detect: There has been an error connecting. Exiting
    As root mtp-detect gives me a bunch of output that seems like it's doing what it should, also while it's spitting this out the screen on the player changes to say it's docked, which wasn't happening as the normal user. This makes me think it's some permissions issue. I did find things from google telling me that sometimes the user needs to be added to a certain group to use libmtp, though it seemed somewhat distro dependent. My main user is in the following groups: dbus hal network audio optical storage scanner camera users thinkpad
    However I don't think my problems are solely permission related, since even as root amarok won't recognize the player. I can use gnomad2 as root, which mostly works, though it crashes when I try and close gnomad after adding music and the player thinks it's still docked even after unplugging it. I had to use a pin to reset it just to turn it off. When I ran it from a console I got the following output at the end after the crash
    PTP: Closing session
    ERROR: Could not close session!
    inep: usb_get_endpoint_status(): Protocol error
    outep: usb_get_endpoint_status(): No such device
    usb_clear_halt() on IN endpoint: No such device
    usb_clear_halt() on OUT endpoint: No such device
    usb_clear_halt() on INTERRUPT endpoint: No such device
    The application 'gnomad2' lost its connection to the display :0.0;
    most likely the X server was shut down or you killed/destroyed
    the application.
    Any suggestions for where to go from here?
    Last edited by mcmillan (2008-01-11 05:38:14)

    I tried uploading onto my school website, but it doesn't seem accessable from there. However I just modified the version number from the regular Pkgbuild file from abs. What I have is:
    # $Id: PKGBUILD,v 1.8 2007/05/20 19:11:05 travis Exp $
    # Maintainer: damir <[email protected]>
    #Contributor: Kevin Edmonds <[email protected]>
    pkgname=libmtp
    pkgver=0.2.4
    pkgrel=1
    pkgdesc="library implementation of the Media Transfer Protocol"
    arch=("i686" "x86_64")
    url="http://libmtp.sourceforge.net"
    license=("LGPL")
    depends=("libusb")
    source=(http://easynews.dl.sourceforge.net/sourceforge/libmtp/$pkgname-$pkgver.tar.gz)
    options=('!libtool')
    #md5sums=('597b62d994d9491531b9e67190f6cfe7')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
    If you still have trouble building it let me know some other way than that I can send you the package.
    I've been meaning to post an update about my issues. I've figured out that when I connect the player it creates device nodes with the root group.  Some have permissions set to 666, which seems to fit with the udev rules I posted. But some of them are only rw for owner and group, others only have read permissions. As a test I tried changing the permissions by hand to 666, and I can use gnomad as my regular user, though it's buggy and seems to crash randomly (not just when I transfer files like I originally thought). I haven't been able to test what amarok does, since for some reason it stopped working this weekend and I haven't had a chance to figure out what happened. It seems there some problem with the udev rules, but I don't know much about how that works to figure out what's going wrong.

Maybe you are looking for

  • MTP USB Device did not install

    New PC, Windows 7, Office 2010, My Blackberry desktop software does not see my 9530 Storm  I've downloaded new desktop software, but keep getting an error that my MTP USB device did not install when I connect my 9530 to the USB Port.

  • Mapping error during runtime

    Hi, I have scenario like JDBC sender and file receiver. I am able to poll with JDBC sender adapter and message has success in adapter engine. but i am getting following error while mapping runtime.In sxmb_moni status error during mapping runtime. Bel

  • Limiting records in a named query

    Hello, I can retrieve all the records using the following named query: <named-query name="emploee.findemployees"> <query>select e from employee e </query> </named-query> Can somebody help me how i can retrieve only the first 5 records using the named

  • How can i apply gradient...

    I have a rectangular shape movie Clip (Size :130px X40 px). I want to apply linear gradient on it using action script. Can anybody help me how can I apply gradient on it. Note: This movie clip is made manually. Not by using createEmptyMovieClip metho

  • Which Mac Mini

    I think that a Mac Mini may be best for me.  On another thread I ID'd a system under $1000 that looks fine.  But, I have quesitons. Sometimes it may be best to buy a refurb, as there is no educational discount, etc. for a mini anyway.  I thought an i