ApplicationInsights-Java
ApplicationInsights-Java copied to clipboard
Update contrib version to 1.19
@jeanbisutti can you look into the smoke test failure for SpringBootAttachInMain?
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
Caused by: io.opentelemetry.contrib.attach.RuntimeAttachException: A problem has occurred during the runtime attachment of the Java agent.
at io.opentelemetry.contrib.attach.CoreRuntimeAttach.handleByteBuddyException(CoreRuntimeAttach.java:105)
at io.opentelemetry.contrib.attach.CoreRuntimeAttach.attachJavaagentToCurrentJVM(CoreRuntimeAttach.java:54)
at com.microsoft.applicationinsights.attach.ApplicationInsights.attach(ApplicationInsights.java:61)
at com.microsoft.applicationinsights.smoketestapp.SpringBootApp.main(SpringBootApp.java:16)
... 8 more
Caused by: java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0
at java.base/java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311)
at java.base/java.time.temporal.ChronoField.checkValidValue(ChronoField.java:717)
at java.base/java.time.LocalDate.of(LocalDate.java:[269](https://github.com/microsoft/ApplicationInsights-Java/actions/runs/3293251211/jobs/5429603434#step:4:271))
at java.base/java.time.LocalDateTime.of(LocalDateTime.java:336)
at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.decodeMsDosFormatDateTime(CentralDirectoryFileHeader.java:127)
at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.getTime(CentralDirectoryFileHeader.java:116)
at org.springframework.boot.loader.jar.JarEntry.<init>(JarEntry.java:58)
at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:316)
at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:300)
at org.springframework.boot.loader.jar.JarFileEntries.doGetEntry(JarFileEntries.java:288)
at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:243)
at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:203)
at org.springframework.boot.loader.jar.JarFile.getEntry(JarFile.java:225)
at org.springframework.boot.loader.LaunchedURLClassLoader.lambda$definePackage$0(LaunchedURLClassLoader.java:137)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:783)
at org.springframework.boot.loader.LaunchedURLClassLoader.definePackage(LaunchedURLClassLoader.java:129)
at org.springframework.boot.loader.LaunchedURLClassLoader.definePackageIfNecessary(LaunchedURLClassLoader.java:111)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:81)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1074)
at io.opentelemetry.contrib.attach.CoreRuntimeAttach.attachJavaagentToCurrentJVM(CoreRuntimeAttach.java:52)
... 10 more