Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-728

StreamInterceptor sample failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      with following error message, I believe this is related to Dan Diephouse's low level I/O refactoring:

      compile:
      [javac] Compiling 17 source files to /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/build/classes
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:29: cannot find symbol
      [javac] symbol : class AbstractCachedOutputStream
      [javac] location: package org.apache.cxf.io
      [javac] import org.apache.cxf.io.AbstractCachedOutputStream;
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:86: cannot find symbol
      [javac] symbol : class AbstractCachedOutputStream
      [javac] location: class demo.stream.interceptor.StreamInterceptor
      [javac] private class CachedStream extends AbstractCachedOutputStream {
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:52: <T>setContent(java.lang.Class<T>,java.lang.Object) in org.apache.cxf.message.Message cannot be applied to (java.lang.Class<java.io.OutputStream>,demo.stream.interceptor.StreamInterceptor.CachedStream)
      [javac] message.setContent(OutputStream.class, cs);
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:57: cannot find symbol
      [javac] symbol : method flush()
      [javac] location: class demo.stream.interceptor.StreamInterceptor.CachedStream
      [javac] cs.flush();
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:58: cannot find symbol
      [javac] symbol : class AbstractCachedOutputStream
      [javac] location: class demo.stream.interceptor.StreamInterceptor
      [javac] AbstractCachedOutputStream csnew = (AbstractCachedOutputStream) message
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:58: cannot find symbol
      [javac] symbol : class AbstractCachedOutputStream
      [javac] location: class demo.stream.interceptor.StreamInterceptor
      [javac] AbstractCachedOutputStream csnew = (AbstractCachedOutputStream) message
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:61: cannot find symbol
      [javac] symbol : variable AbstractCachedOutputStream
      [javac] location: class demo.stream.interceptor.StreamInterceptor
      [javac] AbstractCachedOutputStream.copyStream(csnew.getInputStream(), zipOutput, 1024);
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:63: cannot find symbol
      [javac] symbol : method close()
      [javac] location: class demo.stream.interceptor.StreamInterceptor.CachedStream
      [javac] cs.close();
      [javac] ^
      [javac] /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java:92: cannot find symbol
      [javac] symbol : variable currentStream
      [javac] location: class demo.stream.interceptor.StreamInterceptor.CachedStream
      [javac] currentStream.flush();
      [javac] ^
      [javac] Note: /local/cxf/trunk/distribution/target/apache-cxf-2.0-incubator-SNAPSHOT/samples/streamInterceptor/src/demo/stream/interceptor/StreamInterceptor.java uses or overrides a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] 9 errors

      BUILD FAILED

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            blin Bozhong Lin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: