Skip to content

Function Fails on NoClassDefFoundError #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hazhzeng opened this issue Jan 11, 2020 · 0 comments · Fixed by #379
Closed

Function Fails on NoClassDefFoundError #341

Hazhzeng opened this issue Jan 11, 2020 · 0 comments · Fixed by #379

Comments

@Hazhzeng
Copy link

Hazhzeng commented Jan 11, 2020

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

-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants