88fantasy opened a new issue, #4494: URL: https://github.com/apache/streampark/issues/4494
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues referencing `k8sImagePullPolicy`. ### Java Version Temurin 21.0.11 (console), built with Microsoft OpenJDK 11.0.28 ### Scala Version 2.12.x ### StreamPark Version 3.0.0-SNAPSHOT (`dev` branch, commit `9ddda84c9`) ### Flink Version N/A (Spark) ### Deploy mode N/A (creation fails before any submission) ### What happened Creating a Spark application from the UI always returns HTTP 500 — `POST /spark/app/create` throws before it reaches the database. `SparkApplication.k8sImagePullPolicy` is a primitive `int`, while `SparkAppCreateRequest` declares it as `Integer` and the Spark frontend never sends the field at all (`api/spark/app.type.ts:62` declares it optional and nothing ever assigns it). `BeanUtils.copyProperties` therefore unboxes `null` into the primitive and throws. The column itself is nullable (`k8s_image_pull_policy tinyint default 1`), so the entity field should be `Integer` to match. ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
