서버에서 이미지 캔버스 사용 변환시

이미지
  톰캣의 catalina.sh 수정 cd /server/tomcat8/bin vi catalina.sh CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS" shift fi CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true" // 이 부분(1줄)을 추가한다 if [ "$1" = "debug" ] ; then if $os400; then echo "Debug command not available on OS400" exit 1 else shift 삽입 위치도 중요 하다. 이것은 일종의 JDK의 버그이다. 원인은 자바가 BufferedImage 를 생성하고 실제로 Graphics 객체를 얻어오기 위해 getGraphics나 createGraphics 메소드를 부를때, 실제로 display하거나 mouse, keyboard 자원을 하나도 쓰지 않을 것임에도 불구하고 내부적으로 AWT Toolkit이 그것들에 대한 자원을 얻어오게 되어있었기 때문이다.  출처: https://soye0n.tistory.com/67 [코린이의 기록:티스토리] 참조 : https://dbility.com/entry/linux-%ED%99%98%EA%B2%BD-java-Graphics2D-%EC%83%9D%EC%84%B1%EC%9D%B4-%EC%95%88%EB%90%A0-%EB%95%8C

jsonp java 구현시 jQuery was not called 나오는 경우

 호출 하는 곳  function checkBal (){ var url = "http://1.1.1.1/Search/check?callback=?" $ . ajax ({ url: url , type : "GET" , dataType: "jsonp" , data: { 'id': 'test' }, jsonpCallback: "callback" , success: function ( data ) { console . log ( 'callback success' ); }, error: function ( request , status , error ){ console . log ( "code:" + request . status + "\n" + "message:" + request . responseText + "\n" + "error:" + error ); } }) 서버쪽 @RequestMapping ( value = "/check" , method = RequestMethod . GET ) @ResponseBody public void request ( @RequestParam String spcBizNo , @RequestParam String callback , HttpServletResponse response ) throws IOException { Map < String , String > paramMap = new HashMap < String , String > () ; ...

Server Tomcat v8.5 Server at localhost failed to start.

이미지
  출처: https://beagle-dev.tistory.com/76 [언젠간 되어있겠지:티스토리]

No editor descriptor for id org.eclipse.wst.jsdt.ui.CompilationUnitEditor 증상 해결 방법

이미지
 No editor descriptor for id org.eclipse.wst.jsdt.ui.CompilationUnitEditor clean and build  다시 JS 파일을 오픈한다

jqgrid excell export 시 숫자 표현에 comma 때문에 문자 처리 되는 것 분기를 태워야 한다.

  util . setCommaInt formatter : function ( value , options , rdata ) { if ( options . exporttype === "excel" ) { return value ; } else { return util . setCommaInt ( value ); }

The following _TypeError was thrown building PrimaryScrollController(_NestedScrollController#82ad6(inner, no clients)):

The following _TypeError was thrown building PrimaryScrollController(_NestedScrollController#82ad6(inner, no clients)): Null check operator used on a null value   class PostDataListMenu extends StatefulWidget { final PostData? postdata ; PostDataListMenu({Key? key , this . postdata }) : super (key: key) ; @override _PostDataListMenu createState () => _PostDataListMenu (postdata!) ; } 수정 후 -- null check 수정 class _PostDataListNotice extends State<PostDataListNotice> { final PostData? postdata; final ScrollController _scrollController = ScrollController () ; _PostDataListNotice( this . postdata ) ; @override void initState () { super .initState() ; } _PostDataListMenu createState () => _PostDataListMenu (postdata) ;

type 'Null' is not a subtype of type 'Widget' in type cast

 type 'Null' is not a subtype of type 'Widget' in type cast Flutter를 다운그레이드하지 마세요. 문제: ! 이 오류는 초기화되지 않은 nullable 인스턴스에  bang 연산자( )를 사용할 때 발생합니다 . 예를 들어: String? string; // Nullable String void main() { var len = string!.length; // Runtime error: Null check operator used on a null value } 솔루션: 로그를 열면 오류가 발생한 프로젝트의 파일을 가리키는 줄이 있어야 합니다. null 값에 사용되는 null 검사 연산자 #0 메인 (package:example/main.dart:22:16) 거기에 있으면 다음 방법 중 하나를 사용하여 문제를 해결할 수 있습니다. 지역 변수 사용 var s = string; if (s != null ) { var len = s.length; // Safe } 사용  ?. 및 ?? var len = string?.length ?? 0 ; // Provide a default value if string was null. 스택 추적은 프로젝트에 속하지 않는 파일을 가리킬 수도 있습니다.  예를 들어: 1. 이용  Navigator 하시거나 MediaQuery 이 오류는 에 비동기적으로 액세스하려고 할 때도 발생합니다  BuildContext . mounted 따라서 에 접근하기 전에  위젯이 있는지 먼저 확인해야 합니다  BuildContext . Future< void > foo() async { // Some async operation await compute(); // Check `mounted` before accessing 'context'. if (mounted...