Skip to Content

Issue with deprecated jar file i.e., sun.misc.IOUtils

Hi professionals,

In my project i had DC which contains an imported package of sun.misc.IOUtils. i couldn't find any sort of errors in code. But when i build that DC its showing an below error in log file

 [javac] ERROR: D:\prashanthi outlook\EP_Code\workspace.jdi.jdi\LocalDevelopment\t\89B4367ED847756B57E8BA4BBB7B35C0\gen_wdp\packages\com\crane\dischargesummarycomp\DischargeSummaryView.java:30: cannot find symbol
     [javac] ERROR: symbol  : class IOUtils
     [javac] ERROR: location: package sun.misc
     [javac] ERROR: import sun.misc.IOUtils;
     [javac] ERROR:                ^
     [javac] ERROR: D:\prashanthi outlook\EP_Code\workspace.jdi.jdi\LocalDevelopment\t\89B4367ED847756B57E8BA4BBB7B35C0\gen_wdp\packages\com\crane\dischargesummarycomp\DischargeSummaryView.java:1054: cannot find symbol
     [javac] ERROR: symbol  : variable IOUtils
     [javac] ERROR: location: class com.crane.dischargesummarycomp.DischargeSummaryView
     [javac] ERROR: 						byteArray=IOUtils.readFully(templateSourceInputStream, arg1, true);//.write(templateSourceInputStream,     templateSourceOutputStream);
     [javac] ERROR: 						          ^
     [javac] WARNING: Note: Some input files use or override a deprecated API.
     [javac] WARNING: Note: Recompile with -Xlint:deprecation for details.
     [javac] WARNING: Note: D:\prashanthi outlook\EP_Code\workspace.jdi.jdi\LocalDevelopment\t\89B4367ED847756B57E8BA4BBB7B35C0\gen_wdp\packages\com\crane\dischargesummarycomp\DischargeSummaryComp.java uses unchecked or unsafe operations.
     [javac] WARNING: Note: Recompile with -Xlint:unchecked for details.
     [javac] 2 errors

but even though i had that error, DC has deployed successfully. But when i open that application in browser am getting the below error.

currently am using SAP NetWeaver 7.3 SP08 PAT0000 and java 1.6. If sun.misc.IOUtils is deprecated then what is the alternative package to be imported to replace this.

kindly suggest me how to solve this error

issue1.png (24.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers