Skip to content

Function Fails on NoClassDefFoundError #341

Closed
@Hazhzeng

Description

@Hazhzeng

Investigative information

Please provide the following:

  • Timestamp: 2020-01-07 14:25:39.9578344
  • Function App name: please contact me for more information
  • Function name(s) (as appropriate): processUPSNucasCarrierUpdateFunction
  • Invocation ID:
  • Region: Central US (waws-prod-dm1-133)

Expected behavior

The function app suppose to work and continue handling EventHub requests.

Actual behavior

This issue is transient, the function stops working after initialization.
.Jar modules import completes before handling request.
First EventHub request fails on the Java function instance.

Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException : Result: Failure
Exception: NoClassDefFoundError: Could not initialize class xxx.xxx.xxx.datasource.statusmappingcache.CtaUpsCarrierStatusMappingCache
Stack: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Known workarounds

None. The issue is transient.

Related information

I check the storage account, and connection to it, everything is fine.
Function package is deployed using WEBSITE_RUN_FROM_PACKAGE=1, all content mounting operations happen on the VM memory, network is not a concern.

The .jar files does contain the classes, it could be a module import on our Java worker, or a generic Zulu 8.36.0.1-jre8.0.202 JVM issue.

Please contact @Hazhzeng for more information on customer's app.

cc: @ankitkumarr @pragnagopa

-->

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions