Giter VIP home page Giter VIP logo

Comments (4)

cppwfs avatar cppwfs commented on July 2, 2024

Hello,
I created a sample task from start.spring.io that used Spring Cloud Task on a DB2 (ibmcom/db2:latest) instance but was unable to reproduce . Can you provide a sample project the reproduces the problem?

from spring-cloud-task.

Cuball0 avatar Cuball0 commented on July 2, 2024

Hello,

I'm not sure what's the best way to create a test to reproduce it.
I'll try to give a bit more context when and how the problem occurs:

We register our Task in SCDF server (this application is also using DB2). The Task is registered as boot3 application, and thus using the BOOT3_ schema tables.
Then the task is launched via the SCDF (via Inteface / REST / CLI)
We are using Kubernetes as Target platform the run the Task (should not really matter I guess)
By launching from SCDF a new record is inserted in the table BOOT3_TASK_EXECUTION by the server before running our task (this record does not yet have a value in the START_TIME collumn)
The id of this new record is passed as argument to the Sping Cloud Task application (--spring.cloud.task.executionid=XXX')
When the Task is started it's trying to load the record from the database associated with this executionId
(org.springframework.cloud.task.repository.dao.JdbcTaskExecutionDao.getTaskExecution)

This is where it fails, the getTaskExcetion throws an exception in the mapRow function.

Caused by: java.lang.NullPointerException: Cannot invoke "java.sql.Timestamp.toLocalDateTime()" because "<local4>" is null
at com.ibm.db2.jcc.am.ResultSet.getObject(ResultSet.java:2020) ~[jcc-11.5.9.0.jar:na]
at com.ibm.db2.jcc.am.ResultSet.getObject(ResultSet.java:2045) ~[jcc-11.5.9.0.jar:na]
at com.zaxxer.hikari.pool.HikariProxyResultSet.getObject(HikariProxyResultSet.java) ~[HikariCP-5.0.1.jar:na]
at org.springframework.cloud.task.repository.dao.JdbcTaskExecutionDao$TaskExecutionRowMapper.mapRow(JdbcTaskExecutionDao.java:621) ~[spring-cloud-task-core-3.1.1.jar:3.1.1]

from spring-cloud-task.

cppwfs avatar cppwfs commented on July 2, 2024

Thank you for the additional notes. They were helpful!

from spring-cloud-task.

cppwfs avatar cppwfs commented on July 2, 2024

@Cuball0 Thanks for reporting the issue!

from spring-cloud-task.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.