小编Ale*_*kov的帖子

Spring Boot Data JPA 从存储过程接收多个输出参数

我尝试通过 Spring Boot Data JPA (v2.2.6) 调用具有多个输出参数的存储过程,但收到错误:

DEBUG [http-nio-8080-exec-1] org.hibernate.engine.jdbc.spi.SqlStatementLogger: {call TEST_SP(?,?,?)}
RACE [http-nio-8080-exec-1] org.hibernate.type.descriptor.sql.BasicBinder: binding parameter [DOC_NAME] as [VARCHAR] - [ololo]
ERROR [http-nio-8080-exec-1] org.apache.juli.logging.DirectJDKLog: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: OUT/INOUT parameter not available: DOC_ID; nested exception is java.lang.IllegalArgumentException: OUT/INOUT parameter not available: DOC_ID] with root cause
java.lang.IllegalArgumentException: OUT/INOUT parameter not available: DOC_ID
Run Code Online (Sandbox Code Playgroud)

MS SQL Server 2012 中的存储过程:

CREATE PROCEDURE [dbo].[TEST_SP]
    @DOC_ID bigint output,
    @DOC_GUID nvarchar(255) output, …
Run Code Online (Sandbox Code Playgroud)

java stored-procedures jpa spring-data-jpa spring-boot

5
推荐指数
1
解决办法
9261
查看次数

GWT 2.9.0 无法编译应用程序

我正在尝试将 GWT 从 2.8.2 更新到 2.9.0,但我的应用程序无法编译。

[INFO] --- gwt-maven-plugin:2.9.0:compile (default) @ some-gwt-project ---
[INFO] Loading inherited module 'com.example.AppEntryPointDev'
[INFO]    Module location: file:/C:/Users/username/IdeaProjects/project/target/project/WEB-INF/classes/com/example/AppEntryPointDev.gwt.xml
[INFO]    Loading inherited module 'com.google.gwt.core.Core'
... skiped other module loading messages
[INFO] Public resources found in...
[INFO] Translatable source found in...
[INFO] Persistent unit cache dir set to: C:\Users\username\IdeaProjects\project\target\gwt-unitCache
[INFO] Opening cache file: C:\Users\username\IdeaProjects\project\target\gwt-unitCache\gwt-unitCache-8c530...
[INFO] Looking for previously cached Compilation Units in C:\Users\username\IdeaProjects\project\target\gwt-unitCache
[INFO] Compiling module com.example.AppEntryPointDev
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.IllegalArgumentException
[INFO]  at org.objectweb.asm.ClassVisitor.<init>(Unknown …
Run Code Online (Sandbox Code Playgroud)

java gwt

3
推荐指数
1
解决办法
835
查看次数