Menu

#389 Dozer is not Working in Weblogic 10.3 - Dozer code neither getting executed nor throwing error,But finally block is executed

Dozer v5.3.2
open
nobody
5
2017-03-24
2017-03-24
ZAFAR
No

I am deploying Dozer5.3.2 in Weblogic 10.3. After reaching a specific line code is not getting executed neither throwing error. Jumping to Finally block.

Packaged following jars in APP-INF/lib folder.

  1. dozer-5.3.2.jar
  2. slf4j-api-1.6.4.jar
  3. slf4j-log4j12-1.6.4.jar
  4. commons-lang-2.4.jar
    Below is the piece of code.The line mapper = new DozerBeanMapper(Arrays.asList(new String[] { dozer_path })); is neither getting executed nor throwing error. Finally block is executed.

Kindly do needful.

public static DozerBeanMapper getMapper() {
DozerBeanMapper mapper = null;

try{
    String dozer_path ="D:/XYZ/jboss-eap-5.1/jboss-as/server/default/lib/FABXPAProps/dozer_mapping.xml";
    System.out.println("dozer_path::"+dozer_path);
    dozer_path = "file:///"+dozer_path;

    **mapper = new DozerBeanMapper(Arrays.asList(new String[] { dozer_path }));**

    System.out.println("mapper::"+mapper);
}catch (Exception e){
    StringWriter stack = new StringWriter(); 
    e.printStackTrace(new PrintWriter(stack)); 
}

return mapper;

}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB