Unzipping  zipfile with sub folders...using zlib java

Hello,
I am encounterig a problem while unzipping a zipfile using zlib.The zip file contaings subdirectories.so i am not able to unzip the zipfile.Since my code is able to unzip only the files which are in current directory.Please help me out to unzip the subdirectories using zlib.
Please find my below code..for unzip the files in current directory..
String destinationname = rootFolder.getAbsolutePath();
byte[] buf = new byte[1024];
ZipInputStream zipinputstream = null;
ZipEntry zipentry;
zipinputstream = new ZipInputStream(
new FileInputStream(destinationname+"\\"+date+".zip"));
zipentry = zipinputstream.getNextEntry();
while (zipentry != null)
//for each entry to be extracted
String entryName = zipentry.getName();
     LoggerHtml.debug(entryName);
     int n;
     FileOutputStream fileoutputstream;
     File newFile = new File(entryName);
     String directory = newFile.getParent();
     if(directory == null)
     //break;
     fileoutputstream = new FileOutputStream(
     entryName);
     while ((n = zipinputstream.read(buf, 0, 1024)) > -1)
     fileoutputstream.write(buf, 0, n);
     fileoutputstream.close();
     zipinputstream.closeEntry();
     zipentry = zipinputstream.getNextEntry();
Please provide me the coding..It is very urgent...

google
code #1
import java.io.*;
import java.util.*;
import java.util.zip.*;
public class unzip
    public static void main(String args[])
        if(args.length < 1)
            System.out.println("Syntax : unzip zip-file destination-dir[optional]");
            return;
        try
            ZipFile zf = new ZipFile(args[0]);
            Enumeration zipEnum = zf.entries();
            String dir = new String(".");
            if( args.length == 2 )
                dir = args[1].replace('\\', '/');
            if(dir.charAt(dir.length()-1) != '/')
                dir += "/";
            while( zipEnum.hasMoreElements() )
                ZipEntry item = (ZipEntry) zipEnum.nextElement();
                if( item.isDirectory() ) //Directory
                    File newdir = new File( dir + item.getName() );
                    System.out.print("Creating directory "+newdir+"..");
                    newdir.mkdir();
                    System.out.println("Done!");
                else //File
                    String newfile = dir + item.getName();
                    System.out.print("Writing "+newfile+"..");
                    InputStream is = zf.getInputStream(item);
                    FileOutputStream fos = new FileOutputStream(newfile);
                    int ch;
                    while( (ch = is.read()) != -1 )
                        fos.write(ch);
                    is.close();
                    fos.close();
                    System.out.println("Done!");
            zf.close();  
        catch(Exception e)
            System.err.println(e);
}code #2
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
* UnZip -- print or unzip a JAR or PKZIP file using java.util.zip. Command-line
* version: extracts files.
* @author Ian Darwin, [email protected] $Id: UnZip.java,v 1.7 2004/03/07
*         17:40:35 ian Exp $
public class UnZip {
  /** Constants for mode listing or mode extracting. */
  public static final int LIST = 0, EXTRACT = 1;
  /** Whether we are extracting or just printing TOC */
  protected int mode = LIST;
  /** The ZipFile that is used to read an archive */
  protected ZipFile zippy;
  /** The buffer for reading/writing the ZipFile data */
  protected byte[] b;
   * Simple main program, construct an UnZipper, process each .ZIP file from
   * argv[] through that object.
  public static void main(String[] argv) {
    UnZip u = new UnZip();
    for (int i = 0; i < argv.length; i++) {
      if ("-x".equals(argv)) {
u.setMode(EXTRACT);
continue;
String candidate = argv[i];
// System.err.println("Trying path " + candidate);
if (candidate.endsWith(".zip") || candidate.endsWith(".jar"))
u.unZip(candidate);
else
System.err.println("Not a zip file? " + candidate);
System.err.println("All done!");
/** Construct an UnZip object. Just allocate the buffer */
UnZip() {
b = new byte[8092];
/** Set the Mode (list, extract). */
protected void setMode(int m) {
if (m == LIST || m == EXTRACT)
mode = m;
/** Cache of paths we've mkdir()ed. */
protected SortedSet dirsMade;
/** For a given Zip file, process each entry. */
public void unZip(String fileName) {
dirsMade = new TreeSet();
try {
zippy = new ZipFile(fileName);
Enumeration all = zippy.entries();
while (all.hasMoreElements()) {
getFile((ZipEntry) all.nextElement());
} catch (IOException err) {
System.err.println("IO Error: " + err);
return;
protected boolean warnedMkDir = false;
* Process one file from the zip, given its name. Either print the name, or
* create the file on disk.
protected void getFile(ZipEntry e) throws IOException {
String zipName = e.getName();
switch (mode) {
case EXTRACT:
if (zipName.startsWith("/")) {
if (!warnedMkDir)
System.out.println("Ignoring absolute paths");
warnedMkDir = true;
zipName = zipName.substring(1);
// if a directory, just return. We mkdir for every file,
// since some widely-used Zip creators don't put out
// any directory entries, or put them in the wrong place.
if (zipName.endsWith("/")) {
return;
// Else must be a file; open the file for output
// Get the directory part.
int ix = zipName.lastIndexOf('/');
if (ix > 0) {
String dirName = zipName.substring(0, ix);
if (!dirsMade.contains(dirName)) {
File d = new File(dirName);
// If it already exists as a dir, don't do anything
if (!(d.exists() && d.isDirectory())) {
// Try to create the directory, warn if it fails
System.out.println("Creating Directory: " + dirName);
if (!d.mkdirs()) {
System.err.println("Warning: unable to mkdir "
+ dirName);
dirsMade.add(dirName);
System.err.println("Creating " + zipName);
FileOutputStream os = new FileOutputStream(zipName);
InputStream is = zippy.getInputStream(e);
int n = 0;
while ((n = is.read(b)) > 0)
os.write(b, 0, n);
is.close();
os.close();
break;
case LIST:
// Not extracting, just list
if (e.isDirectory()) {
System.out.println("Directory " + zipName);
} else {
System.out.println("File " + zipName);
break;
default:
throw new IllegalStateException("mode value (" + mode + ") bad");
hth

Similar Messages

  • Unzip using zlib java

    hello friends,
    Please help me out...iam in urgent help..iam not getting answer for this .. Using zlib java..
    I have a zipfile named prabhu.zip
    It contains
    prabhu\prabhuimage\imagefiles
    right now iam able to unzip only files in current folders..i mean prabhu
    i want to unzip subfolders also...eg prabhuimage folder..
    RIght now only files in current folder is getting unzipped..
    please understand this and help me out my friend..
    Thanks and Regards,
    Prabhu

    hello friends,
    Please help me out...iam in urgent help..iam not getting answer for this .. Using zlib java..
    I have a zipfile named prabhu.zip
    It contains
    prabhu\prabhuimage\imagefiles
    right now iam able to unzip only files in current folders..i mean prabhu
    i want to unzip subfolders also...eg prabhuimage folder..
    RIght now only files in current folder is getting unzipped..
    please understand this and help me out my friend..
    Thanks and Regards,
    Prabhu

  • Zipping /Unzipp both current directories and subdirectories using zlib java

    Hi
    Guys any one provide me code for zipping and unzipping directory contains a subdirectories..using zlib java
    It is very urgent ..please send me the code..............
    consider..
    folder name is input for zipping
    and zipfile name is input for unzipping..
    Please help me out in this problemm
    Thanks regards,
    javaprabhu

    package ar.com.unizono.utils;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Enumeration;
    import java.util.SortedSet;
    import java.util.TreeSet;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipFile;
    * UnZip -- print or unzip a JAR or PKZIP file using java.util.zip. Command-line
    * version: extracts files.
    * @author Ian Darwin, [email protected] $Id: UnZip.java,v 1.7 2004/03/07
    *         17:40:35 ian Exp $
    public class UnZip {
         /** Constants for mode listing or mode extracting. */
         public static final int LIST = 0, EXTRACT = 1;
         /** Whether we are extracting or just printing TOC */
         protected int mode = LIST;
         /** The ZipFile that is used to read an archive */
         protected ZipFile zippy;
         /** The buffer for reading/writing the ZipFile data */
         protected byte[] b;
    * Simple main program, construct an UnZipper, process each .ZIP file from
    * argv[] through that object.
         public static void main(String[] argv) {
              UnZip u = new UnZip();
              for (int i = 0; i < argv.length; i++) {
                   if ("-x".equals(argv)) {
                        u.setMode(EXTRACT);
                        continue;
                   String candidate = argv[i];
                   // System.err.println("Trying path " + candidate);
                   if (candidate.endsWith(".zip") || candidate.endsWith(".jar"))
                   u.unZip(candidate);
                   else
                   System.err.println("Not a zip file? " + candidate);
              System.err.println("All done!");
         /** Construct an UnZip object. Just allocate the buffer */
         UnZip() {
              b = new byte[8092];
         /** Set the Mode (list, extract). */
         protected void setMode(int m) {
              if (m == LIST || m == EXTRACT)
              mode = m;
         /** Cache of paths we've mkdir()ed. */
         protected SortedSet dirsMade;
         /** For a given Zip file, process each entry. */
         public void unZip(String fileName) {
              dirsMade = new TreeSet();
              try {
                   zippy = new ZipFile(fileName);
                   Enumeration all = zippy.entries();
                   while (all.hasMoreElements()) {
                        getFile((ZipEntry) all.nextElement());
              } catch (IOException err) {
                   System.err.println("IO Error: " + err);
                   return;
         protected boolean warnedMkDir = false;
    * Process one file from the zip, given its name. Either print the name, or
    * create the file on disk.
         protected void getFile(ZipEntry e) throws IOException {
              String zipName = e.getName();
              switch (mode) {
              case EXTRACT:
                   if (zipName.startsWith("/") || zipName.startsWith(File.separatorChar+"")) {
                        if (!warnedMkDir)
                        System.out.println("Ignoring absolute paths");
                        warnedMkDir = true;
                        zipName = zipName.substring(1);
                   // if a directory, just return. We mkdir for every file,
                   // since some widely-used Zip creators don't put out
                   // any directory entries, or put them in the wrong place.
                   if (zipName.endsWith("/") || zipName.startsWith(File.separatorChar+"")) {
                        return;
                   // Else must be a file; open the file for output
                   // Get the directory part.
                   int ix = zipName.lastIndexOf('/');
                   if(ix==-1)
                        ix=zipName.lastIndexOf(File.separatorChar+"");
                   if (ix > 0) {
                        String dirName = zipName.substring(0, ix);
                        if (!dirsMade.contains(dirName)) {
                             File d = new File(dirName);
                             // If it already exists as a dir, don't do anything
                             if (!(d.exists() && d.isDirectory())) {
                                  // Try to create the directory, warn if it fails
                                  System.out.println("Creating Directory: " + dirName+" at "+d.getAbsolutePath());
                                  if (!d.mkdirs()) {
                                       System.err.println("Warning: unable to mkdir "
                                       + dirName);
                                  dirsMade.add(dirName);
                   System.err.println("Creating " + zipName);
                   FileOutputStream os = new FileOutputStream(zipName);
                   InputStream is = zippy.getInputStream(e);
                   int n = 0;
                   while ((n = is.read(b)) > 0)
                   os.write(b, 0, n);
                   is.close();
                   os.close();
                   break;
              case LIST:
                   // Not extracting, just list
                   if (e.isDirectory()) {
                        System.out.println("Directory " + zipName);
                   } else {
                        System.out.println("File " + zipName);
                   break;
              default:
                   throw new IllegalStateException("mode value (" + mode + ") bad");
    This version works fine for me but needs enhacements                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Importing Main Folders with Sub-folders

    I am a new Mac user and I am trying to import my photos into iPhoto6.0. I have created main folders with sub-folders (eg. Main Folder = Holiday, Sub-folder = Australia Trip) and would like the sub-folders to appear when I open iPhoto. However, I cannot seem to get the main folder or sub-folder names to appear in iPhoto. The photos just get imported into the library and segregated by year.
    I tried reading the forum, and seem to infer that iPhoto cannot handle sub-folder names. However, when I read iPhoto 6.0 Help page, it states:
    "You can also drag individual photos or an entire folder from the Finder into iPhoto's photo viewing area. If you drag a folder, a film roll is created with the folder's name. If the folder you import contains subfolders, film rolls are created with each subfolder's name."
    I tried the above, but I don't seem to manage to get the film rolls named as described.
    Please help!!
    MacBook   Mac OS X (10.4.8)  

    Could it be confusion with what you are viewing in the iPhoto window?
    iPhoto always shows you a "last roll", which is really more like a smart album than a Film Roll. It is simply a quick way to find the photos from your most recent import session. When I drag in 2 folders to import, it only shows the second folder when I select "last roll." Are you seeing photos from one of your folders, or both of them together?
    Select "Library" from the top of your Source Pane to see your entire library. It doesn't mattter if you already have photos in your library or if you're beginning fresh. Under the "View" menu, select "Film Rolls" so that it is checked. Also under View, select "Sort Photos" > "by Film Roll". Now try to select the name/icon of 2 folders in Finder, then drag over the iPhoto window onto where the thumbnails display your library. (Or display nothing, if your library is empty.) Release when the curser is a green plus sign. When the import is finished you should see the 2 folder names (now as rolls) each with a set of thumbnails below it. Check the slider near the bottom right of the iPhoto window; moving it all the way to the left will give you the smallest thumbnails and allow you to see more photos at once.
    Please try this again and let me know how it goes. If this does not solve it, then I can tell you how to check what's in your library. But the Film Roll view should work.

  • Solution to using Site Root with Sub-folders on Testing Server & Browser Previews

    Hi Everyone
    Have found an elegant solution when using Site Root relative linking for a website, that allows browser previews, even when the testing server uses sub-folders and the live code references just the server site root " / " of the live server and not the sub-folder structure of the testing server.  This is really useful when you don't want to use document relative linking, which normally takes care of this problem in Dreamweaver.
    The solution is to use sub-domains referencing the sub-folders on the testing server, so the sub-folders appear as the root of each website and the html code pointing to the site root works correctly on both testing & live servers without alteration.
    Testing Server Setup
    One testing server domain is used for all client development work:
    For example:  www.testingserver.com
    On the testing server there are multiple sub-folder (one for each client website being developed):
    For example:  www.testingserver.com/clientA/ ,  www.testingserver.com/clientB/ , www.testingserver.com/clientC/
    Live Server Setup
    The site code needs to be developed with the final live server folder structure (url references) in mind:
    For example:  www.livesite.com (with all pages referencing the root of the live site server)
    Page URLs on Testing & Live Servers
    /page-name.html
    Testing server url:  www.testingserver.com/clientA/page-name.html
    Live server url:  www.livesite.com/page-name.html (without /clientA/ sub-folder)
    Browser Previews Don't Work
    You want to be able to run browser previews on the testing server while developing the website.  To do this you normally have to reference the sub-folder structure of the testing server in the url for things to work right:
    For example www.testingserver.com/clientA/page-name.html
    What do you do, when you can't keep switching all the urls in the code from pointing to the sub-folder to pointing to the site root, and you don't want to use document relative linking?
    One Solution - Sub-domains on Testing Server
    In your domain hosting (outside of Dreamweaver) setup a sub-domain to point to the testing server sub-folder.
    For example:  Sub-domain clientA.testingserver.com points to www.testingserver.com/clientA (sub-folder)
    So now when you reference the sub-domain it sees the sub-folder as the site root and all your problems are solved.
    Dreamweaver Site Definition Setup
    Site Definition under "Local Info"
    Links relative to: Site Root
    Site Definition under "Remote Info" (live server)
    Access: FTP
    FTP host:  ftp.livesite.com
    Host directory: /
    Site Definition under "Testing Server" 
    Access: FTP
    FTP host:  clientA.testingserver.com
    Host directory: /
    URL prefix: http://clientA.testingserver.com
    (location of the site's root folder on the testing server, the sub-domain redirection takes care of pointing to the sub-folder)
    This is just one solution but it works well for me as it doesn't have any cost associated with it under our hosting package where you can have multiple sub-domains setup.
    Hope this helps someone in a similar situation.
    Aly

    Just Google it, or run out and buy a copy of David Powers' Foundations Dreamweaver CS4 with CSS, Ajax and PHP, a book that is never out of reach for me.  He details the process explicitly for both Mac and PC.
    For me, on W7, I edit the C:/Windows/System32/drivers/etc/hosts file, and add the ip of my testing server along with the site alias -
    192.168.1.82  site.local
    Then I add this same designation to my httpd.conf file in Apache on the testing server.  Finally I restart Apache.
    Now from my production machine if I browse to "http://site.local", I get to see either the default file in the root of the site on the testing server, or a directory of the site on the testing server (my testing server is a unix box running on my LAN at that ip address).  Furthermore, all of my root relative links now work as they would if the pages were being browsed from the live server.

  • Getting all webI reports in a folder and its sub-folders using java sdk.

    hi,
    I need a java code to get the Id of all webi  reports in a folder and recursive sub folders .
    Is there any sample code or tutorial  available for It?
    regards,
    nitin

    I didn't test this but it should work. Import required packages.
    <%
    String username = "administrator";
    String password = "<password>";
    String cmsname = "<cmsname>";
    String authtype = "secEnterprise";
    IEnterpriseSession oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authtype);
    IInfoStore oInfoStore = (IInfoStore)oEnterpriseSession.getService("","InfoStore");
    getWebi(oInfoStore,0,out);
    oEnterpriseSession.logoff();
    %>
    <%!
    public void getWebi(IInfoStore oInfoStore, int sourceFolderID, javax.servlet.jsp.JspWriter out)
    try
         String query = "select * from ci_infoobjects where si_kind='webi' and si_instance =0 and si_parentid =" + sourceFolderID ;
         IInfoObjects oInfoObjects = oInfoStore.query(query);
         for(int i=0;i< oInfoObjects.size(); i++)
              IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
              out.println(oInfoObject.getID() + "  " + oInfoObject.getTitle() +"<br>");
         String query = "select * from ci_infoobjects where si_kind='folder' and si_parentid = " + sourceFolderID ;
         oInfoObjects = oInfoStore.query(query);
         for(int i=0;i< oInfoObjects.size(); i++)
              IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
              getWebi(oInfoStore, oInfoObject.getID(), out);               
    catch(SDKException e)
         out.println(e.toString());
    %>

  • [Mac OSX / JS] How to find images inside sub folders using getFiles?

    Hi,
    My script uses the variable myFolder to store the path for the images Folder. But when I try to use myFolder.getFiles() to retrieve images that are in sub folders the script fails. The result is null. What can I do to force myFolder.getFiles() to search inside all sub folders?
    var myFolder = Folder().selectDlg("Select images Folder");
    var myFiles = myFolder.getFiles();
    I will appreciate any help.
    Thanks,
    Candido

    Hi John,
    Thanks for your help.
    I'm rushing to my work  so I don't have enough time to sort it out at the moment.
    If I understand you correctly, it should be something like so:
    var files;
    var folder = Folder.selectDialog( "Select a folder with images" );
    if (folder != null) {
         files = GetImages(folder);
         if (files.length > 0) {
              alert("Found " + files.length + " image files");
         else {
              alert("Found no image files");
    function GetImages(theFolder) {
         var imageFiles = [],
         fileList = theFolder.getFiles(),
         i, file;
         for (i = 0; i < fileList.length; i++) {
              file = fileList[i];
              if (file instanceof Folder){
                   GetImages(file);
              else if (file instanceof File && file.name.match(/\.(jpg|psd|tiff|pdf|eps)$/i)) {
                   imageFiles.push(file);
         return imageFiles;
    But it doesn't work.
    Regards,
    Kasyan

  • Dynamically Creating Sub Folders using ECMA

    Hi,
    I have a requirement to create a a folder and then  a sub folder in that and set its Name and Title dynamically. I am able to crate the folder however not the sub folder. Please suggest any technical way.
    Thanks,
    Debasis Roy

    No worries - I located another thread that provided the answer.  I rather think it may be better for me - with the number of folders and sub-folders I have in my Pictures Library - to use the tree facility under Folders in Organizer. 

  • Syncing photos with sub folders

    Hi
    Is there any way to sync my photo exactly like them on my pc?
    i have a photo folder and many sub folders , each sub folder contains more sub folders
    and on my iphone my sub folders merge and they all displayed in one folder

    I also have the same problem.
    With itunes on windows and an Iphone 3g, I can only sync the first level, so all subdirectory folders appear in the top one.
    This means that for example my holidays snaps are all together, which is a real pain to find anything.
    I know that using a Mac with iphoto I can do this, but I dont have a Mac.
    I have also tried using Photoshop elements 7 and 8 but it only allows the transfer of everything (obviously I want to sync just the ones I want - to save space).
    A faq I found said that photoshop elements and album work, but only a very early release of these. Otherwise you get everything.
    thoughts or suggestions?
    Will apple ever provide iphoto or support a windows tool such as the latest elements 8 or picasa 3.5
    Regards
    Joe

  • N95 music player and working with sub folders

    Hi, I use file transfer to move my music from PC to N95 and use folders and sub folders within the music folder.  I cannot see the folders when using the music player.  I need advise how I can transfer my music easily so that I can play music files that are within a folder.  regards.

    Yes. The refresh seems to have no effect on the Podcasts. I even unsubscribed to all my podcasts--which is supposed to also delete the downloaded podcasts as well; did a refresh and the the podcasts are still listed on the mediaplayer.
    Another weird thing is that if the podcast app downloads another podcast, it is added to the list!

  • Unzip zipfile with nonenglish filenames

    hi, all
    i tried to use apache foundation alternative (supports
    encoding
    parameter to resolve filenames encoding) to standard
    unzipping classes
    located in JVM 1.4.x. classes are located in package
    org.apache.tools.zip.* in ant.jar
    everything works fine in tomcat, but in JRun/CF7 following
    message is
    displayed ...
    as you can guess cf also uses ant.jar, and that is probably
    the problem.
    thanks for advice,
    jan
    tried to access field
    org.apache.tools.zip.ZipOutputStream.EOCD_SIG from
    class org.apache.tools.zip.ZipFile
    java.lang.IllegalAccessError: tried to access field
    org.apache.tools.zip.ZipOutputStream.EOCD_SIG from class
    org.apache.tools.zip.ZipFile
    at
    org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:348)
    at
    org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:243)
    at org.apache.tools.zip.ZipFile.(ZipFile.java:142)
    at cz.sitewell.zip.Zipping.decompress(Zipping.java:66)
    at cz.sitewell.zip.Zipping.decompress(Zipping.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at coldfusion.runtime.StructBean.invoke(StructBean.java:388)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1655)
    at
    cftestik2ecfm365833867.runPage(C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\testik.cf m:18)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at
    jrunx.util.DynamicClassLoaderFilter.doFilter(DynamicClassLoaderFilter.java:48)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    hello,
    i found the problem but not solution yet ...
    in jrun.jar is located some ancient (4years old) version of
    ant
    without ZipFile class. That class is loaded from newer
    version of ant.jar.
    protected fields probably work only on same jars, not
    packages.
    because of this IllegalAccessError is throwed.
    is there some elegant solution to load newer version of ant?
    of course
    i see some workarounds such as modification of jrun.jar or
    package
    renaming to solve this ...
    jan
    Jan Gregor wrote:
    > hi, all
    >
    > i tried to use apache foundation alternative (supports
    encoding
    > parameter to resolve filenames encoding) to standard
    unzipping classes
    > located in JVM 1.4.x. classes are located in package
    > org.apache.tools.zip.* in ant.jar
    >
    > everything works fine in tomcat, but in JRun/CF7
    following message is
    > displayed ...
    >
    > as you can guess cf also uses ant.jar, and that is
    probably the problem.
    >
    >
    > thanks for advice,
    > jan
    >
    >
    >
    > tried to access field
    org.apache.tools.zip.ZipOutputStream.EOCD_SIG from
    > class org.apache.tools.zip.ZipFile
    >
    >
    > java.lang.IllegalAccessError: tried to access field
    > org.apache.tools.zip.ZipOutputStream.EOCD_SIG from class
    > org.apache.tools.zip.ZipFile
    > at
    >
    org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:348)
    > at
    >
    org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:243)
    > at org.apache.tools.zip.ZipFile.(ZipFile.java:142)
    > at cz.sitewell.zip.Zipping.decompress(Zipping.java:66)
    > at cz.sitewell.zip.Zipping.decompress(Zipping.java:54)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    > at
    >
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >
    > at
    >
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    coldfusion.runtime.StructBean.invoke(StructBean.java:388)
    > at
    coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1655)
    > at
    >
    cftestik2ecfm365833867.runPage(C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\testik.cf m:18)
    >
    > at
    coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    > at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
    > at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    > at
    >
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
    > at
    coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    > at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    > at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
    > at
    >
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    >
    > at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    > at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    > at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    > at coldfusion.CfmServlet.service(CfmServlet.java:105)
    > at
    >
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    > at
    jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    > at
    >
    jrunx.util.DynamicClassLoaderFilter.doFilter(DynamicClassLoaderFilter.java:48)
    >
    > at
    jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    > at
    jrun.servlet.FilterChain.service(FilterChain.java:101)
    > at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    > at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    > at
    >
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
    > at
    >
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    > at
    jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    > at
    >
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    >
    > at
    jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Hotmail sub folders using BIS

    Hi,
    I love BlackBerries. I've always used them at work but I am having trouble setting up Hotmail (or Outlook.com) on my recently acquired BlackBerry Bold 9900 for personal use on BIS.
    My service provider says that BIS only supports POP email from Hotmail and as such I only get the Inbox, with no other folders or synchronisation. I am not techy, so I'm not sure I understand this correctly... Gmail works fine.
    Is this a core limitation with BB7, BIS and Hotmail? If so, does the Q10 fully fix folders problem with Hotmail? It is critical to have folders from three Hotmail accounts. The iPhone, Android and Windows Phone can definitely do it...
    Would appreciate any help before I sell the Bold and spend more money on the Q10.
    Thanks in advance.
    James

    If you only get POP from hotmail then, yes, you'll only get the inbox.
    The Q10 does fully support folder synchronization from hotmail and supports it quite nicely, and does it much better than iPhone (haven't tried it on Android or Windows.)
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Filter query with sub query using Dropdown box

    Dear Community,
    I have 2 queries
    1. Main Query with 2 fields:  Project | Project value
    2. Sub Query with 2 fields:  Project group | Project
    Project group can be belonging to number of projects and project can be belong to number of project group (Many to Many).
    My customer wants the main query will open without any filtering.
    When I choose project group from WAD dropdown box, the main query will filtering all the projects that belong to the project group.
    I create WAD; define dropdown box as sub query, and Analysis as main query.
    In the dropdown box I choose "data binding" char and create command "set selection state by binding" (project to project) but it doesnu2019t work. 
    I also try to do this by Replacement Path in the main query, but the variable requires the attribute will be ready for input.
    Thanks a lot
    Yaniv

    I am not sure about your comments on replacement path variable. Without having tried it, here is what I would have attempted:
    The main query needs to use a replacement path variable for Project that is replaced by the results of the sub-query. Sub-query would have a regular input variable for project group. (as a quick test, if you had one analysis item for main query with variable input enabled, it should prompt you to enter Project group).
    Now the drop-down needs to be associated with a javascript function. The javascript function needs to implement command "Set variable state" for the main query data provider to selected value of the drop-down.
    The drop-down should be associated with the sub-query data provider, just used to populate the list of values in drop-down.

  • Need help with jsp that uses a java program

    Hi, sorry for my english but i am italian.
    I've got a problem: i use java builder and i have a java program(this program has got a main and includes libraries) about graphich on tree, this program visualizes these trees and makes operations on these.
    Now i must use JSP so that a client can see this program (this program is on the server) and can interact with it.
    I can't use applet.I must use only jsp.
    Who can tell me how can i start???
    Thanks.

    If you are not allowed to use an applet, then you are limited by what can be achieved with HTML in a browser.
    You would have to figure out how to render it with HTML, then program your jsp to write out this html programatically.

  • Burning Playlists with Sub-Folders

    I have a playlist and then about 16 sub-playlists under it. I wanted to burn the whole playlist to a DVD disk as a data CD. This is primarily for my car. For example, the USB feature allows me to put music in folders and I can navigate through the artists with one button instead of pressing the button ten times to get to the next artist(s). It lets me burn the individual sub-playlists, but when I try to burn the entire playlist, the "burn playlist to disc" button disappears entirely. I was wondering if there was a way to burn the WHOLE playlist with the subfolders on iTunes, or if I have to stick with just burning the individual sub-playlists.

    Sort the playlist by Album or Artist then burn it.
    See this -> http://support.apple.com/kb/HT2455

Maybe you are looking for

  • How can I create a zip file with LabVIEW?

    I would like to compress my data (ASCII format) to an archive. I use LVZlib.vi to compress and decompress data but I would like to be able to read the output file with a software archiver such as PowerArchiver/WinZIP. Someone knows how I can create a

  • Getting error for classpath setting during compilation

    Hi, I tried sampel code of SchematronValidation bpel sample code from oracle site.But while compiling the code,I am getting following error: Failed to compile bpel generated classes. failure to compile the generated BPEL classes for BPEL process "Sch

  • BODI -LOG file

    ************Starting at 2/18/2008 12:43:03 PM************ LightsOff mode with cmd line: "intRopak.exe amp/amp@kaapps2 ICSFile_02182008.dat" Starting in LightsOff mode with instructions to load and process "ICSFile_02182008.dat". Loading data from D:\

  • Editing a record using Objects SAP2007a

    Hi I  wrote a program using SAP objects to store contact information for one of our customers. I created a SAP object which handled the master table and 2 transactions tables There was very little code in the program but the screens are quite complic

  • AIR Applications fail to install (Acer Aspire One, Linux)

    I've successfully installed the latest version of AIR for Linux on my Aspire One, although it took a few attempts. I am, however, not succeeding in installing any apps. 1. My system believes that .air files are actually ZIP files and offers to unpack