NutzCN Logo
问答 oracle 使用入门到放弃errorCode 1017, state 72000 java.sql.SQLException: ORA-01017:
发布于 1566天前 作者 Hamming 6820 次浏览 复制 上一个帖子 下一个帖子
标签:

oracle 使用入门到放弃errorCode 1017, state 72000 java.sql.SQLException: ORA-01017: invalid username/password; logon denied

[ERROR] 21:46:25.142 com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2717) - create connection SQLException, url: jdbc:oracle:thin:@127.0.0.1:1521:XE, errorCode 1017, state 72000
java.sql.SQLException: ORA-01017: invalid username/password; logon denied


酱紫配置 我用IDEA 数据库连接工具 都能连上 为什么nutz 就不行了

driver=oracle.jdbc.OracleDriver
jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
username=teacher
password=123456
9 回复

maven

        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>12.1.0.1-atlassian-hosted</version>
            <!-- <scope>test</scope> -->
        </dependency>

docker oracleinanutshell/oracle-xe-11g

酱紫尝试 还是不行 下载的ojdbc6,不行 ojdbc5 还是不行

jdbc.url=jdbc:oracle:thin:@localhost:1521:XE
username=teacher
password=123456

酱紫 还是不行 怀疑 druid有问题

jdbc.url=jdbc:oracle:thin:@//localhost:1521/XE
username=system
password=oracle

jdbc.type=simple
hikari
druid
都试了 还是不行

自己写jdbc 可以正常运行 输出

package io.nutz.gen.utils;

import java.sql.*;

/**
 * @author Haiming
 * @date 2020/8/11 7:40 PM
 */
public class jdbc {
    String dbUrl = "jdbc:oracle:thin:@127.0.0.1:1521:XE";
    String theUser = "teacher";
    String thePw = "123456";
    Connection c = null;
    Statement conn;
    ResultSet rs = null;

    public jdbc() {
        try {
            Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
            c = DriverManager.getConnection(dbUrl, theUser, thePw);
            conn = c.createStatement();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public boolean executeUpdate(String sql) {
        try {
            conn.executeUpdate(sql);
            return true;
        } catch (SQLException e) {
            e.printStackTrace();
            return false;
        }
    }

    public ResultSet executeQuery(String sql) {
        rs = null;
        try {
            rs = conn.executeQuery(sql);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return rs;
    }

    public void close() {
        try {
            conn.close();
            c.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        ResultSet rs;
        jdbc conn = new jdbc();
        rs = conn.executeQuery("select * FROM NUTZSITE.TEST");
        try {
            while (rs.next()) {
                System.out.println(rs.getString("id")+"--"+rs.getString("name"));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Disconnected from the target VM, address: '127.0.0.1:49757', transport: 'socket'
1--1
2--2

Process finished with exit code 0

仔细看 日志 有一条

[DEBUG] 20:04:04.487 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'dataSource' to [app] 
[DEBUG] 20:04:04.487 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dataSourceStarter'<>
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
[WARN ] 20:04:04.659 org.nutz.dao.impl.SimpleDataSource.<init>(SimpleDataSource.java:34) - SimpleDataSource is NOT a Connection Pool, So it is slow but safe for debug/study

starte-jdbc读配置的前缀是jdbc.

#jdbc.driver=oracle.jdbc.OracleDriver
jdbc.url=jdbc:oracle:thin:@127.0.0.1:1521:XE
jdbc.username=teacher
jdbc.password=123456

jdbc.type=simple
异常日志 输出是MySQL
应该是driver出错了 nutzboot 无法指定

[DEBUG] 20:15:39.571 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'userServiceImpl'<interface io.nutz.nutzsite.module.sys.services.UserService>
[DEBUG] 20:15:39.572 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=userServiceImpl
[DEBUG] 20:15:39.572 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(userServiceImpl) in AnnotationIocLoader(packages=[io.nutz.nutzsite])
[DEBUG] 20:15:39.572 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'userServiceImpl'<interface io.nutz.nutzsite.module.sys.services.UserService>
[DEBUG] 20:15:39.572 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'userServiceImpl' to [app] 
[DEBUG] 20:15:39.573 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dao'<>
[DEBUG] 20:15:39.574 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=dao
[DEBUG] 20:15:39.574 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dao) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 20:15:39.574 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'dao'<>
[DEBUG] 20:15:39.575 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'dao' to [app] 
[DEBUG] 20:15:39.575 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dataSource'<interface javax.sql.DataSource>
[DEBUG] 20:15:39.575 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=dataSource
[DEBUG] 20:15:39.575 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dataSource) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 20:15:39.576 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'dataSource'<interface javax.sql.DataSource>
[DEBUG] 20:15:39.576 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'dataSource' to [app] 
[DEBUG] 20:15:39.577 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dataSourceStarter'<>
[WARN ] 20:15:39.700 org.nutz.dao.impl.SimpleDataSource.<init>(SimpleDataSource.java:34) - SimpleDataSource is NOT a Connection Pool, So it is slow but safe for debug/study
[DEBUG] 20:15:39.700 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'sqlManager'<interface org.nutz.dao.SqlManager>
[DEBUG] 20:15:39.701 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=sqlManager
[DEBUG] 20:15:39.701 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(sqlManager) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 20:15:39.701 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'sqlManager'<interface org.nutz.dao.SqlManager>
[DEBUG] 20:15:39.702 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'sqlManager' to [app] 
[DEBUG] 20:15:39.702 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'nutDaoStarter'<>
[DEBUG] 20:15:39.718 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.dao.impl.NutDao without AOP
[DEBUG] 20:15:39.718 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dataSource'<interface javax.sql.DataSource>
[DEBUG] 20:15:39.719 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'sqlManager'<interface org.nutz.dao.SqlManager>
[DEBUG] 20:15:39.719 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'nutDaoStarter'<>
[DEBUG] 20:15:39.882 org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:90) - Jdbcs init complete
[INFO ] 20:15:39.882 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:103) - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
[DEBUG] 20:15:40.175 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'dao' from [app] 
[DEBUG] 20:15:40.176 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'userServiceImpl' from [app] 
[DEBUG] 20:15:40.177 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'shiroRealm' from [app] 
[DEBUG] 20:15:40.178 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:85) - Remove object 'shiroWebSecurityManager' from [app] 
[ERROR] 20:15:40.178 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:146) - Shiro environment initialization failed
org.nutz.ioc.IocException: IocBean[shiroWebSecurityManager] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.boot.starter.shiro.NbResourceBasedWebEnvironment.createWebSecurityManager(NbResourceBasedWebEnvironment.java:91)
	at org.nutz.boot.starter.shiro.NbResourceBasedWebEnvironment.configure(NbResourceBasedWebEnvironment.java:45)
	at org.nutz.boot.starter.shiro.NbResourceBasedWebEnvironment.init(NbResourceBasedWebEnvironment.java:39)
	at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
	at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
	at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)
	at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133)
	at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
	at org.nutz.boot.starter.shiro.NbShiroEnvironmentLoaderListener.contextInitialized(NbShiroEnvironmentLoaderListener.java:40)
	at org.nutz.boot.starter.servlet3.NbServletContextListener.lambda$contextInitialized$1(NbServletContextListener.java:119)
	at java.util.ArrayList.forEach(ArrayList.java:1257)
	at org.nutz.boot.starter.servlet3.NbServletContextListener.contextInitialized(NbServletContextListener.java:114)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:929)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:554)
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:888)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:357)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1443)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1407)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:821)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:276)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:407)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:106)
	at org.eclipse.jetty.server.Server.doStart(Server.java:371)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:160)
	at org.nutz.boot.AppContext.startServers(AppContext.java:310)
	at org.nutz.boot.NbApp.execute(NbApp.java:210)
	at org.nutz.boot.NbApp.run(NbApp.java:182)
	at io.nutz.nutzsite.MainLauncher.main(MainLauncher.java:72)
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.shiro.ShiroEnvStarter].getWebSecurityManager() by args:
 
For the reason: ORA-01017: invalid username/password; logon denied

	at org.nutz.lang.Invoking.invoke(Invoking.java:195)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1135)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	... 35 more
Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon denied

	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)
	at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:675)
	at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:448)
	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513)
	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)
	at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:383)
	at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:776)
	at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:432)
	at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:553)
	at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:254)
	at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:270)
	at org.nutz.dao.impl.SimpleDataSource.getConnection(SimpleDataSource.java:45)
	at org.nutz.trans.Trans.getConnectionAuto(Trans.java:263)
	at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:106)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:189)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:180)
	at org.nutz.dao.impl.NutDao.<init>(NutDao.java:108)
	at org.nutz.dao.impl.NutDao.<init>(NutDao.java:112)
	at org.nutz.boot.starter.nutz.dao.NutDaoStarter.getDao(NutDaoStarter.java:165)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$DefaultInvoker.invoke(Invoking.java:47)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1135)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.boot.starter.shiro.ShiroEnvStarter.getWebSecurityManager(ShiroEnvStarter.java:148)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	... 39 more
