javax.validation.ValidationException: HV000183: Unable to initialize 'javax.el.ExpressionFactory'. 에러가 발생하면 라이브러를 추가한다.


2018-07-30T16:04:06,790 DEBUG o.s.b.f.s.DefaultListableBeanFactory.doCreateBean(539) - Eagerly caching bean 'mvcValidator' to allow for resolving potential circular references

2018-07-30T16:04:06,796 DEBUG o.s.b.f.s.DefaultListableBeanFactory.invokeInitMethods(1670) - Invoking afterPropertiesSet() on bean with name 'mvcValidator'

2018-07-30T16:04:06,797 DEBUG o.h.v.i.e.r.DefaultTraversableResolver.detectJPA(70) - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.

2018-07-30T16:04:06,798 DEBUG o.s.v.b.OptionalValidatorFactoryBean.afterPropertiesSet(43) - Failed to set up a Bean Validation provider

javax.validation.ValidationException: HV000183: Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead

        at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.buildExpressionFactory(ResourceBundleMessageInterpolator.java:102)

        at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.<init>(ResourceBundleMessageInterpolator.java:45)

        at org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultMessageInterpolator(ConfigurationImpl.java:423)

        at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:264)


Caused by: java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;

        at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.buildExpressionFactory(ResourceBundleMessageInterpolator.java:98)

        ... 46 common frames omitted




spring boot에서는 아래와 같이 build.gradle 파일을 수정한다. 


    compile('javax.el:javax.el-api:3.0.0')

    compile('org.glassfish:javax.el:3.0.0')




pom.xml 파일을 수정한다.
<dependency>
    <groupId>javax.el</groupId>
    <artifactId>javax.el-api</artifactId>
    <version>3.0.0</version>
</dependency>
<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>javax.el</artifactId>
    <version>3.0.0</version>
</dependency>



Posted by '김용환'
,

BYOD

영어앤영문권 2018. 7. 28. 15:28



개인이 소유한 스마트 기기를 직장에 가져와 업무에 활용하도록 허용하는 정책을 BYOD(Bring Your Own Device)라 란다.



http://www.itworld.co.kr/t/62073/BYOD/105962#csidxa1b4930a03d7000bfd5f74cabc2ecf5




Posted by '김용환'
,


윈도우 10에 리눅스 ps 커맨드와 같은 Get-Process -Name 커맨드,

리눅스 kill 커맨드와 같은 taskkill 커맨드가 있다.



PS C:\Windows\system32> Get-Process -Name "*my*"


Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName

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

    182      13     2544      10476     794.72   3016   0 my_cat

    182      13     2536      10464     777.58   2004   0 my_car

    182      13     2576      10488     792.05   1492   0 my_dog



PS C:\Windows\system32> taskkill /F /PID 3016

SUCCESS: The process with PID 3016 has been terminated.

PS C:\Windows\system32> taskkill /F /PID 2004

SUCCESS: The process with PID 2004 has been terminated.

PS C:\Windows\system32> taskkill /F /PID 1492

SUCCESS: The process with PID 1492 has been terminated.

PS C:\Windows\system32> Get-Process -Name "*my*"


(결과 없음)


'scribbling' 카테고리의 다른 글

[펌] maven/gradle 도커 빌드  (0) 2018.09.05
OpenTsdb 분석  (0) 2018.08.31
ci 소요 시간은 10분이 좋은것 같다..  (0) 2018.07.20
구글 public dns 주소  (0) 2018.07.06
Apache NIFI의 한계  (0) 2018.06.29
Posted by '김용환'
,




opentsdb에 자꾸 ctor라는 주석이 있길래.. 


고민해보니 constructor 였다.


Ctor


Posted by '김용환'
,

powershell

카테고리 없음 2018. 7. 27. 11:31


윈도우 10에서 Compress-Archive를 실행하려면 powershell-admin으로 해야 한다. 

일반 terminal에서는 사용할 수 없다..


Compress-Archive -Path Earth, Mercury, Venus Planets.zip




S C:\Windows\system32> cd C:\Users\Qwiklab\Documents

S C:\Users\Qwiklab\Documents> Compress-Archive -Path Earth, Mercury, Venus Planets.zip

S C:\Users\Qwiklab\Documents> $ErrorActionPreference= 'silentlycontinue'

S C:\Users\Qwiklab\Documents> Unregister-PackageSource -Name chocolatey

S C:\Users\Qwiklab\Documents> Register-PackageSource -Name chocolatey -ProviderName Chocolatey -Location http://chocola

ey.org/api/v2/


he provider 'chocolatey v2.8.5.130' is not installed.

hocolatey may be manually downloaded from https://oneget.org/ChocolateyPrototype-2.8.5.130.exe and installed.

ould you like PackageManagement to automatically download and install 'chocolatey' now?

Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):

S C:\Users\Qwiklab\Documents> Install-Package -Name vlc -Source chocolatey


he provider 'nuget v2.8.5.208' is not installed.

uget may be manually downloaded from https://oneget.org/Microsoft.PackageManagement.NuGetProvider-2.8.5.208.dll and

nstalled.

ould you like PackageManagement to automatically download and install 'nuget' now?

Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):


he package(s) come(s) from a package source that is not marked as trusted.

re you sure you want to install software from 'chocolatey'?

Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"):

ARNING: User declined to install untrusted package (vlc).

S C:\Users\Qwiklab\Documents> Install-Package -Name vlc -Source chocolatey


he package(s) come(s) from a package source that is not marked as trusted.

re you sure you want to install software from 'chocolatey'?

Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y


ame                           Version          Source           Summary

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

hocolatey-core.extension      1.3.3            chocolatey       Helper functions extending core choco functionality

lc                            3.0.3            chocolatey       VLC Media Player



S C:\Users\Qwiklab\Documents> Get-Package -Name vlc


ame                           Version          Source                           ProviderName

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

lc                            3.0.3            C:\Chocolatey\lib\vlc.3.0.3\v... Chocolatey



S C:\Users\Qwiklab\Documents> Choco Uninstall GIMP

hocolatey v0.10.11

ninstalling the following packages:

IMP


imp v2.10.4.20180712

Running auto uninstaller...

Auto uninstaller has successfully uninstalled gimp or detected previous uninstall.

gimp has been successfully uninstalled.


hocolatey uninstalled 1/1 packages.

See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

S C:\Users\Qwiklab\Documents> Get-Package


ame                           Version          Source                           ProviderName

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

-Zip 18.05 (x64)              18.05                                             Programs

ooGet - googet                2.14.2@1                                          Programs

ooGet - google-compute-eng... 1.2.1@1                                           Programs

ooGet - google-compute-eng... 4.2.0@1                                           Programs

ooGet - google-compute-eng... 3.9.0@1                                           Programs

ooGet - google-compute-eng... 1.1.0@4                                           Programs

ooGet - google-compute-eng... 4.4.0@1                                           Programs

tom                           1.28.2                                            Programs

oogle Cloud SDK                                                                 Programs

oogle Chrome                  68.0.3440.75                                      msi

oogle Update Helper           1.3.33.17                                         msi

hocolatey-core.extension      1.3.3            C:\Chocolatey\lib\chocolatey-... Chocolatey

lc                            3.0.3            C:\Chocolatey\lib\vlc.3.0.3\v... Chocolatey



S C:\Users\Qwiklab\Documents>

S C:\Users\Qwiklab\Documents> Get-Package


ame                           Version          Source                           ProviderName

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

-Zip 18.05 (x64)              18.05                                             Programs

ooGet - googet                2.14.2@1                                          Programs

ooGet - google-compute-eng... 1.2.1@1                                           Programs

ooGet - google-compute-eng... 4.2.0@1                                           Programs

ooGet - google-compute-eng... 3.9.0@1                                           Programs

ooGet - google-compute-eng... 1.1.0@4                                           Programs

ooGet - google-compute-eng... 4.4.0@1                                           Programs

tom                           1.28.2                                            Programs

oogle Cloud SDK                                                                 Programs

oogle Chrome                  68.0.3440.75                                      msi

oogle Update Helper           1.3.33.17                                         msi

hocolatey-core.extension      1.3.3            C:\Chocolatey\lib\chocolatey-... Chocolatey

lc                            3.0.3            C:\Chocolatey\lib\vlc.3.0.3\v... Chocolatey



S C:\Users\Qwiklab\Documents>



Posted by '김용환'
,


검색버튼을 눌러 powershell을 찾는다.


powershell을 바로 실행하지 않고 powershell 아이콘 위에서 오른쪽 마우스 클릭하고  



"Run as Administrator"을 실행한다.

Posted by '김용환'
,

보니까.ci 소요 시간이 10분이내가 적절하다고 보는 분들이 많았다..



https://semaphoreci.com/blog/2017/03/02/what-is-proper-continuous-integration.html


https://semaphoreci.com/blog/2017/03/16/measure-and-improve-your-ci-speed.html


https://martinfowler.com/bliki/ContinuousIntegrationCertification.html


https://www.google.co.kr/search?q=ten+minutes+continuous+integration&oq=ten+minutes+continuous+integration




어떻게든 ci 속도를 10분으로.. 고민해야된다..




내가 예전에 진행했던 3000개 테스팅에 대한 CI 속도는 10분이내였다.


Hancom MDS Conference - KAKAO DEVOPS Practice (카카오 스토리의 Devops 사례) from knight1128


Posted by '김용환'
,

go 언어 gc 관련 소개 자료이다.


https://blog.golang.org/ismmkeynote



좋은 자료는 다음과 같다. 


http://www.cs.ucsb.edu/~ckrintz/racelab/gc/papers/ 에서 dijkstra의 tri-color 알고리즘(http://www.cs.ucsb.edu/~ckrintz/racelab/gc/papers/dijkstra-on-the-fly.pdf)


optimizing java 책


gc faq

https://www.iecc.com/gclist/GC-algorithms.html







'golang' 카테고리의 다른 글

ts2dt 타임스탬프를 날짜로 변경해주기  (0) 2019.10.11
[golang] 고루틴(go routine) 예제  (0) 2017.09.08
[golang] 매개 변수 받기  (0) 2017.09.08
[golang] 에러(error) 예제  (0) 2017.09.07
[golang] defer 예제  (0) 2017.09.07
Posted by '김용환'
,

mvnw 설치하기

general java 2018. 7. 11. 20:25


mvnw(gradlew와 비슷한 툴)를 실행하는 방법이다.


먼저 mvn을 먼저 설치하고 다음 커맨드를 실행한다.


$ mvn -N io.takari:maven:wrapper -Dmaven=3.5.3


메이븐 버전은 항상 고려한다.

https://maven.apache.org/docs/ 




패키징 한다. 스프링 부트의 경우 설정에 따라서 데몬 까지 한번에 실행될 수 있다. 


$ ./mvnw clean package


Posted by '김용환'
,




kafka에서 retention.ms 수정하는 방법은 다음 예처럼 간단한다. 


$ ./bin/kafka-topics.sh  --create  --zookeeper zkserver -replication-factor 1 --partitions 1 --topic samuel.test


$ ./bin/kafka-topics.sh  --describe --zookeeper zkserver --topic samuel.test

Topic:samuel.test PartitionCount:1 ReplicationFactor:1 Configs:

Topic: samuel.test Partition: 0 Leader: 25 Replicas: 25 Isr: 25

$ ./bin/kafka-topics.sh --zookeeper zkserver --alter --topic samuel.test --config retention.ms=86400000



$ ./bin/kafka-topics.sh  --describe --zookeeper zkserver --topic samuel.test

Topic:samuel.test PartitionCount:1 ReplicationFactor:1 Configs:retention.ms=86400000

Topic: samuel.test Partition: 0 Leader: 25 Replicas: 25 Isr: 25

Posted by '김용환'
,