![]()
Page History
...
You will also see a stack trace similar to the one below:
| Code Block |
|---|
INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36|javanet.snowflake.securityingest.specutils.InvalidKeySpecExceptionSFException: java.security.InvalidKeyException: IOException : DER input, Integer tag error INFO|174123 Invalid private key, private key should be a valid PEM RSA private key. FINEST|5210/0||2326-0605-1522 1418:2022:36| at net.snowflake.ingest.utils.Utils.parsePrivateKey(Utils.java:244) FINEST|5210/0||26-05-22 18:22:36| at net.snowflake.ingest.utils.Utils.createProperties(Utils.java.base/sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:251) INFO|174123/0||23-06-15 14:20:36| :155) FINEST|5210/0||26-05-22 18:22:36| at net.snowflake.ingest.streaming.SnowflakeStreamingIngestClientFactory$Builder.build(SnowflakeStreamingIngestClientFactory.java:57) FINEST|5210/0||26-05-22 18:22:36| at com.cirruslink.iotbridge.snowflake.ingest.StreamingIngest.getClient(StreamingIngest.java:324) FINEST|5210/0||26-05-22 18:22:36| at com.cirruslink.iotbridge.snowflake.ingest.StreamingIngest.openChannel(StreamingIngest.java:230) FINEST|5210/0||26-05-22 18:22:36| at com.cirruslink.iotbridge.snowflake.ingest.SparkplugStreamingIngest.lambda$getChannel$3(SparkplugStreamingIngest.java:372) FINEST|5210/0||26-05-22 18:22:36| at java.base/java.util.securityconcurrent.KeyFactoryConcurrentHashMap.generatePrivatecomputeIfAbsent(KeyFactoryConcurrentHashMap.java:3901708) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at netcom.cirruslink.iotbridge.snowflake.ingest.internal.apache.kerby.kerberos.kerb.common.PrivateKeyReader.loadPrivateKey(PrivateKeyReader.java:62) INFO|174123/0||23-06-15 14:20:36| SparkplugStreamingIngest.getChannel(SparkplugStreamingIngest.java:370) FINEST|5210/0||26-05-22 18:22:36| at com.cirruslink.iotbridge.snowflake.ingest.SparkplugStreamingIngest.insert(SparkplugStreamingIngest.java:150) FINEST|5210/0||26-05-22 18:22:36| at com.cirruslink.iotbridge.snowflake.ingest.StreamingIngestSparkplugStreamingIngest.<init>insert(StreamingIngestSparkplugStreamingIngest.java:77135) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at com.cirruslink.iotbridge.snowflake.ingest.SnowflakeHostApplicationStreamingIngest.<init>batchInsert(SnowflakeHostApplicationStreamingIngest.java:82295) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at com.cirruslink.iotbridge.snowflake.ingest.SnowflakeIotBridgeStreamingIngest.<init>batchInsert(SnowflakeIotBridgeStreamingIngest.java:34276) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at com.cirruslink.iotbridge.snowflake.SnowflakeIotBridgeingest.StreamingIngest.mainrun(SnowflakeIotBridgeStreamingIngest.java:21) INFO|174123136) FINEST|5210/0||26-05-22 18:22:36| at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) FINEST|5210/0||2326-0605-1522 1418:2022:36| at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) FINEST|5210/0||26-05-22 18:22:36| at java.base/jdkjava.internalutil.reflectconcurrent.NativeMethodAccessorImplScheduledThreadPoolExecutor$ScheduledFutureTask.invoke0(Native Method) INFO|174123run(ScheduledThreadPoolExecutor.java:305) FINEST|5210/0||2326-0605-1522 1418:2022:36| at java.base/jdkjava.internalutil.reflectconcurrent.NativeMethodAccessorImplThreadPoolExecutor.invokerunWorker(NativeMethodAccessorImplThreadPoolExecutor.java:621136) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/jdkjava.internalutil.reflectconcurrent.DelegatingMethodAccessorImplThreadPoolExecutor$Worker.invokerun(DelegatingMethodAccessorImplThreadPoolExecutor.java:43635) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/java.lang.reflectThread.Method.invokerun(MethodThread.java:566) INFO|174123840) FINEST|5210/0||26-05-22 18:22:36|Caused by: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException : DerValue.getBigIntegerInternal, not expected 48 FINEST|5210/0||2326-0605-1522 1418:2022:36| at orgjava.rzobase/sun.yajswsecurity.apprsa.WrapperJVMMainRSAKeyFactory.executeMainengineGeneratePrivate(WrapperJVMMainRSAKeyFactory.java:60) INFO|174123253) FINEST|5210/0||26-05-22 18:22:36| at java.base/java.security.KeyFactory.generatePrivate(KeyFactory.java:389) FINEST|5210/0||2326-0605-1522 1418:2022:36| at orgnet.rzosnowflake.yajswingest.apputils.WrapperJVMMainUtils.mainparsePrivateKey(WrapperJVMMainUtils.java:43) INFO|174123242) FINEST|5210/0||26-05-22 18:22:36| ... 18 common frames omitted FINEST|5210/0||2326-0605-1522 1418:2022:36|Caused by: java.security.InvalidKeyException: IOException : DER inputDerValue.getBigIntegerInternal, Integernot tagexpected error 48 INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/sun.security.pkcs.PKCS8Key.decode(PKCS8Key.java:350135) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/sun.security.pkcs.PKCS8Key.decode<init>(PKCS8Key.java:35595) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/sun.security.rsa.RSAPrivateCrtKeyImpl.<init>(RSAPrivateCrtKeyImpl.java:136162) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/sun.security.rsa.RSAPrivateCrtKeyImpl.newKey(RSAPrivateCrtKeyImpl.java:8092) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/sun.security.rsa.RSAKeyFactory.generatePrivate(RSAKeyFactory.java:356352) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| at java.base/sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:247249) INFOFINEST|1741235210/0||2326-0605-1522 1418:2022:36| ... 1220 common frames omitted INFO|174123/0||23-06-15 14:20:36|14:20:36.004 [main] ERROR c.c.i.snowflake.StreamingIngest - Failed to load the private key based on <PRIVATE_KEY> |
| Anchor | ||||
|---|---|---|---|---|
|
...
Overview
Content Tools