[WARN ] 20:15:40.182 org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:533) - Failed startup of context o.e.j.w.WebAppContext@11eed657{/,[file:///Users/kricss/IdeaProjects/NutzSite/target/classes/static/, jar:file:/Users/kricss/.m2/repository/org/nutz/nutzboot-starter-swagger/2.3.8.v20191031/nutzboot-starter-swagger-2.3.8.v20191031.jar!/static/],UNAVAILABLE}
org.nutz.ioc.IocException: IocBean[shiroWebSecurityManager] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.boot.starter.shiro.NbResourceBasedWebEnvironment.createWebSecurityManager(NbResourceBasedWebEnvironment.java:91)
	at org.nutz.boot.starter.shiro.NbResourceBasedWebEnvironment.configure(NbResourceBasedWebEnvironment.java:45)
	at org.nutz.boot.starter.shiro.NbResourceBasedWebEnvironment.init(NbResourceBasedWebEnvironment.java:39)
	at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
	at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
	at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)
	at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133)
	at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
	at org.nutz.boot.starter.shiro.NbShiroEnvironmentLoaderListener.contextInitialized(NbShiroEnvironmentLoaderListener.java:40)
	at org.nutz.boot.starter.servlet3.NbServletContextListener.lambda$contextInitialized$1(NbServletContextListener.java:119)
	at java.util.ArrayList.forEach(ArrayList.java:1257)
	at org.nutz.boot.starter.servlet3.NbServletContextListener.contextInitialized(NbServletContextListener.java:114)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:929)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:554)
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:888)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:357)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1443)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1407)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:821)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:276)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:407)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:106)
	at org.eclipse.jetty.server.Server.doStart(Server.java:371)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:160)
	at org.nutz.boot.AppContext.startServers(AppContext.java:310)
	at org.nutz.boot.NbApp.execute(NbApp.java:210)
	at org.nutz.boot.NbApp.run(NbApp.java:182)
	at io.nutz.nutzsite.MainLauncher.main(MainLauncher.java:72)
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.shiro.ShiroEnvStarter].getWebSecurityManager() by args:
 
For the reason: ORA-01017: invalid username/password; logon denied

	at org.nutz.lang.Invoking.invoke(Invoking.java:195)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1135)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	... 35 more
Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon denied

	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)
	at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:675)
	at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:448)
	at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513)
	at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)
	at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:383)
	at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:776)
	at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:432)
	at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:553)
	at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:254)
	at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:270)
	at org.nutz.dao.impl.SimpleDataSource.getConnection(SimpleDataSource.java:45)
	at org.nutz.trans.Trans.getConnectionAuto(Trans.java:263)
	at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:106)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:189)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:180)
	at org.nutz.dao.impl.NutDao.<init>(NutDao.java:108)
	at org.nutz.dao.impl.NutDao.<init>(NutDao.java:112)
	at org.nutz.boot.starter.nutz.dao.NutDaoStarter.getDao(NutDaoStarter.java:165)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$DefaultInvoker.invoke(Invoking.java:47)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1135)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.boot.starter.shiro.ShiroEnvStarter.getWebSecurityManager(ShiroEnvStarter.java:148)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	... 39 more
[INFO ] 20:15:40.215 org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:330) - Started ServerConnector@294bdeb4{HTTP/1.1,[http/1.1]}{0.0.0.0:8086}
[INFO ] 20:15:40.216 org.eclipse.jetty.server.Server.doStart(Server.java:399) - Started @4670ms
[DEBUG] 20:15:40.216 org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:162) - Jetty monitor props:
----------------------------------------------
http.port                                : 8086
http.host                                : 0.0.0.0
http.idleTimeout                         : 300000
https.enable                             : false
welcome_files                            : index.html,index.htm,index.do
maxFormContentSize                       : 1073741824
----------------------------------------------

唉 尴尬
感谢兽总指出

添加回复
请先登陆
回到顶部