• 고객센터
  • 교육
  • 매뉴얼
  • 데모
  • 제품소개
* 고객시스템명 : imis
* GAUCE 버전 : 4.0
* WAS 종류(WebLogic 등등) : 웹스피어
* DB 종류 : DB2, oracle
* 문의 유형(질문/요청/참조) : 요청

제목에서 말했듯이 저부분에서 NullPointerException 에러 납니다

무슨이유인지 아무리 확인을 해봐도 잘모르겠네요

파일전체는 보여드릴수는 없고

파일선언하는 부분만 올려드릴게요

더 필요한거있으시면 이야기좀해주세요

에러의 원인을 빨리 찾아야하거든요

부탁드릴게요

package common;

import com.gauce.*;
import com.gauce.io.*;
import com.gauce.common.*;
import com.gauce.log.*;
import com.gauce.db.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class bd0042tr extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse res)
        {
                //        res.setContentType("text/html");
                doPost(req,res);
        }
public void doPost(HttpServletRequest req,HttpServletResponse res)

{
                ServiceLoader loader = null;
                GauceService service = null;
                GauceContext context = null;
                Logger logger = null;
                GauceDBConnection conn = null;
                
                int iSave = 0;                //수정건수
                int iInsert = 0;        //추가건수
                int iDelete = 0;        //삭제건수
                String erer = null;
                String erer1 = null;
                String erer2 = null;
                

try{
                loader = new ServiceLoader(req, res);
                service = loader.newService();
                context = service.getContext();
                logger = context.getLogger();
                GauceRequest reqGauce = null;
                GauceResponse resGauce = null;

                try {
                        conn = service.getDBConnection();
                        
                        reqGauce = service.getGauceRequest();<=====요부분에서 에러남


원인이 있다면 해결방법좀갈켜주시구요

더 필요한 부분이 있으면 추가요청좀해주세요 급합니다.부탁드립니다..(__)





 
Tag List
XE Login