java - 无法在两个方法内传递 try catch block 返回值

标签 java sql rest variables methods

这是代码:

<小时/>

This is the code

On top of the question you can see the code. 
This is the first method (cell_data()).It's got the oracle db cell value.
I want to pass the cell_data() return value to  PUTSuccessful_2() method.
Always display the below result.

但结果是这样的:更新的列单元格:null

我正在使用 Maven 测试来运行此代码。如果我添加一个主方法数据库值是正确的。

**This is the result**


Updated column cell: null

最佳答案

这里有两种可能性。 1. 你遇到了异常(exception)。 catch block 内的 Log 语句可以证明这一点。 2.表中M150_DESCRIPTION列为空

关于java - 无法在两个方法内传递 try catch block 返回值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59132485/

相关文章:

mysql - MariaDB PCRE 给出错误 1644。我错过了什么?

php - Zend Framework 2 限制 REST API 只接受 application/json 或 application/xml

web-services - 关于如何尽可能有效地处理集契约(Contract)时仍符合 REST 原则的 REST API 问题

java - Reflect 是否能够加载外部类/jar 作为插件

SQL按字母顺序获取结果范围

java - 有没有办法使用Java将 "button"添加到Windows通知区域

php - mysql 创建一个新行而不是更新现有行

java - 为不同的客户提供安心的服务

java - 如何制作一个列表,每次在 Android Studio 中输入号码并按“提交”时都会添加电话号码?

java - 与 double 相当