Skip to content

Instantly share code, notes, and snippets.

* Connection #0 to host liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st left intact
➜ ~ (⎈|teleport.liferay.st-liferaycloud-engtools-nonprd_us-west1-engtools-c1:sonarqube-system) curl -v https://liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st/global.css
* Trying 34.120.216.92:443...
* Connected to liferaysampleglobalcss-exti4f5cloudstaging-extuat.lfr.st (34.120.216.92) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
org.osgi.framework.ServiceException: org.apache.felix.scr.impl.manager.SingleComponentManager.getService() returned a null service object
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:232) ~[org.eclipse.osgi.jar:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) ~[org.eclipse.osgi.jar:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) ~[org.eclipse.osgi.jar:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:519) ~[org.eclipse.osgi.jar:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:460) ~[org.eclipse.osgi.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624) ~[org.eclipse.osgi.jar:?]
at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:416) ~[org.eclipse.osgi.jar:?]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityFilterChain' defined in class path resource [com/liferay/client/extension/util/spring/boot/LiferayOAuth2ResourceServerEnableWebSecurity.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Factory method 'securityFilterChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtDecoder' defined in class path resource [com/liferay/client/extension/util/spring/boot/LiferayOAuth2ResourceServerEnableWebSecurity.c
@gamerson
gamerson / log
Created May 1, 2023 18:49
spring boot jwt decoder log
2023-05-01 13:07:30.839 WARN 1773 --- [ main] c.l.c.e.u.spring.boot.LiferayOAuth2Util : Unable to get client ID: Connection refused: localhost/127.0.0.1:8080; nested exception is io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8080
org.springframework.web.reactive.function.client.WebClientRequestException: Connection refused: localhost/127.0.0.1:8080; nested exception is io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8080
at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141)
Suppressed: The stacktrace has been enhanced by Reactor, refer to additional information below:
Error has been observed at the following site(s):
*__checkpoint ⇢ Request to GET http://localhost:8080/o/oauth2/application?externalReferenceCode=liferay-sample-oauth-application-user-agent [DefaultWebClient]
Original Stack Trace:
at o
@gamerson
gamerson / global.css
Created June 29, 2022 22:33
Cursive Global CSS
body {
font-family: cursive;
}
2022-06-02 08:27:17.943 ERROR [main][CETConfigurationFactory:47] bundle com.liferay.client.extension.type.impl:1.0.0 (1018)[com.liferay.client.extension.type.internal.configuration.CETConfigurationFactory(21671)] : The activate method has thrown an exception
com.liferay.portal.kernel.exception.NoSuchCompanyException: No Company exists with the key {webId=liferay.com}
at com.liferay.portal.service.persistence.impl.CompanyPersistenceImpl.findByWebId(CompanyPersistenceImpl.java:120) ~[portal-impl.jar:?]
at com.liferay.portal.service.impl.CompanyLocalServiceImpl.getCompanyByWebId(CompanyLocalServiceImpl.java:666) ~[portal-impl.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?
{
"active":true,
"objectActions":[
],
"label":{
"en_US":"Coupon"
},
"panelCategoryKey":"applications_menu.applications.content",
"pluralLabel":{
{
"active":true,
"objectActions":[
],
"label":{
"en_US":"Coupon Code"
},
"panelCategoryKey":"applications_menu.applications.content",
"pluralLabel":{
: granted_authority: SCOPE_Liferay.Headless.Admin.User.everything
: credentials: org.springframework.security.oauth2.core.OAuth2AccessToken@b8eb5cd7
: details: WebAuthenticationDetails [RemoteIpAddress=192.168.205.1, SessionId=null]
: name: 20127
: principal key: active, val: true
: principal key: client_id, val: id-1c7bb905-4dcf-f49d-b686-187ece212f
: principal key: exp, val: 2022-04-28T17:35:07Z
: principal key: iat, val: 2022-04-28T00:55:07Z
: principal key: scope, val: [Liferay.Headless.Admin.User.everything]
: principal key: sub, val: 20127
@gamerson
gamerson / taskStateUI.json
Created July 23, 2021 16:31
Lugbot `/taskStateUi` Example Response
{
"completedFailure": {
"displayType": "danger",
"label": "Completed with errors",
"state": "COMPLETED_FAILURE"
},
"completedSuccess": {
"displayType": "success",
"label": "Completed successfully",
"state": "COMPLETED_SUCCESS"