Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
264 views
in Technique[技术] by (71.8m points)

java - ASE is terminating this process when trying to install the jar file (Msg 5702, Level 10, State 1)

I have an SAP ASE 16 server on a Windows OS. I have enabled the java service:

sp_configure 'enable java'
Parameter Name Default     Memory Used Config Value Run Value    Unit   Type  
-------------- ----------- ----------- ------------ ------------ ------ ------
enable java              0           0            1            1 switch static

Rows affected (1) Time (0.094 s) 

I have created a basic class to test the service (JDBCExamples.java):

import java.sql.*; // JDBC
public class JDBCExamples {

    public static void main(String args[]){
        if (args.length != 2) {
            System.out.println("
 Usage: " + "name secondName 
");
            return;
        }
        try {
            String name = args[0];
            String secondName = args[1].toLowerCase();
            System.out.println("
 HOLA " + name + " " + secondName +" FUNCIONO!!!
");
        } catch (Exception e) {
            System.out.println("
 Exception: ");
            e.printStackTrace();
        }
    }
}

I have the class file JDBCExamples.class and I make a file JDBCExamples.jar.

When I try to install the jar file it shows the error message:

instjava -f JDBCExamples.jar -SDEFAULT -Uuser -Ppassword -Ddatabase -new  

Server Message:  - Msg 5702, Level 10, State 1:
ASE is terminating this process.

I don't see any in log database.

Any idea what the problem is?

Update: I posted the same problem in https://answers.sap.com/questions/13241081/ase-is-terminating-this-process-when-trying-to-ins.html

In this post suspect the issue is caused by an ASE bug fixed in PL06:

2687973 - NTPCI__exit(1); Native Thread failed to unwind - SAP ASE http://service.sap.com/sap/support/notes/2687973

I have a trial version and I can not download a newer patch (PL06 at least but recommend PL09 as most recent)

Does anyone have this patch?

question from:https://stackoverflow.com/questions/65928164/ase-is-terminating-this-process-when-trying-to-install-the-jar-file-msg-5702-l

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...