Skip to main content

Hi, I'm trying to use the c$java sentence but the file status return CJAVA-INVALIDARG VALUE -1.

           CALL "C$JAVA" USING CJAVA-CALL, OBJECT-HANDLE,
                "Validate", "(XX)X", "Efacturae.xml", "3.0",
                 FIELD-RETURN GIVING STATUS-VAL.

What's does it means this value?

Thanks.

Hi, I'm trying to use the c$java sentence but the file status return CJAVA-INVALIDARG VALUE -1.

           CALL "C$JAVA" USING CJAVA-CALL, OBJECT-HANDLE,
                "Validate", "(XX)X", "Efacturae.xml", "3.0",
                 FIELD-RETURN GIVING STATUS-VAL.

What's does it means this value?

Thanks.

The CJAVA-INVALIDARG  seems to indicate that you arenot sending a valid argument to your Java class / methid .Is Validate the method within the Java class you are calling? Does this method take 3 arguments "(XX)X", "Efacturae.xml", "3.0" .. if were to use Java to call / invoke this method .. what Java syntax would you use?


Hi, I'm trying to use the c$java sentence but the file status return CJAVA-INVALIDARG VALUE -1.

           CALL "C$JAVA" USING CJAVA-CALL, OBJECT-HANDLE,
                "Validate", "(XX)X", "Efacturae.xml", "3.0",
                 FIELD-RETURN GIVING STATUS-VAL.

What's does it means this value?

Thanks.

I could solve the problem, but now I have CJAVA-ClassNotFound. I set the variable as follows java_option in my config file JAVA_OPTIONS =-Djava.class.path = C: \\ Java \\ facturae-api-2.0.jar;

I have to set some variable more? ...

thanks.


Hi, I'm trying to use the c$java sentence but the file status return CJAVA-INVALIDARG VALUE -1.

           CALL "C$JAVA" USING CJAVA-CALL, OBJECT-HANDLE,
                "Validate", "(XX)X", "Efacturae.xml", "3.0",
                 FIELD-RETURN GIVING STATUS-VAL.

What's does it means this value?

Thanks.

It might be helpful if you post a bit more of the program you are making ... are you getting a valid handle when you  CALL "C$JAVA" USING CJAVA-CALLJAVAMAIN ... is it after this where you do not find the class

CALL "C$JAVA" USING CJAVA-NEW, "JavaClass", "linkage-signature" GIVING OBJECT-HANDLE.

Also, for many Windows environments there can be a 32 bit jvm as well as a 64 bit jvm. For COBOL calling Java, the library jvm.dll  is specified by JAVA_LIBRARY_NAME. The entry would

look like JAVA_LIBRARY_NAME=jvm.dll on windows. A fully qualified path can be added with the name.


Hi, I'm trying to use the c$java sentence but the file status return CJAVA-INVALIDARG VALUE -1.

           CALL "C$JAVA" USING CJAVA-CALL, OBJECT-HANDLE,
                "Validate", "(XX)X", "Efacturae.xml", "3.0",
                 FIELD-RETURN GIVING STATUS-VAL.

What's does it means this value?

Thanks.

I found this api for electronic invoice.

skydrive.live.com/redir

I´m trying to use the "ValidatorUtil" class to validate a xml file i created.

Can you help me with the c$java sentences i have to use?

thanks.


Hi, I'm trying to use the c$java sentence but the file status return CJAVA-INVALIDARG VALUE -1.

           CALL "C$JAVA" USING CJAVA-CALL, OBJECT-HANDLE,
                "Validate", "(XX)X", "Efacturae.xml", "3.0",
                 FIELD-RETURN GIVING STATUS-VAL.

What's does it means this value?

Thanks.

I found this api for electronic invoice.

skydrive.live.com/redir

I´m trying to use the "ValidatorUtil" class to validate a xml file i created.

Can you help me with the c$java sentences i have to use?

thanks.


Hi, I'm trying to use the c$java sentence but the file status return CJAVA-INVALIDARG VALUE -1.

           CALL "C$JAVA" USING CJAVA-CALL, OBJECT-HANDLE,
                "Validate", "(XX)X", "Efacturae.xml", "3.0",
                 FIELD-RETURN GIVING STATUS-VAL.

What's does it means this value?

Thanks.

I downloaded the jar .. I went and downloaded the API .. I ran javap -s ValidatorUtil.class and the output was

()V  which mean Java-defined void method taking no parameters

I don't think I can help much further.