ParseQueryString

I'm using the now deprecated parseQueryString() to retrieve name/value pairs from a given request.
According to the API doc, '+' characters are converted to spaces. But a value in my request happens to have a '+' in it that I need to keep:
'myKey=myData+'
How can I prevent parseQueryString() from converting the '+' to a space? Is there something I need to do to the query string prior to passing it into this method?
Thanks.

Not entirely - the href in my case is builtup dynamically, and looks like this on the page:
/MyServlet?myComponent=CMIS+ Direct/MyData
By the time the request gets to the servlet, the spaces have been converted to %20, but the '+' is untouched. So after calling HttpServletRequest::getQueryString(), I have the following:
/MyServlet?myComponent=CMIS+%20Direct/MyData
By the time I get though with HttpUtils:parseQueryString(), and get the value from the hashtable, I have the following:
/MyServlet?myComponent=CMIS Direct/MyData

Similar Messages

  • Which method can replace parseQueryString()

    Hi,
    javax.servlet.http.HttpUtils.parseQueryString(java.lang.String s) which is used to parse a query string passed from the client to the server and builds a HashTable object with key-value pairs has already been deprecated. I got the warning when I compiled the code. What's the method can replace parseQueryString() which can provide me the same functionality ?
    many thanks.

    From the API Docs for HttpUtils
    Class HttpUtils
    java.lang.Object
    |
    +-javax.servlet.http.HttpUtils
    Deprecated. As of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces.
    This means that you will need to use the HttpServletRequest interface methods.

  • Reading XML object from Request object

    Hi,
    We are using Flash in our web application in which we are sending an XML object using HTTP post method to a JSP where we need to parse the XML object and get the values. Can anyone tell how we can do it?

    In fact we are not getting error in our page. following is the error
    Error: 500
    Location: /team/par/getData10.jsp
    Internal Servlet Error:
    java.lang.IllegalArgumentException
         at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:151)
         at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:254)
         at org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101)
         at org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:719)
         at org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
         at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
         at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRequestFacade.java:223)
         at org.apache.jasper.servlet.JspServlet.preCompile(JspServlet.java:437)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:480)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread

  • When FMLE stopped,Remote RTMP stream to FMS 4.5 with rtmfp?

    When FMLE stopped,Remote RTMP stream to FMS 4.5 with rtmfp?
    edit  "applications/multicast/main.asc" ?
    HELP ME !!! THANKS!!!
    * File: main.asc
    * The server-side portion of the multicast sample application.
    * This app accepts publish and unpublish requests from FMLE, and republishes
    * the live stream from FMLE into a target Flash Group.
    // General Constants
    // "Constants" representing multicast event types.
    var TYPE_FUSION = 1;
    var TYPE_IP = 2;
    var TYPE_P2P = 3;
    // StreamContext Description, Constants and Functions
    * Type: StreamContext
    * This application tracks the context for live streams published to the server
    * that are being republished into a Flash Group. The StreamContext "type" used
    * for this is just an Object containing the following members:
    *   client         - The encoding/publishing client.
    *   streamName     - The source Stream name as published by the client.
    *   type           - The multicast event type.
    *   groupspec      - The groupspec identifying the Flash Group and capabilities.
    *   address        - IP multicast address (optional for pure P2P events).
    *   netConnection  - A loopback NetConnection used for the mcastNetStream.
    *   mcastNetStream - The NetStream used to republish the source Stream into
    *                    the Flash Group.
    *   netGroup       - An (optional) NetGroup handle for the target Group.
    *                    Only present for Fusion or P2P events.
    *   state          - One of the state constants defined immediately below
    *                    this comment.
    var STATE_INIT            = 0; // Starting state for a StreamContext.
    var STATE_CONNECTING      = 1; // Establishing loop-back connection.
    var STATE_CONNECTED       = 2; // Connection established.
    var STATE_PUBLISH_PENDING = 3; // Attempting to publish.
    var STATE_REPUBLISHING    = 4; // Actively republishing to multicast.
    var STATE_UNPUBLISHING    = 5; // Shutting down multicast republish.
    var STATE_UNPUBLISHED     = 6; // Unpublished successfully.
    var STATE_DISCONNECTING   = 7; // Shutting down loopback connection.
    var STATE_DISCONNECTED    = 8; // Connection shut down. Done.
    * Registers a source Stream published by the specified client, along with the
    * context for the multicast event, as a StreamContext Object.
    * @param client - The Client publishing the stream.
    * @param streamName - The source Stream name.
    * @param params - The parameters resulting from parsing the source Stream's
    *                 query string.
    * @return The new StreamContext Object for the registered Stream.
    function registerStream(client, streamName, params)
        var streamContext = { "client": client,
                              "streamName": streamName,
                              "type": params["fms.multicast.type"],
                              "groupspec": params["fms.multicast.groupspec"] };
    if (params["fms.multicast.interface"])
      streamContext["interfaceAddress"] = params["fms.multicast.interface"];
        if (params["fms.multicast.address"])
            streamContext["address"] = params["fms.multicast.address"],
        streamContext.state = STATE_INIT;
        updateStreamContextLookups(streamContext);
        trace("Registered multicast context for source stream: " + streamName);
        return streamContext;
    * Updates the indexed lookups installed for the passed StreamContext Object
    * with the application.
    * @param streamContext - The StreamContext Object to (re)index.
    function updateStreamContextLookups(streamContext)
        application.streamTable[streamContext.streamName] = streamContext;
        if (streamContext.netConnection)
            application.netConnTable[streamContext.netConnection] = streamContext;
        if (streamContext.mcastNetStream)
            application.mcastNetStreamTable[streamContext.mcastNetStream] = streamContext;
        if (streamContext.netGroup)
            application.netGroupTable[streamContext.netGroup] = streamContext;
    * Provides access to the StreamContext Object for a registered source Stream
    * by name.
    * @param streamName - A registered source Stream name.
    * @return The associated StreamContext Object; undefined if the source Stream
    *         name is not registered.
    function getStreamContextForSourceStream(streamName)
        return application.streamTable[streamName];
    * Provides access to the StreamContext Object for a given server-side
    * NetConnection hosting a multicast NetStream.
    * @param netConnection - A server-side NetConnection.
    * @return The associated StreamContext Object; undefined if the passed
    *         NetConnection is not indexed to a StreamContext.
    function getStreamContextForNetConnection(netConnection)
        return application.netConnTable[netConnection];
    * Provides access to the StreamContext Object for a given multicast NetStream.
    * @param netStream - A multicast NetStream.
    * @return The associated StreamContext Object; undefined if the passed
    *         NetStream is not indexed to a StreamContext.
    function getStreamContextForMulticastNetStream(netStream)
        return application.mcastNetStreamTable[netStream];
    * Provides access to the StreamContext Object for a given NetGroup associated
    * with a multicast NetStream.
    * @param netGroup - A NetGroup.
    * @return The associated StreamContext Object; undefined if the passed
    *         NetGroup is not indexed to a StreamContext.
    function getStreamContextForNetGroup(netGroup)
        return application.netGroupTable[netGroup];
    * Unregisters the StreamContext from the application.
    * @param streamContext - The StreamContext Object to unregister.
    function unregisterStreamContext(streamContext)
        if (streamContext.netConnection)
            delete application.netConnTable[streamContext.netConnection];
        if (streamContext.mcastNetStream)
            delete application.mcastNetStreamTable[streamContext.mcastNetStream];
        if (streamContext.netGroup)
            delete application.netGroupTable[streamContext.netGroup];
        trace("Unregistered multicast context for source stream: " +
              streamContext.streamName);
    // Application callback functions
    * Initializes global StreamContext lookup tables.
    application.onAppStart = function()
        application.streamTable = {};
        application.netConnTable = {};
        application.mcastNetStreamTable = {};
        application.netGroupTable = {};
    * Handles a publish event for the application by validating the request
    * and bridging the published stream into a target Flash Group. Invalid
    * publish requests are ignored and the publishing client's connection
    * is closed.
    * @param client - The publishing client.
    * @param stream - The published stream.
    application.onPublish = function(client, stream)
        //trace("Handling publish request for source stream: " + stream.name);
        var params = parseQueryString(stream.publishQueryString);
        if (!validateStreamParams(params))
            application.disconnect(client);
            return;
        var prevContext = getStreamContextForSourceStream(stream.name);
        if (prevContext)
            forceCloseStreamContext(prevContext);
        // Register source Stream, and kick off the async process that will
        // eventually wire-up the associated multicast NetStream.
        var streamContext = registerStream(client, stream.name, params);
        openMulticastConnection(streamContext);
    * Handles an unpublish event for the application by shutting down
    * any associated multicast NetStream.
    * @param client - The unpublishing client.
    * @param stream - The source stream being unpublished.
    application.onUnpublish = function(client, stream)
        trace("Handling unpublish request for source stream: " + stream.name);
        var streamContext = getStreamContextForSourceStream(stream.name);
        if (streamContext && (streamContext.state <= STATE_REPUBLISHING))
            destroyStreamContext(streamContext);
    // Callback functions for NetConnection and multicast NetStream/NetGroup wiring.
    * First step in setting up a republished multicast NetStream; open the loopback
    * connection it requires.
    * @param streamContext - The StreamContext Object for the publish event.
    function openMulticastConnection(streamContext)
        var nc = new NetConnection();
        nc.onStatus = netConnectionStatusHandler;
        streamContext.netConnection = nc;
        updateStreamContextLookups(streamContext);
        streamContext.state = STATE_CONNECTING;
        nc.connect(resetUriProtocol(streamContext.client.uri, "rtmfp"));
    * Status event handler for the loopback NetConnection used by the multicast
    * NetStream. Advances setup upon successful connection, or triggers or advances
    * tear-down as a result of connection loss or an unpublish and clean shutdown.
    * @param info - The status info Object.
    function netConnectionStatusHandler(info)
        var streamContext = getStreamContextForNetConnection(this);
        trace("Multicast NetConnection Status: " + info.code +
              (streamContext ? ", Source stream: " + streamContext.streamName : ", Not associated with a source stream."));
        if (streamContext)
            switch (info.code)
            case "NetConnection.Connect.Success":
                streamContext.state = STATE_CONNECTED;
                // If event type is Fusion or P2p, wire up a NetGroup for neighbor
                // bootstrapping and maintenance ahead of (re)publishing the stream.
                var type = streamContext.type;
                if (type == TYPE_FUSION || type == TYPE_P2P)
                    initNetGroup(streamContext);
                else
                    initMulticastNetStream(streamContext);
                break;
            case "NetConnection.Connect.Failed":
            case "NetConnection.Connect.Rejected":
            case "NetConnection.Connect.AppShutdown":
                trace("MULTICAST PUBLISH ERROR: Failed to establish server-side NetConnection for use by multicast NetStream. " +
                      "Status code: " + info.code + ", description: " + info.description + ", Source stream: " +
                      streamContext.streamName);
                streamContext.state = STATE_DISCONNECTED;
                destroyStreamContext(streamContext);
                break;
            case "NetConnection.Connect.Closed":
                if (streamContext.state < STATE_DISCONNECTING)
                    trace("MULTICAST PUBLISH ERROR: Unexpected server-side NetConnection close. " +
                         "Status code: " + info.code + ", description: " + info.description + ", Source stream: " +
                         streamContext.streamName);
                streamContext.state = STATE_DISCONNECTED;
                destroyStreamContext(streamContext);
                break;
            default:
                // Ignore.
    * Initializes the multicast NetGroup following a successful connection of its
    * underlying loopback NetConnection. This hook is optional and only runs for
    * event types of Fusion and pure P2P.
    * @param streamContext - The StreamContext Object for the multicast publish.
    function initNetGroup(streamContext)
        var ng = null;
        try
            ng = new NetGroup(streamContext.netConnection, streamContext.groupspec);
        catch (e)
            trace("MULTICAST PUBLISH ERROR: Failed to construct NetGroup. Error: "
                  + e.name + (e.message ? " " + e.message : "") +
                  ", Source stream: " + streamContext.streamName);
            destroyStreamContext(streamContext);
            return;
        ng.onStatus = netGroupStatusHandler;
        streamContext.netGroup = ng;
        updateStreamContextLookups(streamContext);
    * Status event handler for the multicast NetGroup. Advances to initializing the
    * multicast NetStream upon successful NetGroup connect. Otherwise, triggers
    * shut down.
    * @param info - The status info Object.
    function netGroupStatusHandler(info)
        var streamContext = getStreamContextForNetGroup(this);
        trace("Multicast NetGroup Status: " + info.code +
              (streamContext ? ", Source stream: " + streamContext.streamName : ", Not associated with a source stream."))
        if (streamContext)
            switch (info.code)
            case "NetGroup.Connect.Success":
                initMulticastNetStream(streamContext);
                break;
            case "NetGroup.Connect.Failed":
            case "NetGroup.Connect.Rejected":
                trace("MULTICAST PUBLISH ERROR: Failed to connect multicast NetGroup. " +
                      "Status code: " + info.code + ", description: " + info.description +
                      ", Source stream: " + streamContext.streamName);
                destroyStreamContext(streamContext);
                break;
            case "NetGroup.MulticastStream.UnpublishNotify":
                // At this point, multicast publishers will be notified;
                // continue shut down.
                destroyStreamContext(streamContext);
                break;
            default:
                // Ignore.
    * Initializes the multicast NetStream following a successful connection of its
    * underlying loopback NetConnection.
    * @param streamContext - The StreamContext Object for the multicast publish.
    function initMulticastNetStream(streamContext)
        var ns = null;
        try
            ns = new NetStream(streamContext.netConnection, streamContext.groupspec);
        catch (e)
            trace("MULTICAST PUBLISH ERROR: Failed to construct multicast NetStream. Error: " +
                  e.name + (e.message ? " " + e.message : "") +
                  ", Source stream: " + streamContext.streamName);
            destroyStreamContext(streamContext);
            return;
        var type = streamContext.type;
        if (type == TYPE_FUSION || type == TYPE_IP)
      var iAddr = (streamContext.interfaceAddress) ? streamContext.interfaceAddress : null;
            try
                trace("Multicast NetStream will publish to IP address: " + streamContext.address +
          " on interface address: " + ((iAddr) ? iAddr : "default") +
                      ", Source stream: " + streamContext.streamName);
                ns.setIPMulticastPublishAddress(streamContext.address, iAddr);
            catch (e2)
                trace("MULTICAST PUBLISH ERROR: Failed to assign IP multicast address and port for publishing. Address: "
                      + streamContext.address + " on interface address: " + ((iAddr) ? iAddr : "default") +
          ", Source stream: " + streamContext.streamName);
                destroyStreamContext(streamContext);
                return;
        ns.onStatus = netStreamStatusHandler;
        streamContext.mcastNetStream = ns;
        updateStreamContextLookups(streamContext);
        streamContext.state = STATE_PUBLISH_PENDING;
    * Status event handler for the multicast NetStream. Advances state upon successful
    * connect and publish, or upon successful unpublish. Triggers tear-down if we fail
    * to attach to a source Stream to republish.
    * @param info - The status info Object.
    function netStreamStatusHandler(info)
        var streamContext = getStreamContextForMulticastNetStream(this);
        trace("Multicast NetStream Status: " + info.code +
              (streamContext ? ", Source stream: " + streamContext.streamName : ", Not associated with a source stream."))
        if (streamContext)
            switch (info.code)
            case "NetStream.Connect.Success":
                if (!this.attach(Stream.get(streamContext.streamName)))
                    trace("MULTICAST PUBLISH ERROR: Failed to attach multicast NetStream to source. Source stream: " +
                          streamContext.streamName);
                    destroyStreamContext(streamContext);
        //var stream;
                //stream = Stream.get("liveStream");
                    //return;
                }else{
                this.publish(streamContext.streamName, "live");
                break;
            case "NetStream.Publish.Start":
                streamContext.state = STATE_REPUBLISHING;
                break;
            case "NetStream.Unpublish.Success":
                streamContext.state = STATE_UNPUBLISHED;
                // Wait for unpublish notify event if the context has a NetGroup;
                // otherwise continue shut down now.
                if (!streamContext.netGroup)
                    destroyStreamContext(streamContext);
                    break;
            default:
                // Ignore.
    * The common tear-down hook. Other functions that manage or shut down
    * the StreamContext Object delegate to this function upon detecting a fatal
    * error or during shut down.
    * @param streamContext - The StreamContext Object for the source Stream and
    *                        (potentially wired-up) multicast NetStream.
    function destroyStreamContext(streamContext)
        // Unregister by Stream name immediately; lookups by NetConnection, NetGroup
        // and multicast NetStream remain in place until tear-down is complete.
        delete application.streamTable[streamContext.streamName];
        switch (streamContext.state)
        case STATE_REPUBLISHING:
            streamContext.mcastNetStream.attach(false);
            streamContext.mcastNetStream.publish(false);
            streamContext.state = STATE_UNPUBLISHING;
            return;
        case STATE_CONNECTING:
        case STATE_CONNECTED:
        case STATE_PUBLISH_PENDING:
        case STATE_UNPUBLISHED:
            // Delete status handler callbacks and cleanup in case we arrived here
            // as a result of a force close.
            if (streamContext.netGroup)
                delete streamContext.netGroup.onStatus;
            if (streamContext.mcastNetStream)
                streamContext.mcastNetStream.attach(false);
                delete streamContext.mcastNetStream.onStatus;
            streamContext.netConnection.close();
            streamContext.state = STATE_DISCONNECTING;
            return;
        default:
            // Fall-through.
        // At this point, we either never got to the republishing state or we've
        // proceeded through the clean shut down steps above. Everything for this
        // StreamContext can go away.
        unregisterStreamContext(streamContext);
    * Utility function used to force close a StreamContext in the event that we
    * start handling a republish of a Source stream before the context for its
    * prior incarnation has been torn down.
    * @param streamContext - The StreamContext Object for the source Stream.
    function forceCloseStreamContext(streamContext)
        trace("Force closing previous multicast context for source stream: " + stream.name);
        prevContext.state = STATE_UNPUBLISHED;
        destroyStreamContext(prevContext);
    // Client callback functions
    * A no-op. Answers the RPC in the fashion expected by encoders, but the real
    * work happens in application.onPublish.
    * @param streamName - The name of the stream being published.
    Client.prototype.FCPublish = function(streamName)
        this.call("onFCPublish",
                  null,
                  {code:"NetStream.Publish.Start", description:streamName});
    * A no-op. Answers the RPC in the fashion expected by encoders, but the real
    * work happens in application.onUnpublish.
    * @param streamName - The name of the stream being unpublished.
    Client.prototype.FCUnpublish = function(streamName)
        this.call("onFCUnpublish",
                  null,
                  {code:"NetStream.Unpublish.Success", description:streamName});
    * If the client invoker's ip matches what was captured for a currently publishing
    * stream, assume it's the same client and reset the stream. Otherwise, ignore.
    * @param streamName - The name of the stream being released.
    Client.prototype.releaseStream = function(streamName)
        var streamContext = getStreamContextForSourceStream(streamName);
        if (streamContext &&
            (streamContext.client.ip == this.ip) &&
            (streamContext.state <= STATE_REPUBLISHING))
            // Only tear-down an orphaned stream if it's not
            // already shutting down (see state check above).
            destroyStreamContext(streamContext);
    // Helper functions
    * Validates that a newly published stream has correct metadata (e.g. query
    * string parameters) to republish into a Flash Group. This function also
    * writes a message to the application log for any validation failures.
    * @param params - The quiery string parameters for the source Stream.
    * @return true if valid; otherwise false.
    function validateStreamParams(params)
        var empty = true;
        for (var param in params)
           empty = false;
           break;
        if (empty)
            trace("MULTICAST PUBLISH ERROR: Stream query string is empty.");
            return false;
        if (!params["fms.multicast.type"])
    trace("MULTICAST PUBLISH ERROR: Stream query string does not specify a 'fms.multicast.type'.");
            return false;
        var type = params["fms.multicast.type"];
        if (type != 1 && type != 2 && type != 3)
            trace("MULTICAST PUBLISH ERROR: 'fms.multicast.type' has invalid value: " + type);
            return false;
        if (!params["fms.multicast.groupspec"])
            trace("MULTICAST PUBLISH ERROR: Stream query string does not specify a 'fms.multicast.groupspec'.");
            return false;
        // Fusion and IP require an address:port.
        if ((type == 1 || type == 2) &&
            !params["fms.multicast.address"])
            trace("MULTICAST PUBLISH ERROR: Stream query string does not specify a 'fms.multicast.address'.");
            return false;
        // No obvious validation issues.
        return true;
    * Parses the supplied query string, and if valid, returns an Object populated
    * with the name-value pairs contained in the query string. The simple processing
    * here does not preserve multiple name-value pairings having the same name; the
    * last value seen wins. Parameters with no value are mapped to "" (empty String)
    * in the returned Object.
    * @param queryString - A query string portion of a URI, not including the leading
    *                     '?' character.
    * @return An Object containing a key-value mapping for each name-value parameter
    *         defined in the query string; Object is empty if the query string is
    *         invalid.
    function parseQueryString(queryString)
        var result = {};
        var decoded = "";
        try
            decoded = decodeURIComponent(queryString);
        catch (e) // Invalid URI component; return empty result.
            return result;
        if (decoded.length)
            var params = decoded.split('&');
            for (var i in params)
                var pair = params[i];
         var sepIndex = pair.indexOf('=');
                if (sepIndex != -1)
                    var name = pair.substr(0, sepIndex);
                    result[name] = pair.substr(sepIndex + 1);
                else
                    result[pair] = "";
        return result;
    * Utility function used to swap out the protocol (scheme) portion
    * of a given URI with an alternate.
    * @param uri - The full URI.
    * @param desiredProtocol - The replacement protocol.
    * @return The URI with its protocol replaced.
    function resetUriProtocol(uri, desiredProtocol)
        var sepIndex = uri.indexOf("://");
        return desiredProtocol + uri.substr(sepIndex);

    HELP ME !!! THANKS!!!

  • Problem getting CF8 administrator to work on windows 2008 server

    When I create a file helloworld.cfm in root folder and browse to http://localhost/helloworld.cfm, it renders cfoutput fine <cfoutput>#now()#</cfoutput> shows the correct date and time.
    But, when I go to the CF Administrator and enter the password for the initial setup, I keep getting the following error. Anyone have any idea how to fix it? I have checked permission everything seems fine.
    If there is no solution, then I am thinking of upgrading to CF 10. If I buy and upgrade from CF8 to CF10, can I do a fresh install on a new 2008 server, or do i need to have CF8 installed correctly first?
    Server Error
    500 - Internal server error.
    There is a problem with the resource you are looking for, and it cannot be displayed.
    500
    ROOT CAUSE: java.lang.IllegalArgumentException at coldfusion.filter.FormScope.parseQueryString(FormScope.java:321) at coldfusion.filter.FormScope.parsePostData(FormScope.java:293) at coldfusion.filter.FormScope.fillForm(FormScope.java:243) at coldfusion.filter.FusionContext.SymTab_initForRequest(FusionContext.java:430) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:33) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    javax.servlet.ServletException: ROOT CAUSE: java.lang.IllegalArgumentException at coldfusion.filter.FormScope.parseQueryString(FormScope.java:321) at coldfusion.filter.FormScope.parsePostData(FormScope.java:293) at coldfusion.filter.FormScope.fillForm(FormScope.java:243) at coldfusion.filter.FusionContext.SymTab_initForRequest(FusionContext.java:430) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:33) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)  at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    For CF 8 :  Enable the built-in port in jrun.xml like this : (C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF)
      <!-- ================================================================== -->
      <!-- This is the built-in JRun Web Server                               -->
      <!-- ================================================================== -->
      <service class="jrun.servlet.http.WebService" name="WebService">
        <attribute name="port">8500</attribute>
        <attribute name="interface">*</attribute>
        <attribute name="deactivated">false</attribute>
    For CF 10 :
    The installer of CF 10 is indepedent of CF 8.
    If you want to keep both CF 8 and CF 10 on the same server, then yes it is possible.
    If you just want CF 10, then you can uninstall CF 8 and install CF 10.
    However if you want to keep CF 10 only and migrate all CF 8 settings to CF 10 then make sure that when you install CF 10, the service of CF 8 should be running. At the end of CF 10 install, you will be asked : Do you want to migrate all the CF 8 settings to CF 10? Say yes and all CF 8 settings should be migrated to CF 10
    HTH
    Thanks
    VJ

  • Runtime error in Application server of linux

    i have been converter file in application server but when i run this report then it give erro to me as follow
    500 Internal Server Error
    java.lang.StringIndexOutOfBoundsException: String index out of range: 13 at java.lang.String.charAt(String.java:444) at oracle.reports.rwclient.URLParser.parseQueryString(URLParser.java:142) at oracle.reports.rwclient.URLParser.parseQueryString(URLParser.java:68) at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1382) at oracle.reports.rwclient.RWClient.doGet(RWClient.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)

    It is possible that your reports server dat file might have gone corrupt However it is too early as well to conclude that without having a detailed look at the reports trace files. Let us know what exactly do you get if you run the same report using rwservlet
    http://hostname:port/reports/rwservlet?report=repname&userid=usernamd/password@db&desformat=html&destype=cache&server=<repserver>&paramform=yes/no
    Thanks,
    Anand

  • Ampersands in query strings

    Hi,
    I was wondering if anyone has attempted to parse query strings that contain ampersands (&) or equals (=) in the parameter values.
    At the moment we have some working code to do this but it is kind of messy and complicated. If possible we would like to make use of Java classes to do this for us. I was thinking along the lines of using some or all of:
    Hashtable javax.servlet.http.HttpUtils.parseQueryString( String s)
    String java.net.URLDecoder.decode( String s)
    String java.net.URLEncoder.encode( String s)Has anyone managed to implement a parser using these classes? Basically the problem is determining where to split the name/value pairs when the delimiters may be included in the values.
    Just to give you an idea, try parsing the following URL
    http://someserver/servlet?parm1=val&ue&parm2=val=ue
    Craig

    Here's the thing:
    If submitting by form then req.getParameter(name) works fine for both types of parameter values.
    If submitting by link then req.getParameter(name)
    - Works for parameters with '=' in them
    - Doesn't work for values with '&' in them.
    I actually need to be able to parse a query string (the parameter list part of a link). However, it isn't specific to submission processing.
    I want to be able to parse the string generically regardless of whether it comes from the web or whether I call it from within the code.
    In short, I want to be able to take a string like Param1=Val&ue&Param2=Val=ue and split it into name/value pairs from anywhere in the code.

  • How to Parse Escape Character(&) with JSP Include URGENT

    Hi,
    I guess anyone could help me out.
    I have a JSP file where I am including another JSP file and setting parameter for that include file. Among those parameters one of the parameter is having a value having ampersand with it. like R&D. In such case am i getting following error.
    I dont know how should I get rid of this &.
    I tried converting it to amp; even tried \\& also tried using escape("R&D"). But no success. Can you guys help
    Code:
    <jsp:include page="../hottopics/controller_hottopics1.jsp" flush="true">
    <jsp:param name="UserID" value="<%=username%>" />
    <jsp:param name="kmsid" value="<%=kmsid%>" />
    <jsp:param name="department" value="<%=department%>"/>
    <jsp:param name="location" value="<%=location%>"/>
    <jsp:param name="supportorg" value="<%=supportorg%>"/>
    <jsp:param name="supportflag" value="<%=supportflag%>"/>
    </jsp:include>
    department : R&D
    Error :
    java.lang.IllegalArgumentException
    at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:151)
    at org.apache.tomcat.facade.RequestDispatcherImpl.addQueryString(RequestDispatcherImpl.java:546)
    at org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherImpl.java:388)
    at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:270)
    at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414)
    at ITHelpAlerts_0002dv_00034._0002fITHelpAlerts_0002dv_00034_0002fgadget_0002ejspgadget_jsp_7._jspService(_0002fITHelpAlerts_0002dv_00034_0002fgadget_0002ejspgadget_jsp_7.java:210)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:534)

    Okay, not surprising. Like I said, the & has special meaning in URLs, to seperate one parameter from the next. Perhaps you should thing about using request attributes instead of parameters:
    request.setAttribute("department", "R&D");
    //then on recieving side
    String department = (String)request.getAttribute("department");

  • Sharepoint 2013 - url redirects with port number added

    Hi,
    In our sharepoint 2013 environment, we have a custom application and in which we have a button and when we click on the button the initial url was below
    http://abcd.com/apps/xyz/test.aspx
    After clickin on the button it redirects to the below, where in the custom app they are using query string to append the url.
    http://abcd.com:6001/apps/xyz/test.aspx?EID=7&ListID=1723aasd-ajsfs12346
    And i am getting the web page cannot be displayed error.
    Please help me to resolve this issue. Is there any issue in the custom code or in IIS redirect or server related configuration.
    Any help is much appreciated.

    Hi Krishna,
    Thanks for your reply,
    We have constructed the code in .cs file. And the code is
    private
    void Redirect(int
    id)
    NameValueCollection queryString;
                queryString =
    HttpUtility.ParseQueryString(Request.Url.Query);
                queryString["EID"]
    = id.ToString();
                queryString["List"]
    = List.ID.ToString();
                queryString.Remove("AssignToMe");
    //Response.Redirect(Request.Path + "?" + queryString, true);
    //Response.Redirect(SPContext.Current.Web.Url + "?" + queryString, true);
                Response.Redirect(SPContext.Current.Web.Url
    + "/Pages/Request.aspx" +
    "?" + queryString,
    true);
    Smile Always

  • Coldfusion Error when submit to next page

    java.lang.IllegalArgumentException
    at coldfusion.filter.FormScope.parseName(FormScope.java:321)
    at
    coldfusion.filter.FormScope.parseQueryString(FormScope.java:277)
    at
    coldfusion.filter.FormScope.parsePostData(FormScope.java:246)
    at coldfusion.filter.FormScope.fillForm(FormScope.java:197)
    at
    coldfusion.filter.FusionContext.SymTab_initForRequest(FusionContext.java:345)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
    at
    jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    Sorry for the previous posting.
    When i try to post the current page form variables to the
    next page, on and off i do encounter the following error. can you
    all coldfusion gurus help? thanks in advance.
    The form variables are about 3kb in size.
    my coldfusion server is MX6.1(standard edition) host in
    Windows 2000 server with MSSQL 2000 server.
    java.lang.IllegalArgumentException
    at coldfusion.filter.FormScope.parseName(FormScope.java:321)
    at
    coldfusion.filter.FormScope.parseQueryString(FormScope.java:277)
    at
    coldfusion.filter.FormScope.parsePostData(FormScope.java:246)
    at coldfusion.filter.FormScope.fillForm(FormScope.java:197)
    at
    coldfusion.filter.FusionContext.SymTab_initForRequest(FusionContext.java:345)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
    at
    jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Should I use AxMsRdpClient6 or AxMSTSCLib.AxMsRdpClient8NotSafeForScripting

    Hello,
    I'm trying to create windows form application that allows a user to connect to a virtual machine. I have implemented VCL 
    http://vcl.apache.org/ and users are
    allowed to download the rdp file but I would like to automate it so when they click connect(in vcl php interface. ( I believe I need to create a uri in registry so the browser knows to call my windows form  program to handle rdp protocol) RDP automatically
    connects them to the vm with the temporary password and username. I have some example code below. Eventually I'm going to parse the URI and pass those parameters. My question is what happens if the client is using Windows XP will the rdp control v8(AxMSTSCLib.AxMsRdpClient8NotSafeForScripting)
    work? what's the best approach for what I'm trying to accomplish. Any help in getting me started is appreciated. 
    private void button1_Click(object sender, EventArgs e)
    Uri uri;
    uri = new Uri("rdp://username:[email protected]?forwardDisks=yes&forwardPrinters=yes&forwardSerial=yes&forwardAudio=yes&drawDesktop=yes&title=VCL%20Reservation&screenWidth=1280&screenHeight=1024");
    Console.WriteLine(uri.UserInfo);
    Console.WriteLine("Fully Escaped {0}", uri.UserEscaped ? "yes" : "no");
    rdp.Server = "10.10.11.63";
    rdp.UserName = "username";
    rdp.AdvancedSettings9.ClearTextPassword = "9TSDSw";
    rdp.AdvancedSettings9.RedirectDrives = true;
    rdp.Connect();
    Here is some more generated code.
    namespace VCLConnect
    partial class RDPWindow
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.IContainer components = null;
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected override void Dispose(bool disposing)
    if (disposing && (components != null))
    components.Dispose();
    base.Dispose(disposing);
    #region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RDPWindow));
    this.connect = new System.Windows.Forms.Button();
    this.rdp = new AxMSTSCLib.AxMsRdpClient8NotSafeForScripting();
    ((System.ComponentModel.ISupportInitialize)(this.rdp)).BeginInit();
    this.SuspendLayout();
    // connect
    this.connect.Location = new System.Drawing.Point(12, 596);
    this.connect.Name = "connect";
    this.connect.Size = new System.Drawing.Size(75, 23);
    this.connect.TabIndex = 1;
    this.connect.Text = "Connect";
    this.connect.UseVisualStyleBackColor = true;
    this.connect.Click += new System.EventHandler(this.button1_Click);
    // rdp
    this.rdp.Enabled = true;
    this.rdp.Location = new System.Drawing.Point(12, 12);
    this.rdp.Name = "rdp";
    this.rdp.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("rdp.OcxState")));
    this.rdp.Size = new System.Drawing.Size(1172, 578);
    this.rdp.TabIndex = 2;
    this.rdp.OnConnecting += new System.EventHandler(this.axMsRdpClient8NotSafeForScripting1_OnConnecting);
    // RDPWindow
    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    this.ClientSize = new System.Drawing.Size(1196, 631);
    this.Controls.Add(this.rdp);
    this.Controls.Add(this.connect);
    this.Name = "RDPWindow";
    this.Text = "Remote Desktop Connection";
    ((System.ComponentModel.ISupportInitialize)(this.rdp)).EndInit();
    this.ResumeLayout(false);
    #endregion
    private System.Windows.Forms.Button connect;
    private AxMSTSCLib.AxMsRdpClient8NotSafeForScripting rdp;

    Some other code. Just getting started so I have not piece it all together yet but I'd like to know what controls to use and if I need separate code for 32 vs 64 bit and XP and windows 7 etc.. Thank You
    static void Main(string[] args)
    if (args.Length == 1)
    // format of uri passed in:
    /* rdp://username:[email protected]?forwardDisks=yes&forwardPrinters=yes&forwardSerial=yes
    * &forwardAudio=yes&drawDesktop=yes&title=VCL%20Reservation&screenWidth=1280&screenHeight=1024
    Uri uri = null;
    try
    uri = new Uri(args[0]);
    catch (UriFormatException ex)
    System.Windows.Forms.MessageBox.Show(ex.Message.ToString());
    System.Windows.Forms.MessageBox.Show(HttpUtility.ParseQueryString(uri.Query).Get("title"));
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    //Application.Run(new RDPWindow());

  • Pulling a stream from external FMS and publishing in Multicast

    Hi. I'm developping a FMS 4 application that read an external stream, and then, republish it in multicast:
    1.- So, first of all I open  a NetConnection to the remote application. And I associate it to a new Stream created in the application. Then I have the stream available in my application.
    nc = new NetConnection();
    nc.connect(REMOTE_APPLICATION);
    nc.onStatus = function(info)
    trace("REMOTE_APPLICATION->NetConnection> code: " + info.code);
    if (info.code == "NetConnection.Connect.Success")
      rebroadcast_s = new Stream.get("tempStream");
      rebroadcast_s.onStatus = function(info)
       trace("Stream> code: " + info.code);
       trace("Stream> details: " + info.details);
       if (info.code == "NetStream.Publish.Start")
              trace("REMOTE_STREAM->The stream is now publishing");
      rebroadcast_s.play(REMOTE_STREAM, -1, -1, true, nc);
    2.- I would like to use the same methods of native multicast.as application, for managing the multicast publishing: registerStream, openMulticastConnection, ...
    var MULTICAST_PARAMETERS = "fms.multicast.type=2&fms.multicast.groupspec=G%3A0101210558cc3408e77326e2fa1c53c52697d73 e1b02182c358c57075cd9a58ed1a25241010d160e666d732e6d756c7469636173742e6578616d706c65210e855 5a813f0c73cd8f5384e0fba657163ab87e76c25b6f82be9b94777b2d52cfe00070aefff00fe7530051576706f6 4&fms.multicast.address=239.255.0.254%3A30000";
    var params = parseQueryString(MULTICAST_PARAMETERS);
    var streamContext = registerStream(CLIENT??????, MULTICAST_STREAM_NAME, params);
    openMulticastConnection(streamContext);
    But, I don't know who would be the client in the registerStream method. Which reference should I add there? Is it possible in this way?
    I made another different script that republish that stream in localhost using NetConnection.publish(localhost/sameapplication). It works properly. But I would like to be able of managing it in the other way.
    Thank you,
    Iván

    1.- Tried adding NULL, and there's an error trying to access to the properties of the parameter, and finally the multicast publication is not done:
    Registered multicast context for source stream: livestream
    Sending error message: /opt/adobe/fms/applications/vpodmulticast2/main.asc: line 308: TypeError: streamContext.client has no properties
    2.- Tried adding the nc reference, and there's no error in the logs, but the multicast publication is not done neither.
    3.- Going deeply in the code, I discovered that client object is only used for getting the client.uri (the uri where the client is publishing the stream) and the client.ip (for internal connection managing). So I created a client object with these two attributes, and It's working properly:
    var params = parseQueryString(MULTICAST_PARAMETERS);
    var client = new Object();
    client.uri = "rtmp://localhost/"+application.name;
    client.ip = "localhost";
    var streamContext = registerStream(client, MULTICAST_STREAM_NAME, params);
    openMulticastConnection(streamContext);
    Thank you,
    Iván

  • Javax.servlet.http.getRequestURL

    Hello,
    i�m using tomcat-4.1.34, and we use getRequestURL. We have a problem, getRequestUrl is returning the name of jsp is executing, and no the url.
    In tomcat-4.1.31 is ok.
    what happens??
    thanks in advance

    "DEPRECATED: As of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces. "
    You will find the getRequestURL() method in HttpServletRequest. The parsePostData() method and parseQueryString() methods were replaced with an Enumeration from ServletRequest.getAttributeNames() that is used to get Objects from ServletRequest.getAttribute(String name).
    HTH.

  • Automatically Assign Form Fields To Session

    I have a couple of forms and I want to be able to move backwards and forwards between them while keeping the information there. The following is one of the forms:
    <%
    if ((String) session.getAttribute("FirstName") == null || request.getParameter("FirstName") != session.getAttribute("FirstName"))
      session.setAttribute("FirstName", request.getParameter("FirstName"));
    if ((String) session.getAttribute("MiddleInitial") == null || request.getParameter("MiddleInitial") != session.getAttribute("MiddleInitial"))
      session.setAttribute("MiddleInitial", request.getParameter("MiddleInitial"));
    if ((String) session.getAttribute("LastName") == null || request.getParameter("LastName") != session.getAttribute("LastName"))
      session.setAttribute("LastName", request.getParameter("LastName"));
    if ((String) session.getAttribute("PhoneNumber") == null || request.getParameter("PhoneNumber") != session.getAttribute("PhoneNumber"))
      session.setAttribute("PhoneNumber", request.getParameter("PhoneNumber"));
    if ((String) session.getAttribute("Site") == null || request.getParameter("Site") != session.getAttribute("Site"))
      session.setAttribute("Site", request.getParameter("Site"));
    if ((String) session.getAttribute("Department") == null || request.getParameter("Department") != session.getAttribute("Department"))
      session.setAttribute("Department", request.getParameter("Department"));
    if ((String) session.getAttribute("Position") == null || request.getParameter("Position") != session.getAttribute("Position"))
      session.setAttribute("Position", request.getParameter("Position"));
    String sFirstName = (String) session.getAttribute("FirstName");
    String sMiddleInitial = (String) session.getAttribute("MiddleInitial");
    String sLastName = (String) session.getAttribute("LastName");
    String sPhoneNumber = (String) session.getAttribute("PhoneNumber");
    String sSite = (String) session.getAttribute("Site");
    String sDepartment =(String) session.getAttribute("Department");
    String sPosition = (String) session.getAttribute("Position");
    if (sFirstName == null)
      sFirstName = "";
    if (sMiddleInitial == null)
      sMiddleInitial = "";
    if (sLastName == null)
      sLastName = "";
    if (sPhoneNumber == null)
      sPhoneNumber = "";
    if (sSite == null)
      sSite = "";
    if (sDepartment == null)
      sDepartment = "";
    if (sPosition == null)
      sPosition = "";
    %>
    <form name="frmUserDetails" action="UserDetails.jsp" method="POST">
      <table class="BodyPosition" cellpadding="0" width="400" border="0" cellspacing="2">
        <tr>
          <td class="HeaderRow" colspan="2" width="591">
            <p class="Normal">USER DETAILS</p>
          </td>
        </tr>
        <tr>
          <td width="100">
            <p class="Normal">First Name:</p>
          </td>
          <td width="300">
            <p class="Normal">
              <input type="text" class="TextBox20" name="FirstName" value="<%= sFirstName %>" maxlength="100" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Middle Initial:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox1" name="MiddleInitial" value="<%= sMiddleInitial %>" maxlength="1" size="1">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Last Name:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="LastName" value="<%= sLastName %>" maxlength="100" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Phone Number:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="PhoneNumber" value="<%= sPhoneNumber %>" maxlength="20" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Site:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="Site" value="<%= sSite %>" maxlength="10" size="10">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Department:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="textBox20" name="Department" value="<%= sDepartment %>" maxlength="200" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Position:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="Position" value="<%= sPosition %>" maxlength="200" size="20">
            </p>
          </td>
        </tr>
      </table>
    <input type="Submit">
    </form>Now I was wondering if there would be a way to automate the code up the top:
    if ((String) session.getAttribute("FirstName") == null || request.getParameter("FirstName") != session.getAttribute("FirstName"))
      session.setAttribute("FirstName", request.getParameter("FirstName"));
    if ((String) session.getAttribute("MiddleInitial") == null || request.getParameter("MiddleInitial") != session.getAttribute("MiddleInitial"))
      session.setAttribute("MiddleInitial", request.getParameter("MiddleInitial"));
    if ((String) session.getAttribute("LastName") == null || request.getParameter("LastName") != session.getAttribute("LastName"))
      session.setAttribute("LastName", request.getParameter("LastName"));
    if ((String) session.getAttribute("PhoneNumber") == null || request.getParameter("PhoneNumber") != session.getAttribute("PhoneNumber"))
      session.setAttribute("PhoneNumber", request.getParameter("PhoneNumber"));
    if ((String) session.getAttribute("Site") == null || request.getParameter("Site") != session.getAttribute("Site"))
      session.setAttribute("Site", request.getParameter("Site"));
    if ((String) session.getAttribute("Department") == null || request.getParameter("Department") != session.getAttribute("Department"))
      session.setAttribute("Department", request.getParameter("Department"));
    if ((String) session.getAttribute("Position") == null || request.getParameter("Position") != session.getAttribute("Position"))
      session.setAttribute("Position", request.getParameter("Position"));
    }So it is done automatically. The I thought this could be done is by getting all the fields on the form and putting them in an array and then doing a loop. But I don't know how I can get all the fields off the form. I am guessing you can get the fields from the query string but I don't know how to get the right info out of it.
    Could someone help plz.

    not yet, there seems to be an error, trying to figure it out.
    java.lang.IllegalArgumentException
         at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:138)
         at org.apache.jsp.Loop$jsp._jspService(Loop$jsp.java:55)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
         at java.lang.Thread.run(Thread.java:536)

  • Can't parse javax.servlet.include.query_string using HttpUtils replacement

    The javadoc for HttpUtils.parseQueryString() says that it has been deprecated and "moved" to HttpServletRequest, but it looks to me like it has not.
    Specifically, if I call request.getAttribute("javax.servlet.include.query_string") on an included servlet to get its query string, I can't parse it.
    Looks like I either have to write my own parser, or use the deprecated method of HttpUtils. Why do I have to make this crappy choice? Why is HttpUtils deprecated, instead of fixed? Or is there another way?

    again with the assuming that one has the request object.
    Nope, got a string, that's it.
    back to original post.

Maybe you are looking for

  • How do I share my videos/pictures on icloud with other users?

    We have taken videos of Christmas using our iPad.  We have uploaded them to iCloud.  How can we share these videos with our family in other parts of the country?

  • Does iMovie for the iPad support green screen functionality?

    Was wondering if someone could help me out with this  I want to incorporate the use of green screen in my classroom.

  • Clearing in local currency

    Hi, I have following situation: a bank account and a customer account, document posted in foreign currency (EUR). Exchange rate differences were posted in this document. Then they realized that wrong bank account was used. In order not to reverse a d

  • ESLL  missinu00B4 fields in SAP ECC 6.0

    Hi, friends! I have the following issue. Could anyone tell me why in SAP ECC 6.0 the table ESLL has less fields than in SAP ECC 5.0? The point is that, in SAP 6.0, there are function modules that references some of those missing fields and get dump a

  • Deleting/reconstructing indexes for InfoCube 0PUR_C04 is not permitted

    Hello, I have got the above error today while  monitoring process chains. i.e error in create index and showing as 'Deleting/reconstructing indexes for InfoCube 0PUR_C04 is not permitted ' i will get this error every week and i'll repeat this ,but it