Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

endpointClass cannot be null in backoffice UI with oauth2-starter added #90

Closed
web-devel opened this issue May 26, 2021 · 1 comment
Closed
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@web-devel
Copy link
Contributor

1.0.0-SNAPSHOT

    implementation "io.jmix.security:jmix-security-oauth2-starter"
    implementation "io.jmix.graphql:jmix-graphql-starter"
    runtimeOnly "com.graphql-java-kickstart:graphiql-spring-boot-starter:8.1.1"
    implementation 'io.jmix.rest:jmix-rest-starter'

The following exception is thrown

java.lang.ExceptionInInitializerError: null
	at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:122) ~[tomcat-embed-websocket-9.0.46.jar:9.0.46]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:940) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.46.jar:9.0.46]
	at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Caused by: java.lang.IllegalArgumentException: endpointClass cannot be null
	at javax.websocket.server.ServerEndpointConfig$Builder.<init>(ServerEndpointConfig.java:314) ~[javax.websocket-api-1.1.jar:1.1]
	at javax.websocket.server.ServerEndpointConfig$Builder.create(ServerEndpointConfig.java:287) ~[javax.websocket-api-1.1.jar:1.1]
Caused by: java.lang.IllegalArgumentException: endpointClass cannot be null

It seems web-sockets do not workf

@web-devel web-devel added the type: bug Something isn't working label May 26, 2021
@web-devel web-devel added this to the 1.0.0 milestone May 26, 2021
@andreysubbotin
Copy link
Contributor

Use graphiql-spring-boot-starter with excluded dependencies:

runtimeOnly ("com.graphql-java-kickstart:graphql-spring-boot-starter:8.1.1") {
    exclude group: 'javax.websocket', module: 'javax.websocket-api'
}

jkiddo added a commit to hapifhir/hapi-fhir-jpaserver-starter that referenced this issue Nov 18, 2021
michaelabuckley added a commit to hapifhir/hapi-fhir-jpaserver-starter that referenced this issue Dec 9, 2021
* master:
  Update application.yaml
  Bumped version of Spring Boot in order to fix same issue as jmix-projects/jmix-security#90
  Upgraded to 5.6.0 Subscription tests fail ...
  Added OpenAPI / Swagger option
  simplified helm chart
  build ARM-compatible images
  bumped dependencies to latest
  only push build images to DockerHub
  Adds ability to change HAPI FHIR JPA server's port with the environment variable server.port
  Adds ability to control the number of executor threads through environment variables server.tomcat.max-threads and server.tomcat.min-spare-threads.  There is not a breaking change and does not affect the function of the JPA server unless these environment variables are set.
  Adds ability to use delete-expunge operations to the JPA Starter Server.

# Conflicts:
#	pom.xml
#	src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
#	src/main/java/ca/uhn/fhir/jpa/starter/Application.java
#	src/main/java/ca/uhn/fhir/jpa/starter/EnvironmentHelper.java
#	src/main/java/ca/uhn/fhir/jpa/starter/FhirServerConfigCommon.java
#	src/main/java/ca/uhn/fhir/jpa/starter/FhirServerConfigDstu2.java
#	src/main/java/ca/uhn/fhir/jpa/starter/FhirServerConfigDstu3.java
#	src/main/java/ca/uhn/fhir/jpa/starter/FhirServerConfigR4.java
#	src/main/java/ca/uhn/fhir/jpa/starter/FhirServerConfigR5.java
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants