lishiyucn edited a comment on issue #5491:
URL: 
https://github.com/apache/dolphinscheduler/issues/5491#issuecomment-876086461


   I add the https://github.com/apache/dolphinscheduler/issues/5491 code to 
dolphin1.3.6 version ,
   and rebuid project and package project,
   I get the java.lang.NullPointerException problem when use the new package.
   
   the log is:
   
   `
   Caused by: org.apache.ibatis.exceptions.PersistenceException:
   Error querying database.  Cause: java.lang.NullPointerException
   The error may exist in class path resource 
[org/apache/dolphinscheduler/dao/mapper/CommandMapper.xml]
   The error may involve 
org.apache.dolphinscheduler.dao.mapper.CommandMapper.getOneToRun
   The error occurred while executing a query
   Cause: java.lang.NullPointerException
           at 
org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
           at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
           at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
           at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
           at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)
           12 common frames omitted
   Caused by: java.lang.NullPointerException: null
           at 
com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1583)
           at 
com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1326)
           at 
com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1306)
           at 
com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1296)
           at 
com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:109)
           at 
org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158)
           at 
org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116)
           at 
org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
           at 
org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80)
           at 
org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)
           at 
org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336)
           at 
com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:93)
           at 
com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:66)
           at 
org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
           at 
org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
           at 
org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:136)
           at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
           ... 18 common frames omitted
   [ERROR] 2021-07-08 10:02:00.788 
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService:[131] - 
master scheduler thread error
   org.mybatis.spring.MyBatisSystemException: nested exception is 
org.apache.ibatis.exceptions.PersistenceException:
   Error querying database.  Cause: java.lang.NullPointerException
   The error may exist in class path resource 
[org/apache/dolphinscheduler/dao/mapper/CommandMapper.xml]
   The error may involve 
org.apache.dolphinscheduler.dao.mapper.CommandMapper.getOneToRun
   The error occurred while executing a query
   Cause: java.lang.NullPointerException
           at 
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:78)
           at 
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
           at com.sun.proxy.$Proxy84.selectOne(Unknown Source)
           at 
org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:159)
           at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:89)
           at 
com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61)
           at com.sun.proxy.$Proxy92.getOneToRun(Unknown Source)
           at 
org.apache.dolphinscheduler.service.process.ProcessService.findOneCommand(ProcessService.java:189)
           at 
org.apache.dolphinscheduler.service.process.ProcessService$$FastClassBySpringCGLIB$$ed138739.invoke(<generated>)
           at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
           at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
           at 
org.apache.dolphinscheduler.service.process.ProcessService$$EnhancerBySpringCGLIB$$1442e3e8.findOneCommand(<generated>)
           at 
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService.scheduleProcess(MasterSchedulerService.java:143)
           at 
org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService.run(MasterSchedulerService.java:128)
   Caused by: org.apache.ibatis.exceptions.PersistenceException:
   Error querying database.  Cause: java.lang.NullPointerException
   The error may exist in class path resource 
[org/apache/dolphinscheduler/dao/mapper/CommandMapper.xml]
   The error may involve 
org.apache.dolphinscheduler.dao.mapper.CommandMapper.getOneToRun
   The error occurred while executing a query
   Cause: java.lang.NullPointerException
   `
   
   @ruanwenjun 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to