IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Isuue on pub.io:mark

  • 1.  Isuue on pub.io:mark

    Posted Tue August 01, 2006 07:11 PM

    Hi,

    I am using pub.io:mark service.
    The input to this service is from string to stream service.

    The error:
    The mark method is not supported by the supplied InputStream.

    what might be the reason? any suggestions

    Thanks
    Kris


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Isuue on pub.io:mark

    Posted Tue August 01, 2006 09:29 PM

    Are you using PSUtilities.stream:stringToStream? If so, the reason for the exception is that the stream class being used (java.io.StringBufferInputStream) by that service doesn’t support the mark feature.

    The StringBufferInputStream class is deprecated (as of JDK 1.1). It doesn’t properly convert characters to bytes. As a result, you probably shouldn’t use the stringToStream service and should replace it with one of your own.

    If you’re not using the PSUtilities service, what service are you using and what is the underlying class?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB