게시판을 이용해 주셔서 감사합니다.
다음양식에 맞게 입력해주세요.
* 고객시스템명 : KGC MISWEB
* InnoXync 버전 :
* WAS 종류(WebLogic 등등) :
* DB 종류 :
* 문의 유형(질문/요청/참조) : 질문
* 내용 :
이노싱크 + 전자정부 프레임웍으로 구성되어 있는 환경에서
메뉴관련 화면들은 JSP로 구성이 되어있습니다.
현재는 JSP내에서 DB접속하여 메뉴정보를 조회후 출력하고 있는데
이부분을 java내부로 호출하게끔 변경하고자합니다.
MAIN.jsp 프레임에서 /main_topMenu.do를 호출 > db조회 > main_topMenu.jsp를 호출할려고 하는데.
아래와 같은 오류가 발생되고있습니다..
오류 ::
java.lang.NullPointerException
at egovframework.rte.cmmn.ria.support.gauce.view.InnoXyncView.renderMergedOutputModel(InnoXyncView.java:366)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.ixync.filter.IXyncFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
혹시 참고할만한 샘플이 있을까요??
* contrller에서 처리는 아래와 같이 했습니다.
@RequestMapping(value="/main_topMenu.do")
public ModelAndView main_topMenu(HttpServletRequest req, Model model) throws Exception {
List topMenuList = null;
HashMap<String, String> paramMap = new HashMap<String, String>();
String userNm = (String)session.getAttribute("USER_NM");
String userId = (String)session.getAttribute("USER_ID");
String depcd = (String)session.getAttribute("DEP_CD");
String compCd = (String)session.getAttribute("COMPANY_CD");
paramMap.put("USER_NM", userNm);
paramMap.put("USER_ID", userId);
paramMap.put("DEP_CD", depcd);
paramMap.put("COMPANY_CD", compCd);
topMenuList = commMenuInfoService.selectTopMenuInfo(paramMap);
model.addAttribute("topMenuList", topMenuList);
String url = "/main_topMenu.jsp";
ModelAndView mav = new ModelAndView(url);
return mav;
}
|
이노싱크 전자정부프레임웍 연동 가이드를 참고하시기 바랍니다.
http://member.shift.co.kr/index.php?document_srl=230140
연동방식은 spring으로 데이터를 받아와 List 형식으로 담고 있는 후
전달 받은 데이터를 callByDataSet 메소드를 사용하여 Innoxync 데이터로 변환하여
ModelAndView에 담아 처리하는 방식입니다.
감사합니다.