java.sql.SQLException: A connection could not be obtained for driver class "org.apache.derby.jdbc.Dr iver30" and URL "jdbc:derby://localhost:9001/journaldb;create=true". You may have specified an inva lid URL.

Oracle Community | 3004 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Derby 10.1.1.0 connection problem

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: A connection could not be obtained for driver class "org.apache.derby.jdbc.Dr iver30" and URL "jdbc:derby://localhost:9001/journaldb;create=true". You may have specified an inva lid URL.
  2. 0

    Driver not used in Kodo

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: A connection could not be obtained for driver class "org.apache.derby.jdbc.Driver30" and URL "jdbc:derby:net://localhost:9001/journaldb;create=true". You may have specified an invalid URL.
  3. 0

    java.sql.SQLException: No value specified for parameter 1解决办法_IT知识问答_希赛网

    educity.cn | 2 years ago
    java.sql.SQLException: No value specified for parameter 1 代码如下 public boolean login(UserInfo user)throws Exception{ //用户登录 boolean flag=false; int userNo=Integer.parseInt(user.getUserNo()); String password=user.getPassword(); //测试是否从现在的user对象中取到了值 System.out.println(userNo+"我是USER对象的userNo"); System.out.println(password+"我是USER对象的password"); DatabaseConnection dbc=new DatabaseConnection();//取得数据库连接和关闭对象; try{ String sql="SELECT userNo FROM userInfo where userNo= and password= "; this.conn=dbc.getConnection(); this.pst=conn.prepareStatement(sql); //this.pst.setInt(1, userNo);//给sql中参数赋值 this.pst.setLong(1, userNo); this.pst.setString(2, password); ResultSet rs=pst.executeQuery(); if(rs.next()){//传入用户账号和对应的密码都存在时为真 flag=true; System.out.println(rs.getString(userNo)+"我是从数据库里取出来的"); System.out.print(flag+"测试flag");//测试flag,看是否进入了if里面,true则进入了 rs.close(); } }catch(Exception e){ e.printStackTrace(); }finally{ if(this.pst!=null){ this.pst.close(); } this.conn.close(); } return flag; } 报的错误信息如:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.sql.SQLException: No suitable driver - Toolbox for IT Groups

    ittoolbox.com | 9 months ago
    java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager .java:545) at java.sql.DriverManager.getConnection(DriverManager .java:171) at com.stc.sql.framework.jdbc.DBConnectionFactory.cre ateConnection(DBConnectionFactory.java:372) at com.stc.sql.framework.jdbc.DBConnectionFactory.get Connection(DBConnectionFactory.java:281) at com.stc.etl.engine.impl.SimpleTask.getConnection(S impleTask.java:254) at com.stc.etl.engine.impl.Extractor.getSelectData(Ex tractor.java:376) at com.stc.etl.engine.impl.Extractor.process(Extracto r.java:190) at com.stc.etl.engine.impl.ETLTaskThread.run(ETLTaskT hread.java:147)
  6. 0

    1 more error - Java Programming Help - KnowCoding.com

    knowcoding.com | 2 years ago
    java.sql.SQLException: Protocol violation at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:179) at oracle.jdbc.dbaccess.DBError.check_error(DBError.j ava:1160) at oracle.jdbc.ttc7.Ocommoncall.receive(Ocommoncall.j ava:149) at oracle.jdbc.ttc7.TTC7Protocol.rollback(TTC7Protoco l.java:488) at oracle.jdbc.driver.OracleConnection.rollback(Oracl eConnection.java:1412) at net.sf.hibernate.transaction.JDBCTransaction.rollb ack(JDBCTransaction.java:86) at com.azure.spark.database.hibernate.util.HibernateU til.doSessionWork(HibernateUtil.java:90) at com.azure.spark.database.hibernate.util.HibernateU til.doSessionWork(HibernateUtil.java:59) at com.azure.spark.database.hibernate.util.HibernateU til.get(HibernateUtil.java:569) at com.azure.spark.database.hibernate.util.HibernateS ession.get(HibernateSession.java:340) at com.azure.spark.taskcontroller.TaskControllerCompo nent.taskCompleted(TaskControllerComponent.java:11 54) at com.azure.spark.taskcontroller.TaskControllerCompo nent.onTaskEvent(TaskControllerComponent.java:1111 ) at com.azure.spark.taskcontroller.tasks.AbstractTaskC omponent.run(AbstractTaskComponent.java:354)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.sql.SQLException

      A connection could not be obtained for driver class "org.apache.derby.jdbc.Dr iver30" and URL "jdbc:derby://localhost:9001/journaldb;create=true". You may have specified an inva lid URL.

      at com.solarmetric.jdbc.PoolingDataSource.newConnection()
    2. com.solarmetric.jdbc
      DelegatingDataSource.getConnection
      1. com.solarmetric.jdbc.PoolingDataSource.newConnection(PoolingDataSource.java:350)
      2. com.solarmetric.jdbc.ConnectionPoolImpl.makeConnection(ConnectionPoolImpl.java:397)
      3. com.solarmetric.jdbc.ConnectionPoolImpl.getConnection(ConnectionPoolImpl.java:275)
      4. com.solarmetric.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:257)
      5. com.solarmetric.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:131)
      6. com.solarmetric.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:81)
      7. com.solarmetric.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:131)
      7 frames
    3. kodo.jdbc.schema
      LazySchemaFactory.findTable
      1. kodo.jdbc.schema.DataSourceFactory$DefaultsDataSource.getConnection(DataSourceFactory.java:329)
      2. kodo.jdbc.schema.LazySchemaFactory.findTable(LazySchemaFactory.java:129)
      2 frames
    4. kodo.jdbc.meta
      MappingRepository.getMetaData
      1. kodo.jdbc.meta.BaseClassMapping.fromMappingInfo(BaseClassMapping.java:168)
      2. kodo.jdbc.meta.RuntimeMappingProvider.getMapping(RuntimeMappingProvider.java:59)
      3. kodo.jdbc.meta.MappingRepository.getMappingInternal(MappingRepository.java:393)
      4. kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:348)
      5. kodo.jdbc.meta.MappingRepository.getMappingInternal(MappingRepository.java:376)
      6. kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:348)
      7. kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:177)
      8. kodo.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:165)
      8 frames
    5. kodo.runtime
      PersistenceManagerImpl.makePersistent
      1. kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:2423)
      2. kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:2375)
      2 frames
    6. com.scancoin.system
      EventService.addEvent
      1. com.scancoin.system.database.KodoDatabaseHelper.store(KodoDatabaseHelper.java:98)
      2. com.scancoin.system.database.PersistenceService.store(PersistenceService.java:176)
      3. com.scancoin.system.database.PersistenceService.handleEvent(PersistenceService.java:148)
      4. com.scancoin.system.event.EventService.fireEvent(EventService.java:102)
      5. com.scancoin.system.event.EventService.addEvent(EventService.java:80)
      5 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    8. net.dpml.activation
      ApplianceInvocationHandler.invoke
      1. net.dpml.activation.metro.ApplianceInvocationHandler.invoke(ApplianceInvocationHandler.java:113)
      1 frame
    9. Unknown
      $Proxy5.addEvent
      1. $Proxy5.addEvent(Unknown Source)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    11. net.dpml.activation
      BlockInvocationHandler.invoke
      1. net.dpml.activation.impl.BlockInvocationHandler.invoke(BlockInvocationHandler.java:109)
      1 frame
    12. Unknown
      $Proxy2.addEvent
      1. $Proxy2.addEvent(Unknown Source)
      1 frame
    13. com.scancoin.system
      DeviceManager.initialize
      1. com.scancoin.system.device.DeviceManager.initialize(DeviceManager.java:117)
      1 frame
    14. net.dpml.activation
      DefaultRuntime.commission
      1. net.dpml.activation.metro.ContainerUtil.initialize(ContainerUtil.java:213)
      2. net.dpml.activation.metro.DefaultComponentFactory.handleIncarnate(DefaultComponentFactoryjava:268)
      3. net.dpml.activation.metro.DefaultComponentFactory.incarnate(DefaultComponentFactory.java:135)
      4. net.dpml.activation.metro.SingletonLifestyleManager.refreshReference(SingletonLifestyleManager.java:142)
      5. net.dpml.activation.metro.SingletonLifestyleManager.handleResolve(SingletonLifestyleManager.java:92)
      6. net.dpml.activation.metro.SingletonLifestyleManager.commission(SingletonLifestyleManager.java:59)
      7. net.dpml.activation.metro.DefaultAppliance.commission(DefaultAppliance.java:95)
      8. net.dpml.activation.impl.DefaultRuntime.commission(DefaultRuntime.java:107)
      8 frames
    15. net.dpml.composition
      Commissioner.run
      1. net.dpml.composition.model.impl.DefaultDeploymentModel.commission(DefaultDeploymentModel.java:110)
      2. net.dpml.composition.model.impl.DefaultComponentModel.commission(DefaultComponentModel.java:259)
      3. net.dpml.composition.model.impl.Commissioner.run(Commissioner.java:194)
      3 frames
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:534)
      1 frame