on 08-26-2009 12:42 PM
Hello,
as I want to use a base64 encoding method I have created an imported archive to use the package org.apache.commons.code.binary and want to use Base64 class in an UDF.
I have created an imported archive in the same SVCW and namespsace as the UDF exists. However when executing the UDF I get the following error message:
package org,.apache.commons.codes.binary. does not exist
import org.apache.commons.codec.binary.*
The import statement in the UDF is spelled correctly and the imported archive was acitvated without error.
What could be the reason for this?
Hi Florian,
have you specified this statement "import org.apache.commons.codec.binary.*
' in the code section of the udf or the import section of the UDF?
If you mentioned it in the import section, make sure that you have a ";" at the end and not a "."
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check - Message Mapping -> Functions tab --> Archives Used tab ( import the jar file (imported Archivers))
if you not import the Archives Used tab ,
you canot use the udf with ur *.jar (zip)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I have created an imported archive in the same SVCW and namespsace as the UDF exists. However when executing the UDF I get the following error message:
package <org,.apache>.commons.codes.binary. does not exist
import org.apache.commons.<codec.>binary.*
The import archive procedure you have done is correct. In your UDF check your importing statement as its not in correct syntax.
and also check the spelling of the package. check the words i have marked with in tags.
Regards,
Prasanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
package <org,.apache>.commons.codes.binary. does not exist
import org.apache.commons.<codec.>binary.*
Sorry, was working on two notebooks So I typed it here in the forum in rather than copy and paste. However in the UDF it is spelled correctly. However I still get the same error:
package org.apache.commons.codec.binary does not exist
import org.apache.commons.codec.binary.*;
what I undestood is that you have created the java program ,in the java program you used the package org.apache.commons.codec.binary.* Now you want to use the java program in the udf.You need not import package org.apache.commons.code.binary in the udf but you have to import your java program which you have in the imported archive
important points
user-defined function is only visible in the message mapping in which you created it
You can use your Java programs from imported archives in user-defined functions if the Java programs are located in the same, or an underlying software component version as the message mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.