how to debug hapi-fhir-jpaserver-starter in IntelliJ IDEA?

210 views
Skip to first unread message

Matt Storer

unread,
May 2, 2023, 12:05:22 PM5/2/23
to HAPI FHIR
Hi -

I'm trying to debug hapi-fhir-jpaserver-starter 6.4.0 through IntelliJ IDEA 2022.3.2.

When I start a debug launch through the IDE, I get a message "Error running Application.  Command line is too long.  Shorten the command line and rerun."

If I select the provided option to shorten the command line, the debug launch gets past that block, but then breaks with the following (see below for console output).

Anyone know how to get this to work?

Thanks -

Matt

-----------------------------------------------------------------

"C:\Program Files\Semeru\jdk-17.0.3.7-openj9\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50879,suspend=y,server=n "-Dspring.config.location=c:\git\hapi-fhir-jpaserver-starter\local-config\\" -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" -javaagent:C:\Users\storer\AppData\Local\JetBrains\IntelliJIdea2022.3\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 @C:\Users\storer\AppData\Local\Temp\1\idea_arg_file1076835876 ca.uhn.fhir.jpa.starter.Application
Connected to the target VM, address: '127.0.0.1:50879', transport: 'socket'

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.7.5)

2023-05-02 08:58:06.570 [background-preinit] INFO  o.h.validator.internal.util.Version [Version.java:21] HV000001: Hibernate Validator 6.1.5.Final
2023-05-02 08:58:06.607 [main] INFO  ca.uhn.fhir.jpa.starter.Application [StartupInfoLogger.java:55] Starting Application using Java 17.0.3 on RNB02563 with PID 6640 (C:\git\hapi-fhir-jpaserver-starter\target\classes started by storer in C:\git\hapi-fhir-jpaserver-starter)
2023-05-02 08:58:06.609 [main] INFO  ca.uhn.fhir.jpa.starter.Application [SpringApplication.java:634] No active profile set, falling back to 1 default profile: "default"
2023-05-02 08:58:09.354 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java:132] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-05-02 08:58:10.297 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java:201] Finished Spring Data repository scanning in 915 ms. Found 51 JPA repository interfaces.
2023-05-02 08:58:14.642 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java:376] Bean 'ca.uhn.fhir.jpa.config.BeanPostProcessorConfig' of type [ca.uhn.fhir.jpa.config.BeanPostProcessorConfig$$EnhancerBySpringCGLIB$$cfbd4c97] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2023-05-02 08:58:14.882 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext [AbstractApplicationContext.java:591] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.context.MissingWebServerFactoryBeanException: No qualifying bean of type 'org.springframework.boot.web.servlet.server.ServletWebServerFactory' available: Unable to start AnnotationConfigServletWebServerApplicationContext due to missing ServletWebServerFactory bean
2023-05-02 08:58:15.041 [main] INFO  o.s.b.a.l.ConditionEvaluationReportLoggingListener [ConditionEvaluationReportLoggingListener.java:136]

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-05-02 08:58:15.094 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter [LoggingFailureAnalysisReporter.java:40]

***************************
APPLICATION FAILED TO START
***************************

Description:

Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.

Action:

Check your application's dependencies for a supported servlet web server.
Check the configured web application type.

Disconnected from the target VM, address: '127.0.0.1:50879', transport: 'socket'

Process finished with exit code 1


Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages