반응형

심각: Servlet.service() for servlet [appServlet] in context with path [] threw exception [java.lang.IllegalStateException: getOutputStream() has already been called for this response] with root cause

java.lang.IllegalStateException: getOutputStream() has already been called for this response


spring + jpa 환경에서


@ResponseBody 하면서 json 으로 응답하면서 jpa 관계 설정이 안맞아서 인지 예외가 발생했다.

Entity 에 @JsonBackReference 를 적당히 사용하면 된다고 나왔다.


@OneToMany 관계에서 일대다 관계에서 @JsonBackReference 써주면 OneToMany관계의 다의 관계 데이터가 Json 으로 잘 변환되어

넘어온다.


흐흐.. 어렵다.

반응형
반응형

http://www.codeigniter.com/ 에서 최근 버전을 다운로드 받는다.


The latest is Version 3.0.1 버전을 받았다.



압축된 소스파일을 WEB Root 풀어 주기만 하면 된다.



가이드는 http://www.codeigniter.com/user_guide/ 에 생각보단 잘 정리되 있다.



http://www.codeigniter.com/user_guide/overview/appflow.html




Application Flow Chart

The following graphic illustrates how data flows throughout the system:

CodeIgniter application flow

  1. The index.php serves as the front controller, initializing the base resources needed to run CodeIgniter.
  2. The Router examines the HTTP request to determine what should be done with it.
  3. If a cache file exists, it is sent directly to the browser, bypassing the normal system execution.
  4. Security. Before the application controller is loaded, the HTTP request and any user submitted data is filtered for security.
  5. The Controller loads the model, core libraries, helpers, and any other resources needed to process the specific request.
  6. The finalized View is rendered then sent to the web browser to be seen. If caching is enabled, the view is cached first so that on subsequent requests it can be served.


http://www.codeigniter.com/user_guide/general/index.html 여기 토픽별 상세하게 나와 있다.


반응형
반응형


The method greaterThan(Expression<? extends Y>, Expression<? extends Y>) in the type CriteriaBuilder is not applicable for the arguments (Path<Comparable>, Comparable<capture#8-of ?>)



반응형
반응형


@Temporal(javax.persistence.TemporalType.DATE)

@Column(name="create_dttm")

private Date createDttm;


WARN : org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 1048, SQLState: 23000

ERROR: org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Column 'create_dttm' cannot be null



update시 필요 없는 컬럼은 빼기..

컬럼 속성에 있다.  updatable=false


@Column(name="create_dttm", updatable=false)


insertable 속성도 있다.




반응형
반응형

"이 웹페이지에 리디렉션 순환 오류가 있습니다"


http://localhost:8180/login 웹페이지에서 리디렉션이 너무 많이 발생했습니다. 이 사이트에서 쿠키를 삭제하거나 타사 쿠키를 허용하면 문제가 해결될 수 있습니다. 그래도 문제가 해결되지 않으면 컴퓨터에 문제가 있는 것이 아니라 서버 설정과 관련된 문제일 수 있습니다.


springSecurityFilterChain 를 통한 로그인을 하던중 ..


<intercept-url pattern="/login" access="hasRole('IS_AUTHENTICATED_ANONYMOUSLY')" />

위의 access를 아래의 permitAll로 바꿨다. 

<intercept-url pattern="/login" access="permitAll"  />


IS_AUTHENTICATED_ANONYMOUSLY 요놈도  익명 사용자로 인증된 놈만 접근이 되는거라서 무한 순환 오류가 발생한 것으로 보인다. 





반응형
반응형

C:\Users\Administrator\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!

기본 실행시 위와 같은 메세지가 나온다.

에뮬레이터 에러 라고 합니다.

하드웨어 가속이 필요하다고 합니다.

 

HAX 커널 모듈이 설치 안되었다고 합니다.

http://www.youtube.com/watch?v=Ar9_FUFJhDU

 

https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows

 

위 링크 대로 해보도 내컴은 안된다(ㅠㅠ 오래된 노트북이라서 그런가? )

 

 

 

 

 

다른 방법으로..

HAXM 사용하지 않은 방법으로 변경..


...

이것저것 뒤져봤으나 안되서..

휴대폰 연결해서 하기로 함. 

아직도 갤럭시 S2 사용중. ㅠㅠ



 

 

 

반응형
반응형

1. 처음 안드로이드 스튜디오 시작시 실행 되는

  시작 화면에서 Start a new Android Studio project 를 클릭하여 새로운 프로젝트를 생성한다.

 

 

 

2. 새로운 프로젝트 생성 설정 화면이다.

Application name : 사용자에게 표시되는 애플리케이션 이름을 입력합니다. 필자는 "My First App" 으로 등록하였다.

Company Domain : 도메인을 입력한다.  입력한 도메인은 패키지 이름에 추가된다. 필자는 "daonstar.com" 으로 등록하였다.

Package name : 패키지 이름은 Application name 고 Company Domain 입력에 의해 제공되면 옆에 Edit 를 클릭하여 수정 할수 있다.

프로젝트 정보를 입력후 Next 버튼을 클릭하여 다음 단계로 이동한다.

 

 

 

 

3. 앱이 실행되는 환경을 선택합니다.

 

 

 

4. 액티비티를 추가하는 화면이다. Blank Activity 를 클릭하여 다음단계로 넘어간다.

 

 

 

 

5. 액티비티 설정 화면 이다. 기본 값으로 진행 한다.

 

 

 

 

 

반응형
반응형

Andriod Studio설치 과정을 소개합니다.



http://developer.android.com/sdk/index.html

 

 

 

 

 

반응형
반응형

Tomcat Connect 설정

반응형
반응형

http://www.slideshare.net/habuma/whats-new-in-spring-3

반응형

+ Recent posts