• 고객센터
  • 교육
  • 매뉴얼
  • 데모
  • 제품소개
게시판을 이용해 주셔서 감사합니다.
다음양식에 맞게 입력해주세요.

* 고객시스템명 : 삼성SDI 업무표준
* GAUCE 버전 : 4.0
* WAS 종류(WebLogic 등등) : 웹로직11
* DB 종류 : 오라클9
* 문의 유형(질문/요청/참조) : 질문
* 내용 :

안녕하세요,
방금 전화드렸던 하충선이라고 합니다.
최초 시작 시에 아래와 같은 에러가 나면서 진행이 안되네요.

1) 에러 메세지
url is /console/console.portal?_nfpb=true&_pageLabel=AppDeploymentsControlPage.>
<Jun 28, 2012 2:28:04 PM KST> <Error> <HTTP> <BEA-101020> <[ServletContext@429791646[app:gsmm module:gsm
c-version:null]] Servlet failed with Exception
java.lang.NullPointerException
        at com.gauce.ServiceLoader.restoreService(Unknown Source)
        at com.sdi.bizint.Bizint_UserInfo.service(Bizint_UserInfo.java:285)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        Truncated. see log file for complete stacktrace
>

2) 해당 소스

package com.sdi.bizint;

import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.MissingResourceException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.gauce.GauceContext;
import com.gauce.GauceDataRow;
import com.gauce.GauceDataSet;
import com.gauce.GauceException;
import com.gauce.GauceService;
import com.gauce.engine.H;
import com.gauce.http.HttpGauceResponse;
import com.gauce.io.GauceRequest;
import com.gauce.io.GauceResponse;
import com.gauce.log.Logger;
import com.sdi.common.SdiString;
import com.sdi.common.SdiUtil;
import com.sdi.common.comFunc;


public class Bizint_UserInfo extends HttpServlet {

        private static final long serialVersionUID = 1L;

    public void service(HttpServletRequest request, HttpServletResponse response) throws IOException
    {
        //ServiceLoader loader = new ServiceLoader(request, response);
            com.gauce.ServiceLoader loader = new com.gauce.ServiceLoader(request, response);
    
        HttpSession session = request.getSession();
        GauceService service = null;
        GauceContext context = null;
        Logger m_logger = null;
        GauceDataSet dSet = null;
        GauceRequest req = null;  
        GauceResponse res = null;

        Connection conn = null;
        String TR_TYPE = null;
          
      
        try {
                //throw myException;
            //service = loader.newService(com.sdi.common.comFunc.getProperty("GS_DOMAIN"));
                service  = loader.newService(comFunc.getProperty("GS_DOMAIN"));
            context = service.getContext();
            m_logger = context.getLogger();
            req = service.getGauceRequest();
            res = service.getGauceResponse();

            conn = SdiUtil.getSdiConnection(comFunc.getProperty("GS_DB_02"));

            PreparedStatement select = null;
            dSet = req.getGauceDataSet("OUTPUT");            
            res.enableFirstRow(dSet);
            
            .........................


        } catch (SQLException se) {
            System.out.println("Main Job SQL Error");
            comFunc.rollback(conn);
            se.printStackTrace();
            
        } catch (MissingResourceException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (H e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
                
        }finally {
            if (conn != null) {
                try {conn.close();} catch (Exception e) {}
            }
            loader.restoreService(service);
        }
 
Tag List
XE Login