阿里云首页

Dataphin添加Java UDF报错:"ODPS-0123131:User defined function exception - internal error - Fatal Error Happended"

问题描述

Dataphin添加Java UDF报错:"ODPS-0123131:User defined function exception - internal error - Fatal Error Happended"。

ODPS-0123131:User defined function exception - internal error - Fatal Error Happended
java.lang.InternalError: cannot create instance of org.bouncycastle.jcajce.provider.digest.GOST3411$Mappings : java.security.AccessControlException: access denied ("java.security.SecurityPermission" "putProviderProperty.BC")
at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.access$000(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.bouncycastle.jce.provider.BouncyCastleProvider.<init>(Unknown Source)
at com.ghzq.udf.Sm4Encrypt.<clinit>(Sm4Encrypt.java:36)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.aliyun.odps.compiler.udf.runtime.CompilerObjectCreatorForEE.create(CompilerObjectCreatorForEE.java:62)

问题原因

计算类型选择Maxcompute,需要在odps上注册该函数,被拒绝访问。

解决方案

计算类型选择无归属引擎即可。

适用于

  • Dataphin
首页 Dataphin添加Java UDF报错:"ODPS-0123131:User defined function exception - internal error - Fatal Error Happended"