You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for some reason the graalvm native image AOT compilation fails if the google cloud data spanner entities and repositories are nto public. this occurs when i go to start.spring.io and build a project with the following pom.xml:
...
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ service ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ service ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 3 source files with javac [debug parameters release 21] to target/classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ service ---
[INFO] skip non existing resourceDirectory /Users/jlong/Desktop/gcp-webinar/service/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ service ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 1 source file with javac [debug parameters release 21] to target/test-classes
[INFO]
[INFO] --- surefire:3.2.5:test (default-test) @ service ---
[WARNING] Parameter 'systemProperties' is deprecated: Use systemPropertyVariables instead.
[INFO] Tests are skipped.
[INFO]
[INFO] --- spring-boot:3.3.4:process-aot (process-aot) @ service ---
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.4)
2024-10-21T18:17:33.941+03:00 INFO 18298 --- [ main] com.example.service.ServiceApplication : Starting ServiceApplication using Java 23 with PID 18298 (/Users/jlong/Desktop/gcp-webinar/service/target/classes started by jlong in /Users/jlong/Desktop/gcp-webinar/service)
2024-10-21T18:17:33.945+03:00 INFO 18298 --- [ main] com.example.service.ServiceApplication : No active profile set, falling back to 1 default profile: "default"
2024-10-21T18:17:34.264+03:00 INFO 18298 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Spanner repositories in DEFAULT mode.
2024-10-21T18:17:34.316+03:00 INFO 18298 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 49 ms. Found 1 Spanner repository interface.
2024-10-21T18:17:34.403+03:00 INFO 18298 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2024-10-21T18:17:34.406+03:00 INFO 18298 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2024-10-21T18:17:34.846+03:00 INFO 18298 --- [ main] o.s.c.s.b.BinderChildContextInitializer : Beginning AOT processing for binder child contexts
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.730 s
[INFO] Finished at: 2024-10-21T18:17:36+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.3.4:process-aot (process-aot) on project service: Unable to compile generated source
[ERROR] com.example.service.Dog is not public in com.example.service; cannot be accessed from outside package /Users/jlong/Desktop/gcp-webinar/service/target/spring-aot/main/sources/com/google/cloud/spring/data/spanner/repository/support/SpannerRepositoryFactoryBean__BeanDefinitions.java 3:27
[ERROR] com.example.service.DogRepository is not public in com.example.service; cannot be accessed from outside package /Users/jlong/Desktop/gcp-webinar/service/target/spring-aot/main/sources/com/google/cloud/spring/data/spanner/repository/support/SpannerRepositoryFactoryBean__BeanDefinitions.java 4:27
[ERROR] com.example.service.DogRepository is not public in com.example.service; cannot be accessed from outside package /Users/jlong/Desktop/gcp-webinar/service/target/spring-aot/main/sources/com/google/cloud/spring/data/spanner/repository/support/SpannerRepositoryFactoryBean__BeanDefinitions.java 34:106
[ERROR] com.example.service.Dog is not public in com.example.service; cannot be accessed from outside package /Users/jlong/Desktop/gcp-webinar/service/target/spring-aot/main/sources/com/google/cloud/spring/data/spanner/repository/support/SpannerRepositoryFactoryBean__BeanDefinitions.java 34:127
this doesn't occur for other spring data modules.
The text was updated successfully, but these errors were encountered:
for some reason the graalvm native image AOT compilation fails if the google cloud data spanner entities and repositories are nto
public
. this occurs when i go to start.spring.io and build a project with the followingpom.xml
:here's the error log.
this doesn't occur for other spring data modules.
The text was updated successfully, but these errors were encountered: