Tag Archives: java

How to Fix char cannot be dereferenced Error

error: char cannot be dereferenced
Error code

	if(row.charAt(m).equals('0')){
		matrix[i][j]=0;
	}

Where the row is a string.
2. Error reason
Ross: Yeah, I mean, derefrence. The value that points to

The type char is a primitive — not an object — so it cannot be dereferenced
derefer0 derefer0 is The process of authentication The value green to by a reference. Since a char is already a value (not a) reference), it can not be dereferenced.
use Character class:
if(Character.isLetter())

char
char
char is a primitive type.
Character is its wrapper class, reference type, and equals() method. == instead of directly comparing values.

Bitcoin Bitcoin node installation

A series of articles on how Bitcoin makes money, an online currency invented by computer hackers, has no borders, no government and no center. No government printing money, no inflation. In the global computer network, the free realization of currency exchange and circulation.
This series of articles is about procedures and strategies, not mining…
About the author:
Zhang (zhang Conan), programmers/Quant: Java, R, Nodejsblog: http://blog.fens.meemail: [email protected]
Reprint please indicate the source:

bitcoin比特币节点安装

preface
The first step of quantitative transactions is to obtain data, so the most direct way to obtain bitcoin data is to build a bitcoin client, directly from the bitcoin public chain above the synchronous ledger to obtain data. The foundation of the Bitcoin network is based on centrless nodes and transparency, so that each node can get the full amount of data in the Bitcoin network.
So, let’s start by building a Bitcoin client node.
directory
The

    bitcoin installation process starts the node of bitcoin

Bitcoin installation process
The procedure for installing the Bitcoin client from the source code is divided into the following seven steps:

    1. download the library from github switch to the latest version of the installation system dependent library run autogen.sh script run configure script run make and make install verify that bitcoin has been installed successfully </ol b> Now, let’s do it step by step. The Linux system environment used in this article is Linux Ubuntu 16.04 LTS 64bit.
    1. 1.1 Download the codlibrary from Bitcoin’s official Github.
    1. The process of installing Git is not much more than a simple command apt Install Git.

> git clone https://github.com/bitcoin/bitcoin.git
> cd bitcoin

1.2 Find the latest TAG version as V0.16.0.


> git tag
noversion
v0.1.5
...
v0.16.0
v0.16.0rc1
v0.16.0rc2
v0.16.0rc3
v0.16.0rc4
v0.2.0
...
v0.9.3
v0.9.3rc1
v0.9.3rc2
v0.9.4
v0.9.5
v0.9.5rc1
v0.9.5rc2

Switch to the latest version of the branch.


> git checkout v0.16.0

1.3 Install the system tools that need to be depended on, here will use Libtool, pkg-config, libboost, libDB toolkit, need to install in advance.


> apt install libtool
> apt install pkg-config
> apt install libboost-all-dev
> apt install libdb5.3++-dev 
> apt install libevent-dev

1.4 Compile with the./ Autogen.sh script,


> ./autogen.sh 

1.5 Run the configure script
When you’re done, you find that the current target has generated a configure file, and then run the configure file. At run time, a BerkerlyDB error occurs specifying that a version 4.8 BerkerlyDB is required. There are two solutions. The first solution is to download the corresponding version of BerkerlyDB. Second, skip this step. Let’s start with the second approach and skip the BerkeleyDB compatibility check.


> ./configure
configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)

> ./configure --with-incompatible-bdb

1.6 Perform make and make install.


> make 
> make install

1.7 Verify that bitcoin has been installed successfully
Verify that the bitcoin installation is successful. There are two commands bitcoind and BitcoI. We need to check if this boot command is installed in the system environment.
Bitcoind, the node used to start Bitcoin, synchronizes ledger data. Bitcoin-cli, used to communicate with bitcoind nodes.
View the system installation location of the boot command.


> which bitcoin-cli
/usr/local/bin/bitcoin-cli

> which bitcoind
/usr/local/bin/bitcoind

View the help information for bitcoind and Bitcoin-CLi commands, respectively.


> bitcoind -help
> bitcoin-cli -help

That completes the installation of the client of Bitcoin.
2. Start the Bitcoin node
Start bitcoin’s core client program with the bitcoind command. Before running it, I’ll define a bitcoin.conf configuration file to set up the user accessing RPC-JSON.
New configuration file.bitcoin/ Cobit.conf. Set the RPC user’s account and password. Please set it according to the requirements of complex password setting. The configuration item for the official recommended Bitcoin.conf file, open the file.


> vi .bitcoin/bitcoin.conf

rpcuser=bsspirit
rpcpassword=98jfidayelqlvjieJDIjda

Start the BitcoIND server and write the data to /data/ BTC directory to print out the output in the console.


> bitcoind -datadir=/data/btc -conf=/root/.bitcoin/bitcoin.conf -printtoconsole

2018-05-30 01:51:06 Bitcoin Core version v0.16.0 (release build)
2018-05-30 01:51:06 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-05-30 01:51:06 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures.
2018-05-30 01:51:06 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc
2018-05-30 01:51:06 Using the 'sse4' SHA256 implementation
2018-05-30 01:51:06 Using RdRand as an additional entropy source
2018-05-30 01:51:06 Default data directory /root/.bitcoin
2018-05-30 01:51:06 Using data directory /data/btc
2018-05-30 01:51:06 Using config file /root/.bitcoin/bitcoin.conf
2018-05-30 01:51:06 Using at most 125 automatic connections (1024 file descriptors available)
2018-05-30 01:51:06 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2018-05-30 01:51:06 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-05-30 01:51:06 Using 4 threads for script verification
2018-05-30 01:51:06 scheduler thread start
2018-05-30 01:51:06 HTTP: creating work queue of depth 16
2018-05-30 01:51:06 Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcuser for rpcauth auth generation.
2018-05-30 01:51:06 HTTP: starting 4 worker threads
2018-05-30 01:51:06 Using wallet directory /data/btc
2018-05-30 01:51:06 init message: Verifying wallet(s)...
2018-05-30 01:51:06 Using BerkeleyDB version Berkeley DB 5.3.28: (September  9, 2013)
2018-05-30 01:51:06 Using wallet wallet.dat
2018-05-30 01:51:06 CDBEnv::Open: LogDir=/data/btc/database ErrorFile=/data/btc/db.log
2018-05-30 01:51:06 Cache configuration:
2018-05-30 01:51:06 * Using 2.0MiB for block index database
2018-05-30 01:51:06 * Using 8.0MiB for chain state database
2018-05-30 01:51:06 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2018-05-30 01:51:06 init message: Loading block index...
2018-05-30 01:51:06 Opening LevelDB in /data/btc/blocks/index
2018-05-30 01:51:07 Opened LevelDB successfully
2018-05-30 01:51:07 Using obfuscation key for /data/btc/blocks/index: 0000000000000000
2018-05-30 01:51:08 LoadBlockIndexDB: last block file = 0
2018-05-30 01:51:08 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=1, size=293, heights=0...0, time=2009-01-03...2009-01-03)
2018-05-30 01:51:08 Checking all blk files are present...
2018-05-30 01:51:08 LoadBlockIndexDB: transaction index disabled
2018-05-30 01:51:08 Opening LevelDB in /data/btc/chainstate
2018-05-30 01:51:08 Opened LevelDB successfully
2018-05-30 01:51:08 Using obfuscation key for /data/btc/chainstate: 6adad0af82f188f1
2018-05-30 01:51:08 Loaded best chain: hashBestChain=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f height=0 date=2009-01-03 18:15:05 progress=0.000000
2018-05-30 01:51:08 init message: Rewinding blocks...
2018-05-30 01:51:09 init message: Verifying blocks...
2018-05-30 01:51:09  block index            2369ms
2018-05-30 01:51:09 init message: Loading wallet...
2018-05-30 01:51:09 nFileVersion = 160000
2018-05-30 01:51:09 Keys: 2001 plaintext, 0 encrypted, 2001 w/ metadata, 2001 total
2018-05-30 01:51:09  wallet                   67ms
2018-05-30 01:51:09 setKeyPool.size() = 2000
2018-05-30 01:51:09 mapWallet.size() = 0
2018-05-30 01:51:09 mapAddressBook.size() = 0
2018-05-30 01:51:09 mapBlockIndex.size() = 279999
2018-05-30 01:51:09 nBestHeight = 0
2018-05-30 01:51:09 Imported mempool transactions from disk: 0 succeeded, 0 failed, 0 expired, 0 already there
2018-05-30 01:51:09 AddLocal(103.211.167.71:8333,1)
2018-05-30 01:51:09 Discover: IPv4 eth0: 103.211.167.71
2018-05-30 01:51:09 Bound to [::]:8333
2018-05-30 01:51:09 Bound to 0.0.0.0:8333
2018-05-30 01:51:09 init message: Loading P2P addresses...
2018-05-30 01:51:09 torcontrol thread start
2018-05-30 01:51:09 Loaded 2445 addresses from peers.dat  9ms
2018-05-30 01:51:09 init message: Loading banlist...
2018-05-30 01:51:09 init message: Starting network threads...
2018-05-30 01:51:09 dnsseed thread start
2018-05-30 01:51:09 net thread start
2018-05-30 01:51:09 addcon thread start
2018-05-30 01:51:09 init message: Done loading
2018-05-30 01:51:09 opencon thread start
2018-05-30 01:51:09 msghand thread start
2018-05-30 01:51:09 New outbound peer connected: version: 70015, blocks=525031, peer=0
2018-05-30 01:51:11 New outbound peer connected: version: 70015, blocks=525031, peer=1

....

Startup parameters:
-Datadir, which specifies the directory -conf, and -printtoconsole, which specifies the configuration file for console output
If you want to do background execution, you can add the -daemon parameter. At the same time, remove the -printtoConsole parameter and print it out in a later log file.


> bitcoind -datadir=/data/btc -conf=/root/.bitcoin/bitcoin.conf -daemon
Bitcoin server starting

# View the log, in the directory where the data is exported, to track the debug.log file.
> tail -f /data/btc/debug.log 
11-04-11 22:01:50' progress=0.001211 cache=23.8MiB(165438txo)
2018-05-30 04:21:12 UpdateTip: new best=00000000000044640cb1d3e034f8df6604d1ac1346e6162bfca8dc60c4bbd887 height=117873 version=0x00000001 log2_work=61.645341 tx=403428 date='2011-04-11 22:02:29' progress=0.001212 cache=23.8MiB(165441txo)
2018-05-30 04:21:12 UpdateTip: new best=0000000000006488914c16dc226f1d73d5dcd6c258c3bc926fa0f804909dbd1b height=117874 version=0x00000001 log2_work=61.645483 tx=403445 date='2011-04-11 22:19:06' progress=0.001212 cache=23.8MiB(165459txo)
2018-05-30 04:21:12 UpdateTip: new best=000000000000988f65c0d5b018241f0dd13ea6b73c6228efccbbb577b5791f06 height=117875 version=0x00000001 log2_work=61.645624 tx=403453 date='2011-04-11 22:21:40' progress=0.001212 cache=23.8MiB(165460txo)

...

Run the bitcoin-CLi GetBlockChainInfo command to display basic information about the status of bitcoin network nodes, wallets, and blockchain databases.


