あと、資料まとめ
囲碁好きSE
2022年7月15日金曜日
2020年9月26日土曜日
TypeScriptとjestの組み合わせで、テスト実行するとエラーが発生(test is not defined、describe is not defined)
投稿者
j-chon
【エラー】test is not defined、describe is not defined
【概要】
TypeScriptとjestの組み合わせで、テスト実行するとエラーが発生(test is not defined、describe is not defined)
【詳細】
node.jsのバージョンが低いのが問題だった模様。
「v12.18.4」はOKだった。
※ v10.16.2以上ならOKぽい
(参考)
https://stackoverflow.com/questions/59927799/referenceerror-describe-is-not-defined-in-jest-typescript
【残課題】
なし
2019年7月28日日曜日
There was no object available for injection at SystemInjecteeImpl(requiredType=
投稿者
j-chon
【エラー】
There was no object available for injection at SystemInjecteeImpl(requiredType=YYYYYY,parent=XXXXX,qualifiers={},position=-1,optional=false,self=false,unqualified=null,519305832)
【概要】
jersey(Dropwizard)でInjectに失敗。
コンテナに登録していないことが問題。
以下で解決
【詳細】
特になし
There was no object available for injection at SystemInjecteeImpl(requiredType=YYYYYY,parent=XXXXX,qualifiers={},position=-1,optional=false,self=false,unqualified=null,519305832)
【概要】
jersey(Dropwizard)でInjectに失敗。
コンテナに登録していないことが問題。
以下で解決
environment.jersey().register(new AbstractBinder() { @Override protected void configure() { bind(YYYYYY.class).to(YYYYYY.class); }});
【詳細】
特になし
【残課題】
特になし
2018年11月20日火曜日
Unresolved function or method Array()
【エラー】
Unresolved function or method Array()
【概要】
IntelliJ でtypescriptを記述していたが、tslintのチェックで
「Unresolved function or method Array()」
が表示されていくら設定変えても消えない。
【対応】
IntelliJを再起動で解決。
【残課題】
なし
Unresolved function or method Array()
【概要】
IntelliJ でtypescriptを記述していたが、tslintのチェックで
「Unresolved function or method Array()」
が表示されていくら設定変えても消えない。
【対応】
IntelliJを再起動で解決。
【残課題】
なし
2018年8月13日月曜日
ElasticbeansTalkのヘルスチェックとセキュリティグループ
投稿者
j-chon
タグ
AWS
【エラー】
ElasticBeansTalkのヘルスチェックで重大が発生する。
※デプロイ自体はうまくいく
【概要】
RDS接続のためにセキュリティグループをいじっていたら、ElasticBeansTalkのヘルスチェックで重大が発生するようになった。
エラー内容はデータなし。
【詳細】
アウトバウンドがデフォルト、なんでもOKになっていたのを消したために、ヘルスチェックの応答?がうまくできなくなっていた。
アウトバウンドにすべてのトラフィックを追加したら解消。
【残課題】
なし。
ElasticBeansTalkのヘルスチェックで重大が発生する。
※デプロイ自体はうまくいく
【概要】
RDS接続のためにセキュリティグループをいじっていたら、ElasticBeansTalkのヘルスチェックで重大が発生するようになった。
エラー内容はデータなし。
【詳細】
アウトバウンドがデフォルト、なんでもOKになっていたのを消したために、ヘルスチェックの応答?がうまくできなくなっていた。
アウトバウンドにすべてのトラフィックを追加したら解消。
【残課題】
なし。
2018年5月29日火曜日
投稿者
j-chon
【エラー】
2018-05-29 23:25:39,958 [main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
2018-05-29 23:25:39,958 [main] INFO org.apache.catalina.core.StandardService - Stopping service Tomcat
2018-05-29 23:25:39,974 [main] INFO org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer -
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-05-29 23:25:39,990 [main] ERROR org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'responseEntityBuilder' defined in file [C:\Users\masaf\git\ApiLogic\target\classes\com\platfolio\api\builder\ResponseEntityBuilder.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'java.lang.Object' available: more than one 'primary' bean found among candidates: [org.springframework.context.annotation.internalConfigurationAnnotationProcessor, org.springframework.context.annotation.internalAutowiredAnnotationProcessor, org.springframework.context.annotation.internalRequiredAnnotationProcessor, org.springframework.context.annotation.internalCommonAnnotationProcessor, org.springframework.context.annotation.internalPersistenceAnnotationProcessor, org.springframework.context.event.internalEventListenerProcessor, org.springframework.context.event.internalEventListenerFactory, application, org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory, loginController, parentController, preschoolController, pushController, loginLogic, parentLogic, pushLogic, schoolLogic, childService, familyService, notificationHistoryService, parentService, pushService, schoolInfoService, loggingFilter, org.springframework.boot.autoconfigure.AutoConfigurationPackages, org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension#0, org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport_Predictor, emBeanDefinitionRegistrarPostProcessor, jpaMappingContext, jpaContext, loginUserRepository, schoolRepository, personRepository, familyRepository, childSchoolScheduleRepository, schoolUnitRepository, schoolEventScheduleRepository, notificationHistoryRepository, schoolGroupRepository, childRepository, org.springframework.boot.autoconfigure.domain.EntityScanPackages, org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration, org.springframework.boot.autoconfigure.condition.BeanTypeRegistry, propertySourcesPlaceholderConfigurer, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration, standardJacksonObjectMapperBuilderCustomizer, spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties, org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor, org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.store, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration, jacksonObjectMapperBuilder, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration, jacksonObjectMapper, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration, jsonComponentModule, org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration$TomcatWebSocketConfiguration, websocketContainerCustomizer, org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration, org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat, tomcatEmbeddedServletContainerFactory, org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration, embeddedServletContainerCustomizerBeanPostProcessor, errorPageRegistrarBeanPostProcessor, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletConfiguration, dispatcherServlet, spring.mvc-org.springframework.boot.autoconfigure.web.WebMvcProperties, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration, dispatcherServletRegistration, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration, org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration, error, beanNameViewResolver, org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration, errorAttributes, basicErrorController, errorPageCustomizer, conventionErrorViewResolver, preserveErrorControllerTargetClassPostProcessor, spring.resources-org.springframework.boot.autoconfigure.web.ResourceProperties, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$EnableWebMvcConfiguration, requestMappingHandlerAdapter, requestMappingHandlerMapping, mvcPathMatcher, mvcUrlPathHelper, mvcContentNegotiationManager, viewControllerHandlerMapping, beanNameHandlerMapping, resourceHandlerMapping, mvcResourceUrlProvider, defaultServletHandlerMapping, mvcConversionService, mvcValidator, mvcUriComponentsContributor, httpRequestHandlerAdapter, simpleControllerHandlerAdapter, handlerExceptionResolver, mvcViewResolver, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter$FaviconConfiguration, faviconHandlerMapping, faviconRequestHandler, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter, defaultViewResolver, viewResolver, welcomePageHandlerMapping, requestContextFilter, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration, hiddenHttpMethodFilter, httpPutFormContentFilter, org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration, mbeanExporter, objectNamingStrategy, mbeanServer, org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration, springApplicationAdminRegistrar, org.springframework.boot.autoconfigure.aop.AopAutoConfiguration$JdkDynamicAutoProxyConfiguration, org.springframework.aop.config.internalAutoProxyCreator, org.springframework.boot.autoconfigure.aop.AopAutoConfiguration, org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration, spring.jta-org.springframework.boot.autoconfigure.transaction.jta.JtaProperties, org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat, dataSource, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$PooledDataSourceConfiguration, org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration$TomcatDataSourcePoolMetadataProviderConfiguration, tomcatPoolDataSourceMetadataProvider, org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, dataSourceInitializer, spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties, dataSourceInitializerPostProcessor, org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration$JpaWebMvcConfiguration, openEntityManagerInViewInterceptor, org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, transactionManager, jpaVendorAdapter, entityManagerFactoryBuilder, entityManagerFactory, spring.jpa-org.springframework.boot.autoconfigure.orm.jpa.JpaProperties, dataSourceInitializedPublisher, org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration, org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration, persistenceExceptionTranslationPostProcessor, org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration$StringHttpMessageConverterConfiguration, stringHttpMessageConverter, spring.http.encoding-org.springframework.boot.autoconfigure.web.HttpEncodingProperties, org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration, mappingJackson2HttpMessageConverter, org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration, org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration, messageConverters, org.springframework.data.web.config.SpringDataWebConfiguration, pageableResolver, sortResolver, org.springframework.data.web.config.SpringDataJacksonConfiguration, jacksonGeoModule, org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration, org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration, spring.info-org.springframework.boot.autoconfigure.info.ProjectInfoProperties, org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration, org.springframework.transaction.config.internalTransactionAdvisor, transactionAttributeSource, transactionInterceptor, org.springframework.transaction.config.internalTransactionalEventListenerFactory, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$TransactionManagementConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$DataSourceTransactionManagerConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, jdbcTemplate, namedParameterJdbcTemplate, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, transactionTemplate, org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration, characterEncodingFilter, localeCharsetMappingsCustomizer, org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration, multipartConfigElement, multipartResolver, spring.http.multipart-org.springframework.boot.autoconfigure.web.MultipartProperties, org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration, serverProperties, duplicateServerPropertiesDetector, org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration$RestTemplateConfiguration, restTemplateBuilder, org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration, org.springframework.orm.jpa.SharedEntityManagerCreator#0, autoConfigurationReport, springApplicationArguments, springBootBanner, springBootLoggingSystem, environment, systemProperties, systemEnvironment, org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry, messageSource, applicationEventMulticaster, servletContext, contextParameters, contextAttributes]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
【概要】
DIの失敗
【詳細】
※引数ありコンストラクタがなければ、自動で引数無しコンストラクタが生成されるのでその場合は問題なし。(これは単にjavaの仕様)
2018-05-29 23:25:39,958 [main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
2018-05-29 23:25:39,958 [main] INFO org.apache.catalina.core.StandardService - Stopping service Tomcat
2018-05-29 23:25:39,974 [main] INFO org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer -
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-05-29 23:25:39,990 [main] ERROR org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'responseEntityBuilder' defined in file [C:\Users\masaf\git\ApiLogic\target\classes\com\platfolio\api\builder\ResponseEntityBuilder.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'java.lang.Object' available: more than one 'primary' bean found among candidates: [org.springframework.context.annotation.internalConfigurationAnnotationProcessor, org.springframework.context.annotation.internalAutowiredAnnotationProcessor, org.springframework.context.annotation.internalRequiredAnnotationProcessor, org.springframework.context.annotation.internalCommonAnnotationProcessor, org.springframework.context.annotation.internalPersistenceAnnotationProcessor, org.springframework.context.event.internalEventListenerProcessor, org.springframework.context.event.internalEventListenerFactory, application, org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory, loginController, parentController, preschoolController, pushController, loginLogic, parentLogic, pushLogic, schoolLogic, childService, familyService, notificationHistoryService, parentService, pushService, schoolInfoService, loggingFilter, org.springframework.boot.autoconfigure.AutoConfigurationPackages, org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension#0, org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport_Predictor, emBeanDefinitionRegistrarPostProcessor, jpaMappingContext, jpaContext, loginUserRepository, schoolRepository, personRepository, familyRepository, childSchoolScheduleRepository, schoolUnitRepository, schoolEventScheduleRepository, notificationHistoryRepository, schoolGroupRepository, childRepository, org.springframework.boot.autoconfigure.domain.EntityScanPackages, org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration, org.springframework.boot.autoconfigure.condition.BeanTypeRegistry, propertySourcesPlaceholderConfigurer, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration, standardJacksonObjectMapperBuilderCustomizer, spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties, org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor, org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.store, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration, jacksonObjectMapperBuilder, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration, jacksonObjectMapper, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration, jsonComponentModule, org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration$TomcatWebSocketConfiguration, websocketContainerCustomizer, org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration, org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat, tomcatEmbeddedServletContainerFactory, org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration, embeddedServletContainerCustomizerBeanPostProcessor, errorPageRegistrarBeanPostProcessor, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletConfiguration, dispatcherServlet, spring.mvc-org.springframework.boot.autoconfigure.web.WebMvcProperties, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration, dispatcherServletRegistration, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration, org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration, error, beanNameViewResolver, org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration, errorAttributes, basicErrorController, errorPageCustomizer, conventionErrorViewResolver, preserveErrorControllerTargetClassPostProcessor, spring.resources-org.springframework.boot.autoconfigure.web.ResourceProperties, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$EnableWebMvcConfiguration, requestMappingHandlerAdapter, requestMappingHandlerMapping, mvcPathMatcher, mvcUrlPathHelper, mvcContentNegotiationManager, viewControllerHandlerMapping, beanNameHandlerMapping, resourceHandlerMapping, mvcResourceUrlProvider, defaultServletHandlerMapping, mvcConversionService, mvcValidator, mvcUriComponentsContributor, httpRequestHandlerAdapter, simpleControllerHandlerAdapter, handlerExceptionResolver, mvcViewResolver, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter$FaviconConfiguration, faviconHandlerMapping, faviconRequestHandler, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter, defaultViewResolver, viewResolver, welcomePageHandlerMapping, requestContextFilter, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration, hiddenHttpMethodFilter, httpPutFormContentFilter, org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration, mbeanExporter, objectNamingStrategy, mbeanServer, org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration, springApplicationAdminRegistrar, org.springframework.boot.autoconfigure.aop.AopAutoConfiguration$JdkDynamicAutoProxyConfiguration, org.springframework.aop.config.internalAutoProxyCreator, org.springframework.boot.autoconfigure.aop.AopAutoConfiguration, org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration, spring.jta-org.springframework.boot.autoconfigure.transaction.jta.JtaProperties, org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat, dataSource, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$PooledDataSourceConfiguration, org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration$TomcatDataSourcePoolMetadataProviderConfiguration, tomcatPoolDataSourceMetadataProvider, org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, dataSourceInitializer, spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties, dataSourceInitializerPostProcessor, org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration$JpaWebMvcConfiguration, openEntityManagerInViewInterceptor, org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, transactionManager, jpaVendorAdapter, entityManagerFactoryBuilder, entityManagerFactory, spring.jpa-org.springframework.boot.autoconfigure.orm.jpa.JpaProperties, dataSourceInitializedPublisher, org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration, org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration, persistenceExceptionTranslationPostProcessor, org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration$StringHttpMessageConverterConfiguration, stringHttpMessageConverter, spring.http.encoding-org.springframework.boot.autoconfigure.web.HttpEncodingProperties, org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration, mappingJackson2HttpMessageConverter, org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration, org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration, messageConverters, org.springframework.data.web.config.SpringDataWebConfiguration, pageableResolver, sortResolver, org.springframework.data.web.config.SpringDataJacksonConfiguration, jacksonGeoModule, org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration, org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration, spring.info-org.springframework.boot.autoconfigure.info.ProjectInfoProperties, org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration, org.springframework.transaction.config.internalTransactionAdvisor, transactionAttributeSource, transactionInterceptor, org.springframework.transaction.config.internalTransactionalEventListenerFactory, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$TransactionManagementConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$DataSourceTransactionManagerConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, jdbcTemplate, namedParameterJdbcTemplate, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, transactionTemplate, org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration, characterEncodingFilter, localeCharsetMappingsCustomizer, org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration, multipartConfigElement, multipartResolver, spring.http.multipart-org.springframework.boot.autoconfigure.web.MultipartProperties, org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration, serverProperties, duplicateServerPropertiesDetector, org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration$RestTemplateConfiguration, restTemplateBuilder, org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration, org.springframework.orm.jpa.SharedEntityManagerCreator#0, autoConfigurationReport, springApplicationArguments, springBootBanner, springBootLoggingSystem, environment, systemProperties, systemEnvironment, org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry, messageSource, applicationEventMulticaster, servletContext, contextParameters, contextAttributes]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
【概要】
DIの失敗
【詳細】
DIに失敗したエラー
Spring bootでクラスに@Componentアノテーションをつけて、DI可能にしたにもかかわらず
引数無しコンストラクタをなくしてしまった場合に発生する。
引数ありコンストラクタと、合わせて引数無しコンストラクタを記述することで解決する。
メッセージみてもさっぱり。
※引数ありコンストラクタがなければ、自動で引数無しコンストラクタが生成されるのでその場合は問題なし。(これは単にjavaの仕様)
2018年4月9日月曜日
【AWS】APIのレスポンスがなぜかgzipになる
投稿者
j-chon
タグ
AWS
Accept-Encoding が設定されているわけでもないリクエストに対して、レスポンスがgzipになってしまう事象が発生。
APIGatewayのsdkを使ってAPIを呼び出していたが、JavaClientではjson形式で受信。
Objective-cのsdkではなぜかヘッダーがgzipとなって受信エラーになっていた。
調査の結果
elasticbeansTalkでapache-tomcatで構成されたspringboot環境でAPIサーバーを構築していたが、elastickBeansTalkのWEBサーバー設定で、gzip圧縮有効にしていたこことが判明。
たぶんそれで解決、のはず・・・
ちなみに、なぜ、sdkによって差異が出るかは不明。微妙にレスポンスボディのサイズが違う?
APIGatewayのsdkを使ってAPIを呼び出していたが、JavaClientではjson形式で受信。
Objective-cのsdkではなぜかヘッダーがgzipとなって受信エラーになっていた。
調査の結果
elasticbeansTalkでapache-tomcatで構成されたspringboot環境でAPIサーバーを構築していたが、elastickBeansTalkのWEBサーバー設定で、gzip圧縮有効にしていたこことが判明。
たぶんそれで解決、のはず・・・
ちなみに、なぜ、sdkによって差異が出るかは不明。微妙にレスポンスボディのサイズが違う?
2018年1月29日月曜日
Let's Encryptでの更新でエラー
80ポートをListenしていなかったのが原因。
出たエラー
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for xxxxxxxxx.jp
Using the webroot path /var/www for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. xxxxxxxxx.jp (http-01): urn:acme:error:connection ::
The server could not connect to the client to verify the domain ::
Fetching http://xxxxxxxxx.jp/.well-known/acme-challenge/xxxxxxxxxxxxxxxxxxxx-wk-xxxxxxxxxxxx: Connection refused
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: xxxxxxxxx.jp
Type: connection
Detail: Fetching
http://xxxxxxxxx.jp/.well-known/acme-challenge/xxxxxxxxxxxxxxxxx-wk-xxxxxxxxxxxxxxx:
Connection refused
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
出たエラー
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for xxxxxxxxx.jp
Using the webroot path /var/www for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. xxxxxxxxx.jp (http-01): urn:acme:error:connection ::
The server could not connect to the client to verify the domain ::
Fetching http://xxxxxxxxx.jp/.well-known/acme-challenge/xxxxxxxxxxxxxxxxxxxx-wk-xxxxxxxxxxxx: Connection refused
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: xxxxxxxxx.jp
Type: connection
Detail: Fetching
http://xxxxxxxxx.jp/.well-known/acme-challenge/xxxxxxxxxxxxxxxxx-wk-xxxxxxxxxxxxxxx:
Connection refused
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
2016年2月22日月曜日
java.lang.IllegalArgumentException: Setter not found for property class
投稿者
j-chon
タグ
GlassFish,
java EE,
JSF,
PrimeFaces
【エラー】
java.lang.IllegalArgumentException: Setter not found for property class
【概要】ローカルでは出なかったが、サーバーでデプロイすると発生
【原因】
jsfもしくはprimefacesのタグにclassを指定したことが原因の模様
なぜローカル実行で発生しないのかは不明。
指定する場合はstyleClassを指定しろとのこと。
サンプルコード
a b c【残課題】
htmlのタグを使うときはとりあえず、
passThroughをつけておいたほうがよさそう。
というか今回はclassは削除して、それ以外は全部つけてからやったので、実際にどのタグで起きたのかは不明・・・
もしかしたらprimefacesだけ?
【参考】
http://stackoverflow.com/questions/16935343/java-lang-illegalargumentexception-setter-not-found-for-property-class
登録:
投稿 (Atom)