silwalr opened a new issue, #24:
URL: https://github.com/apache/ctakes/issues/24

   Hi all, 
   
   I am running into the following issue when I attempt to load tables into 
**MSSQL Server** using Java Data Loader (jdl) utility in 
**cTAKES-6.0.0-SNAPSHOT**. The jdl utility worked fine in cTAKES-5.1.0. The jdl 
is part of **ctakes-ytex** package.  
   
   It looks like the `loader` if failing to read the contents of the `.txt` 
file:  
   `[java] 12 Sep 2024 09:16:31  INFO CsvLoader - insert into null () values ()`
   
   **jdbc.sqlcmd** is working fine. 
   
   **ERROR Trace:**
   ```  
   uima.create:
    
   jdbc.sqlcmd:
        [echo] db.schema dbo
        [echo] umls.schema UMLS
        [echo] umls.catalog YTEX_TEST
        [echo] execute ./mssql/uima/create_reference.sql
        [copy] Copying 1 file to C:\Users\USERID\AppData\Local\Temp\4
        [echo] executing C:\Users\USERID\AppData\Local\Temp\4\ytex424002541.sql
         [sql] Executing resource: 
C:\Users\USERID\AppData\Local\Temp\4\ytex424002541.sql
         [sql] 9 of 9 SQL statements executed successfully
      [delete] Deleting: C:\Users\USERID\AppData\Local\Temp\4\ytex424002541.sql
      [delete] Deleting: 
C:\Users\USERID\AppData\Local\Temp\4\ytex1717560066use.sql
   
   ...
   
   uima.create.trigger:
   
   init:
        [echo] java.io.tmpdir C:\Users\USERID\AppData\Local\Temp\4\
        [echo] basedir E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data
        [echo] umls.data E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data/umls
   
   init.conn:
        [copy] Copying 1 file to C:\Users\USERID\AppData\Local\Temp\4
   uima.ref.load:
   
   jdl:
        [echo] jdl.format ref_uima_type.xml
        [echo] jdl.data ref_uima_type.txt
        [echo] db.schema dbo
        [echo] umls.schema UMLS
        [echo] umls.prefix YTEX_TEST.UMLS.
        [copy] Copying 1 file to C:\Users\USERID\AppData\Local\Temp\4
        [java] 12 Sep 2024 09:16:31  INFO CsvLoader - delimiter 44 encapsulator 
65534
        [java] 12 Sep 2024 09:16:31  INFO CsvLoader - insert into null () 
values ()
        [java] Exception in thread "main" java.lang.NullPointerException: 
Cannot invoke "java.lang.Number.intValue()" because "ncommit" is null
        [java]  at 
org.apache.ctakes.jdl.data.loader.CsvLoader.dataInsert(CsvLoader.java:225)
        [java]  at org.apache.ctakes.jdl.AppJdl.execute(AppJdl.java:87)
        [java]  at org.apache.ctakes.jdl.AppMain.main(AppMain.java:84)
   
   BUILD FAILED
   E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data\build.xml:573: The 
following error occurred while executing this line:
   E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data\build.xml:589: The 
following error occurred while executing this line:
   E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data\build.xml:535: Java 
returned: 1
   ```
   
   I am encountering this error when I run the following **command:**
   `E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data>ant 
-Dconfig.local=..\..\target\classes uima.all > uima_all.out 2>&1`
   
   I am using the following versions of JAVA and ant: 
   ```
   E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data>java --version
   openjdk 17.0.10 2024-01-16
   OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
   OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, 
sharing)
   
   E:\cTAKES\cTAKES-source\ctakes-ytex\scripts\data>ant -version
   Apache Ant(TM) version 1.10.14 compiled on August 16 2023
   ```
   
   Thanks for any help you can provide!
   


-- 
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: dev-unsubscr...@ctakes.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to