> bitcoin-cli getblockchaininfo
{
  "chain": "main",
  "blocks": 2867,
  "headers": 525050,
  "bestblockhash": "000000006d6af482c12555a44bed3a0d4bbadf0fa27274225a1ed808b8a7d405",
  "difficulty": 1,
  "mediantime": 1233666084,
  "verificationprogress": 8.75401245716694e-06,
  "initialblockdownload": true,
  "chainwork": "00000000000000000000000000000000000000000000000000000b340b340b34",
  "size_on_disk": 852350,
  "pruned": false,
  "softforks": [
    {
      "id": "bip34",
      "version": 2,
      "reject": {
        "status": false
      }
    },
    {
      "id": "bip66",
      "version": 3,
      "reject": {
        "status": false
      }
    },
    {
      "id": "bip65",
      "version": 4,
      "reject": {
        "status": false
      }
    }
  ],
  "bip9_softforks": {
    "csv": {
      "status": "defined",
      "startTime": 1462060800,
      "timeout": 1493596800,
      "since": 0
    },
    "segwit": {
      "status": "defined",
      "startTime": 1479168000,
      "timeout": 1510704000,
      "since": 0
    }
  },
  "warnings": ""
}

When you see this information, it means that your Bitcoin application has started. There are dozens of gigabytes of data, need to be synchronized!
Bitcoin is a bit more complicated to install than APT, but according to the official documentation it should work properly and the installation process should not be a major problem for technicians. Different common chains, different node software, different installation methods, the next article will cover the ethereum client Geth installation.
Reprint please indicate the source:

bitcoin比特币节点安装


This entry was posted in digital currency

(springmvc) Failed to load resource: the server responded with a status of 404 (Not Found)

Today, I plan to upload the plug-in function I wrote to Github, create a new Java project, which USES the Spring MVC framework, and then debug the page when I found that I could not find the static resource file, as shown in the figure below:

So I checked the path of the page resource on the JSP at the first time:

<link rel="stylesheet" type="text/css" href="css/amazeui.min.css">
	<link rel="stylesheet" type="text/css" href="css/amazeui.cropper.css">
	<link rel="stylesheet" type="text/css" href="css/custom_up_img.css">

After confirmation, the path was found to be correct:

Friends can refer to my file path, if the path is wrong, then you can change the path to solve the problem.
Then I go on to my question, which is obviously not a path problem, so what is the reason why the page cannot find the static file?I finally saw the console output the following message:

Interpretation, i.e., when the request distribution, did not find “/ ScreenshotForUpload/CSS/amazeui. Min. CSS” mapping (No mapping found for…) “And I found out what the problem was. It turns out that spring MVC is blocking the request of a page to a static resource, but your controller does not have the mapping of this path, so the page request to a static resource file is not issued correctly. So how do you solve this problem?The following methods are given for reference:
Solutions:
1. Adopt & lt; mvc:default-servlet-handler /> . Add the following sentence to the SPRING MVC XML configuration file: < mvc:default-servlet-handler /> . As shown in the figure below:

After joining, Spring MVC will screen the URL entering the DispatcherServlet, and if a request for static resources is found, the request will be processed by the default Servlet of the Web application server, and if it is not a static resource, then the DispatcherServlet will continue to process. This method is the fastest.
2. Use & lt; mvc:resources /> . You can use < mvc:resources /> , and put the static resources in the Web-inF directory (or wherever you like), then add the following configuration in springMVC-Servlet:

<mvc:resources location="/File floder" mapping="/mapping path"/>

Fill in the path according to the actual situation.
3. In the web.xml file, change the blocking path of Spring MVC to/SpringMVC /* (” SpringMVC “can be replaced with your preferred path), as shown in the figure below
thus distinguishes “requests to Spring MVC” from “requests to static resource files”, but has the disadvantage that all your MVC requests must start with “/ SpringMVC “.
The problem that the static resource file cannot be found caused by Spring MVC can be said to be relatively secret. Novices may be unable to find the root of the problem for a while. I hope this article can provide you with help!

JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed

Have you ever made such a mistake?

The TCP/IP connection to the host localhost, port 1433 has failed.

com.microsoft.sqlserver.jdbc.SQLServerException: 
The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. 
Verify the connection properties.
Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. 
Make sure that TCP connections to the port are not blocked by a firewall.".

Solutions:
1. Select the computer – & GT; Right click management – & GT; Computer management — & GT; Service and application
(1) first check SQL server service whether
has been enabled to — > SQL Server configuration Manager — & GT; SQL Server service, make sure local SQL Server service is enabled.

(2) then check SQL server network configuration
to — > SQL Server configuration Manager — & GT; SQL Server network configuration ensures that the Named Pipes and TCP/IP protocols are enabled.


2. If we run the program again, it may appear that the connection is still unsuccessful, so we can continue to solve the problem:
or code> SQL server network configuration
to — > SQL Server configuration Manager — & GT; SQL Server network configuration, Named Pipes and TCP/IP protocol is enabled, select TCP/IP right click – > Property – & gt; IP address, scroll down to see if IPALL in TCP port is 1433, no, then change to 1433.

finally, restart SQL Server service, then run the program again, successful, comfortable!

Maven compilation error Checksum validation failed, error in opening zip file

Problem: Error reporting MVN compile time
1) Checksum Validation Failed, expected < ! DOCTYPE but is c53aeb6e9e798502f6e4d9283b4747c24ceba6f5.
2) read/Users/m2/repository/com/alibaba/druid/1.0.20/druid – 1.0.20. An error occurred when the jar; error in opening zip file

[INFO] --------------------------------[ jar ]---------------------------------
Downloading from codelds: https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.pom
Downloaded from codelds: https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.pom (0 B at 0 B/s)
[WARNING] The POM for org.springframework:spring-core:jar:4.2.6.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
Downloading from codelds: https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar
[WARNING] Checksum validation failed, expected <!DOCTYPE but is c53aeb6e9e798502f6e4d9283b4747c24ceba6f5 from codelds for https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar
[WARNING] Could not validate integrity of download from https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar: Checksum validation failed, expected <!DOCTYPE but is c53aeb6e9e798502f6e4d9283b4747c24ceba6f5
[WARNING] Checksum validation failed, expected <!DOCTYPE but is c53aeb6e9e798502f6e4d9283b4747c24ceba6f5 from codelds for https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar
Downloaded from codelds: https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar (7.5 kB at 1.9 kB/s)

. . . .
[ERROR] Error while reading /Users/.m2/repository/com/alibaba/druid/1.0.20/druid-1.0.20.jar; error in opening zip file
[ERROR] Error reading /Users/.m2/repository/org/hibernate/hibernate-core/4.3.11.Final/hibernate-core-4.3.11.Final.jar; error in opening zip file
[ERROR] Error reading /Users/.m2/repository/org/hibernate/hibernate-ehcache/4.3.11.Final/hibernate-ehcache-4.3.11.Final.jar; error in opening zip file
[ERROR] Error reading /Users/.m2/repository/org/quartz-scheduler/quartz/2.2.2/quartz-2.2.2.jar; error in opening zip file
[ERROR] Error when reading /Users/.m2/repository/com/oracle/ojdbc6/11.2.0.3/ojdbc6-11.2.0.3.jar; error in opening zip file
[ERROR] Error reading /Users/.m2/repository/com/alibaba/druid/1.0.20/druid-1.0.20.jar; error in opening zip file
[ERROR] Error reading /Users/.m2/repository/org/hibernate/hibernate-core/4.3.11.Final/hibernate-core-4.3.11.Final.jar; error in opening zip file
[ERROR] Error reading /Users/.m2/repository/org/hibernate/hibernate-ehcache/4.3.11.Final/hibernate-ehcache-4.3.11.Final.jar; error in opening zip file
[ERROR] Error reading /Users/.m2/repository/org/quartz-scheduler/quartz/2.2.2/quartz-2.2.2.jar; error in opening zip file
[ERROR] Error when reading /Users/.m2/repository/com/oracle/ojdbc6/11.2.0.3/ojdbc6-11.2.0.3.jar; error in opening zip file

Analysis:
Asked under Baidu, said the JAR package download problem, may be the permission of what the problem, Blah blah blah…
Solution:
Watch the pom project, refers to the remote warehouse, https://code.lds.org/nexus/content/groups/main-repo,
Browser view found that the site is being maintained, so changed the address of the remote warehouse, with the central warehouse to download the compilation can be;

springboot : Failed to decode downloaded font 和 OTS parsing error

Hello, I’m Roast Duck:
I have seen many people who have similar problems with me, but they have not solved my problems:

Failed to decode the listed font and OTS Parsing Error:
Trying to move the wOFF file to another static resource folder that can be loaded, it still cannot be loaded.
The browser opens access directly to the login page. The guess is that the static resource for the font is blocked.
 
Please refer to this:
https://stackoverflow.com/questions/34037051/spring-boot-font-awesome-ots-parsing-error-failed-to-convert
Pom upon & lt; exclude> And & lt; include>


pom add < nonFilteredFileExtensions>
As shown in figure

Completely solve Mechanism level: Failed to find any Kerberos tgt

Error description
Secure Client Cannot Connect ([Caused by GSSException: No valid credentials provided(Mechanism level: Failed to find any Kerberos tgt)])
symptoms
If it’s not due to the validity of the Klist Keytab, and you return the error, if it’s a resident service, like nohup, Tomcat, etc., there’s a pattern to the error, like 12 o ‘clock every day, or after a certain period of time.
The solution
To test that

https://hbase.apache.org/book.html#trouble.client.security.rpc
https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/Troubleshooting.html

Reproduced in: https://www.cnblogs.com/slankka/p/10217038.html

Failed to load resource: net::ERR_CONNECTION_REFUSED

#Failed to load resource: net:: err_connection_union report error
this is because of the file loading error, when I was loading the image, did not show the browser reported error
solution:
1. First, there may be a configuration problem in Nginx to prevent files from being too large to load
2. There may be a problem with the path of the file in your application.properties

Error installing NX10.0 in win10. Tip: ZeroGu6: Windows DLL failed to load

The original machine installed, upgrade before uninstall, and then can not install, from the Internet to find what solution, it seems to encounter few people.

All the advice online is, through my computer:
Right click on splmlicenseserver_v7.0.0 _win64_setup.exe and select Properties. On the Compatibility menu, Select the ‘Compatibility’ TAB

You can also test compatibility, and the system will automatically set the compatibility

But none of these methods work on my machine.

 
Go here and search for Java to delete all related programs
 

Reproduced in: https://www.cnblogs.com/ouyang800/articles/6061367.html

SQLServerException: The server failed to resume the transaction. Desc:ab00000002

public void runSp(List<String> params, DataSource dataSource, String spName) throws SQLException {
  StringBuffer sb = new StringBuffer("{call " + spName + " (");
  for (int i = 0; i < params.size() - 1; i++) {
    sb.append("?,");
  }
  sb.append("?)}");
  String callString = sb.toString();
  LOGGER.info("[runSp] Running statement: " + callString);
  Connection conn = getConnection(dataSource);
  conn.setAutoCommit(false);
  CallableStatement cs = conn.prepareCall(callString);
  for (int i = 0; i < params.size(); i++) {
    cs.setString(i + 1, params.get(i));
  }
  try {
    cs.execute();
    conn.commit();
    LOGGER.info("sp completed successfully");
  } catch (Exception e) {
    LOGGER.info("sp failed", e);
    conn.rollback();
  } finally {
    cs.close();
    conn.close();
  }
}

This exception is thrown when the method is called while the program is running. The program needs to call SQL Server’s stored procedure during the run, but there is already a commit of the item in the store.
I also added Java code to Java code to throw out this one. After I tried to remove control from the Java code, there were no errors. The specific reasons are still in the learning process, I hope you can give me some advice.