Oracle standard example doesn't work

Hi All,
I am surprsied to see that following standard example from Oracle doesn't work as expected. http://www.oracle.com/technology/products/integration/esb/files/stringtoxml.zip
Did any one face same error with it?
Regards,
Vigni

Hi,
The xml string is not valid, you need to place the following part at the beginning of the string:
<?xml version="1.0" encoding="UTF-8"?>
So the first line needs to read:
String in = "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n<parameters xmlns=\"http://www.tcs.com/WSIF/insurance/IdentifyPolicy/1.0\">\n" +
You also must change the indexOf parts to >=0 instead of >0. the parseString method should be:
public static NodeList parseString1(String inputXML) throws XMLParseException,
SAXException,
IOException {
System.out.println(inputXML);
StringBuffer s4= new StringBuffer(inputXML);
int index = 0;
while(s4.indexOf("&gt;") > 0 || s4.indexOf("&lt;") >= 0){
index = s4.indexOf("&gt;");
if (index>=0)
s4.replace(index,index+4,">");
index = s4.indexOf("&lt;");
if (index >=0)
s4.replace(index,index+4,"<");
System.out.println(s4.toString());
DOMParser parser1 = new DOMParser();
ByteArrayInputStream Bis1 = new ByteArrayInputStream(s4.toString().getBytes());
parser1.parse(Bis1);
XMLDocument xd1= parser1.getDocument();
return (xd1.getChildNodes());
Regards,
Andre

Similar Messages

  • JClient query by example doesn't work in 10.1.2.

    I've a JClient application I migrated from 9.0.4 to 10.1.2.
    In the migrated app query by example doesn't work anymore in JTables.
    Could someone help ?
    Tks
    Tullio

    Frank, I got a testcase from Tullio. It's a 9.0.4 project uding JClient that is pre-ADF bindings.
    I migrated his 9.0.4 project to 9.0.5.2 first.
    In 9.0.5.2, I see already a change in behavior related to enter-query mode in the JTable, but the number of rows displayed looks correct.
    Tullio, can you confirm if the problem you are seeing vis a vis enter query mode is that if you:
    1. Click enter-query button
    2. Click into a field like Ename and type SMITH but don't [Tab] out of that field yet
    3. Click on the execute-query button
    It behaves as if you've entered no criteria there.
    If at step 2 above you clicked [Tab] to exit the field where you typed SMITH, then it works correctly.
    Is this the enter-query-JTable-related problem you're seeing (that is, related to when you don't focus-out of the field?)
    The "number-of-rows-displayed" issue you mention in this other thread (10.1.2 JClient binding Error. does reproduce with your testcase only in 10.1.2 (as well as also still having this 9.0.5.2 focus-related issue in enter query mode).

  • I configure the JServ , but Oracle HTTP Server doesn't work agian

    my Oracle HTTP Server doesn't work after i've configured the JServ by Oracle Enterprise Manager.
    when i run flowing command :
    D:\oraias\dcm\bin>dcmctl getstate -v
    and Error message : "ADMN-100999 Base Exception:
    java.lang.ClassCastException:java.lang.Boolean" has shown.
    and i navigate Enterprise Manager web site these Error Message showing:
    "Your browser or operating system is not a supported client configuration for this version of Enterprise Manager. Using Enterprise Manager with your current client configuration may result in incorrect display of data or incorrect updates to configuration settings. See the release notes for information on supported client configurations. Root Cause: java.lang.Boolean. java.lang.Boolean"
    how can i do? please help me.
    THX

    The key message -
    mod_plsql: /pls/htmldb/htmldb_login HTTP-503 ORA-12541
    Looking up that error gives -
    [jes@spdb1 ~]$ oerr ora 12541
    12541, 00000, "TNS:no listener"
    // *Cause: The connection request could not be completed because the listener
    // is not running.
    // *Action: Ensure that the supplied destination address matches one of
    // the addresses used by the listener - compare the TNSNAMES.ORA entry with
    // the appropriate LISTENER.ORA file (or TNSNAV.ORA if the connection is to
    // go by way of an Interchange). Start the listener on the remote machine.So it looks like the listener isn't running for your database to me (i.e. "lsnrctl start")

  • Rich Textbox example doesn't work in Windows 7

    In the past I use the Rich Textbox example (\samples\userint\activex\richTextxbox.prj) in Windows XP (CVI 2010 SP1).
    Now I noticed that this example doesn't work in Windows 7 64-bit because the ActiveX is not registered on the system (see attached error.jpg).
    Isn't this control installed by CVI IDE itself?
    How can I get this example working on my Win 7 64-bit machine?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded
    Solved!
    Go to Solution.
    Attachments:
    error.JPG ‏29 KB

    Hi Vix
    It looks like the Rich Textbox control component provided by one of the VB runtimes is no longer included by default with Windows 7.
    I have been able to manually register the ActiveX control using Regsvr32 as described in the following Microsoft KB.
    I was able to download the needed ActiveX control from here and from there you need to copy the .ocx ActiveX control to your C:\Windows\SysWOW64 directory. Open up a command prompt as administrator and run 'REGSVR32 RICHTX32.OCX'.
    SysWOW64 is the 'Windows On Windows' emulation directory which is used for running 32 bit controls in a 64 bit environment.
    I realise this isn't the best solution as it will make application deployment a little more complicated, another solution may be to use another RTF ActiveX control such as the one here: http://www.lebans.com/richtext.htm.
    Thanks
    Chris | Applications Engineer NIUK

  • Oracle client 9i doesn't work for windows ordinary user

    Hello All,
    I've installed oracle 9i client on windows xp. Client software works for user belonging to windows administrators group. it doesn't works for ordinary users not belonging to administrators group. Particularly when i run sqlplus from command line i get following error :
    Incorrect environment variable PLUS_DFLT
    Program execution error.
    i also need access to Oracle ODBC driver.
    When i try to configure ODBC source (created by user with administrator privileges) by common user i get following errors :
    The setup routines for Oracle for Oracle in OraHome9i ODBC driver couldn't be loaded due to system error code 5
    Could not load the setup or translator library
    Very appreciate for any help.
    Regards Arkadiusz Masny

    It sounds like the users on the machine do not have access to the Oracle home directory. Check the permissions of the folder by right properties, select the user and check that they have read and then select advanced. Tick the "replace permission entries....." box and apply. This will re apply all user rights in all folders and subfolders. Try again.
    HTH Mark F

  • Why this example doesn't work ?

    for example below:
    html code:
    <applet code=LunarPhasesRB.class width="200" height="200">
        </applet>when i run it on IE , i get below result:
    failed to loading java program.
    why it doesn't work on IE ?
    who can help me ?
    thanks !

    thanks a lot!
    left of web browser appear below info:
    small application program LunarPhasesRB notinited
    what does it mean ?
    if i click "Click to activate and use this control".
    another err:
    failed to loading java program.
    who can help me ?

  • How can i configure maps voices? I have the original configuration (standard) and doesn't work

    Hi
    I have an Iphone 5 and doesn't work the voices for navegation (maps app)
    Is there any special configuration requiered
    This feature is very important due i could drive without looking at the phone
    Thanks in advance for your support

    Thanks!!
    Yes, I'm in Chile....sad to hear that this feature is not available everywhere... Those voices should just follow the indications given by maps because maps gives the info about turn left or right so there should be just voices recorded with those standard indications, then this feature would be available everywhere
    But OK...
    Anyways, Thanks for your answer!!!

  • Release build and standard packaging doesn't work for iOS mobile project.

    Hi,
    We are trying to port our web application on iOS(iPad). Made some minor changes and package ipa with fast packaging method. It works great.
    Now we are try to package application for AppStore and use Standard method. But error occurs.
         Error occurred while packaging the application:
         Exception in thread "main" java.lang.Error: Unable to find named traits: spark.components::Application
             at adobe.abc.Domain.resolveTypeName(Domain.java:225)
             at adobe.abc.Domain.resolveTypeName(Domain.java:142)
             at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:272)
             at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:994)
             at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:390)
    Distribution certificate and provisioning profile are used for compilation.
    Restarting FB and OS doesn't help. Packaging via command line also throws same error.
    Exporting Release build shows other error. After opening Export Release build window and click next error occur:
         Encountered errors or warnings while building project XXXX.mxml.
         configuration variable 'runtime-shared-library-path' requires a value 'rsl-url'.
    All the libraries are merged into code, not RSL.
    OS: Windows XP SP3, Windows 7.
    Flash Builder: 4.5.1.
    Flex SDK: 4.5.1 build 21328.
    AIR: 2.7.1(2.7 shows erros also).
    Thanks in advance for your answers.

    Hi,
    Please send your swf and app-xml to [email protected] so that we can try it at our end.
    Thanks,
    Amish.

  • HTML Standard/Minimal doesn't work in Safari browser

    Here's an issue that has been bugging me for quite some time, it's more of a bug and I finally decided to post it in the forums.
    I have an Item on a page for which the Display Type is set to HTML Editor Standard, the problem is that it works fine in most editors except Safari. Not sure what the issue is, has anyone been able to get this to work in Safari?
    Another issue is with formatting, I have another report page that displays the field that's tied to the HTML editor standard form page. The report page does not show the same formatting from the HTML editor. You would think the report will at least show the same formatting that was entered via the field.

    Oscar,
    Thanks for replying. I didn't realize that Apex is certified for IE and FireFox only. Safari is one of the best browsers and I find it strange that Apex is not supported.
    Since the HTML Standard toolbox is based on FCKeditor, just for kicks I checked their site and the demo works fine on Safari, i.e. I see the toolbar and the text looks formatted just as in FireFox.
    Also I performed another test, I downloaded the latest FCKEditor 2.6.4 and uploaded the main js file to application images and associated that with a report field (displayed as textarea, with id=f01_0001) and that worked partially in Safari (i.e. the toolbar showed up, the text looked formatted). I bet if I ftp the entire FCKEditor library to the unix folder and reference it from there, it will work just fine. It seems like next version of Oracle Apex need to update their FCKEditor library as the latest version of FCK Editor is certified on all browsers.
    <!-- <script type="text/javascript" src="/i/fck/fckeditor.js"></script> -->
    <script type="text/javascript" src="#WORKSPACE_IMAGES#fckeditor.js"></script>
    <script type="text/javascript">
    <!--
    function DESC_init() {
    var oFCKeditor = new FCKeditor( 'f01_0001' ) ;
    oFCKeditor.BasePath = "/i/fck/" ;
    oFCKeditor.Width = '760';
    oFCKeditor.Height = '555';
    oFCKeditor.ToolbarSet = 'Default' ;
    oFCKeditor.Config[ "AutoDetectLanguage" ] = false;
    oFCKeditor.Config[ "DefaultLanguage" ] = "en";
    oFCKeditor.ReplaceTextarea() ;
    addLoadEvent(DESC_init);
    //-->
    </script>
    Thanks
    Sujay

  • Struts-faces library: provided struts/tiles example doesn't work?!

    Dear all,
    I�ve been trying to migrate my struts-tiles application to JavaServer Faces using the struts-faces library. I downloaded the latest nightly build, but I was unable to deploy and run the second example (the one using tiles) on Tomcat 5.0.28.
         At first, the <h:commandLink> components for the �Register� and �Login� links on the first page (loggedoff.jsp) wouldn�t work, probably because they should have been replaced by <s:commandLink>. So I fixed that, but then I get an inexplicable http 404 error: �Invalid path /layout was requested� when I click on any of the two links.
         Looking at the source code of both JSP and HTML I noticed that the JSP element <s:form action="/editRegistration"> translates to <form id="menu:_id5" name="registrationForm" action="/StrutsFacesExample/layout.do" method="post">. The action element is obviously(?) wrong: there is no layout.do action mapping anywhere, it�s the path pointing to the main layout jsp with the suffix replaced!
    I�ve been able to trace the problem down to method �action� in library class org.apache.struts.faces.renderer.FormRenderer, which does the following:
    protected String action(FacesContext context, UIComponent component) {
    String actionURL =
    context.getApplication().getViewHandler().
    getActionURL(context, context.getViewRoot().getViewId());
    if (log.isTraceEnabled()) {
    log.trace("getActionURL(" + context.getViewRoot().getViewId() +
    ") --> " + actionURL);
    return (context.getExternalContext().encodeActionURL(actionURL));
    Any ideas on what could be going wrong here? I also tried deploying the example on Tomcat 5.5.7 and JBoss 3.2.5, but the behavior was the same.
    Any comments would be greatly appreciated!
    Mario

    Did you ever find a solution to this problem? No, unfortunately I am still looking for a solution to this one.
    I� ve also reported this to Bugzilla (http://issues.apache.org/bugzilla/show_bug.cgi?id=35265) so you might want to keep an eye on the issue, in case something comes up. However there appears to be no significant activity in the library�s source code repository for almost a month.
    After reading other discussions in forums like this one, I must say that I am discouraged: I seriously doubt if anyone has successfully managed to use the struts-faces integration library. A lot of people are suggesting that integrating the two frameworks is not worth the trouble, and so I am now in the process of evaluating the cost of complete migration from struts to jsf (btw, it doesn�t look good�). Nevertheless, some recent articles demonstrate the library�s use (the most recent one is Kito Mann�s http://www.jsfcentral.com/reading/#4030 ) so I might be wrong.
    It would be nice though if someone who has managed to integrate the two technologies successfully would share his views on this forum�
    Mario

  • Adobe hosted videophone example doesn't work?

    What can be going wrong for me when others claim this is working??
    I've tried using the Adobe hosted videophone example at http://labs.adobe.com/technologies/cirrus/samples/
    It works fine for me when I have two machines on the same LAN both connecting to the service with firewalls operating.
    It does NOT work when one of the machines has a different connection to the Internet, hence diff IP address
    I checked that UDP outbound and inbound is permitted in each firewall.
    Even when I turn firewalls OFF on both machines the app only works when both machines are on the same LAN.
    We have tried this from net connections in USA and UK: in both locations, the videophone app works fine between machines on the same LAN, but fails to work when machines are on a separate Internet connection; and, it goes without saying, we can't connect the videophone app internationally.
    Now all of this is with the Adobe hosted example. We downloaded the sample code and followed the instructions in this article and set up our own working examples, both in a web-hosted Flex version and a desktop AIR version. Again, similar results: our own web and AIR versions work just fine when talking locally over a LAN, but both fail when two machines are connected to different Internet connections and this is regardless of Firewall settings.
    This is REALLY frustrating and we wonder what we can be missing?!

    Thanks for the helpful pointers, Michael. It seems that we likely are running into NAT or firewall issues.
    However, that leaves me wondering what on earth Cirrus can be useful for in the real world? I guess it is just possible that it might be useful in a large corporate campus where you can run multiple instances of an app on machines behind the same firewall; but for anything that is designed to be deployed on multiple end-user machines across the Internet it has no usefulness that I can see. In the real world, there is a huge mix of router and firewall configurations that the developer can have no control over: the P2P capabilities need to handle this without requiring end users to do nasty config work.
    Adobe seems to have dropped the ball here: on the one hand, AIR apps can be easily installed and updated with a single button click; but if the new P2P capabilities are to work it seems we have to get end users to do nasty editing of configuration files to tunnel through NAT/firewall.
    This is just not a subject that most Flex and AIR developers will have experience of so we really need some easy step-by-step instructions or better tools to enable us to make use of these capabilities in the real world!

  • Oracle JDBC OCI doesn't work on Linux

    Hi,
    I'm using Oracle on Linux(RH6, kernel 2.2.13)
    Oracle works fine.
    JDBC Thin driver -OK!
    But java receives SIGSEV when I'm using JDBC OCI. More specific, it seems to be a problem with the so library associated to this driver, cause this SIGSEV happens in a native method.
    Help?

    Have you posted this question to the JDBC/SQLJ Users group on Technet.
    This is a JSP users group.

  • Newbie: Trying to 'call' JSP from CFML (example doesn't work)

    Hi,
    I am (really) just getting started with CFML, so I got ColdFusion 8 Developer deployed onto a GlassFish 3.1.1 server.
    I put a copy of a small hello.cfm into the <GF_DOMAIN>/applications/cfusion/ directory, and when I point a browser to http://<host>:8080/cfusion/hello.cfm, I get the "Hello world".
    So next, I'm trying to 'call' a JSP from a CFML page, and I found this example:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Java_6.html
    I put a copy of the CFML at cfusion/hellojsp.cfm:
    <cfapplication name="myApp" sessionmanagement="yes">
    <cfscript>
    Request.myVariable = "This";
    Session.myVariable = "is a";
    Application.myVariable = "test.";
    GetPageContext().include("hello.jsp?name=Bobby");
    </cfscript>
    and also created a cfusion/hello.jsp per the above link:
    <%@page import="java.util.*" %>
    <h2>Hello <%= request.getParameter("name")%>!</h2>
    <br>Request.myVariable: <%= request.getAttribute("myVariable")%>
    <br>session.myVariable: <%= ((Map)(session.getAttribute("myApp"))).get("myVariable")%>
    <br>Application.myVariable: <%= ((Map)(application.getAttribute("myApp"))).get("myVariable")%>
    In other words, in the <GF_DOMAIN>/applications/cfusion directory, I have:
    hellojsp.cfm
    hello.jsp
    However, if I point the browser to either http://<host>:8080/cfusion/hellojsp.cfm or http://<host>:8080/cfusion/hello.jsp, I get a 500 error.
    In the GlassFish server.log, I get the following:
    INFO: 03/13 21:17:24 Error [http-thread-pool-8080(5)] - coldfusion.jsp.JspWriterIncludeResponse.getStatus()I The specific sequence of files included or processed is: C:\glassfish3\glassfish\domains\domain1\applications\cfusion\hellojsp.cfm, line: 6
    Mar 13, 2012 9:17:24 PM org.apache.catalina.core.StandardWrapperValve log
    WARNING: StandardWrapperValve[CfmServlet]: PWC1406: Servlet.service() for servlet CfmServlet threw exception
    javax.servlet.ServletException: ROOT CAUSE:
    java.lang.AbstractMethodError: coldfusion.jsp.JspWriterIncludeResponse.getStatus()I
              at javax.servlet.http.HttpServletResponseWrapper.getStatus(HttpServletResponseWrapper.java:2 53)
              at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:356)
              at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:112)
              at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:465)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1562)
              at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:787)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:534)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2086)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2060)
              at sun.reflect.GeneratedMethodAccessor469.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at coldfusion.runtime.StructBean.invoke(StructBean.java:511)
              at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2300)
              at cfhellojsp2ecfm1997599341.runPage(C:\glassfish3\glassfish\domains\domain1\applications\cf usion\hellojsp.cfm:6)
              at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
              at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
              at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
              at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
              at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
              at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
              at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
              at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
              at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
              at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
              at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
              at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
              at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
              at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
              at coldfusion.CfmServlet.service(CfmServlet.java:175)
              at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:343)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
    Can anyone tell me what might be causing this problem?
    Thanks,
    Jim

    Hi,
    Sigh ... I thought I had this solved, and, in fact, I do get a correct output webpage now.
    However, if I use that small .cfm, with the .forward(), whenever I access it, I get an error/stacktrace:
    Mar 14, 2012 12:44:27 AM org.apache.catalina.core.StandardWrapperValve log
    WARNING: StandardWrapperValve[CfmServlet]: PWC1406: Servlet.service() for servlet CfmServlet threw exception
    javax.servlet.ServletException: ROOT CAUSE:
    java.lang.AbstractMethodError: coldfusion.jsp.JspWriterIncludeResponse.getStatus()I
              at javax.servlet.http.HttpServletResponseWrapper.getStatus(HttpServletResponseWrapper.java:2 53)
              at com.sun.web.server.J2EEInstanceListener.handleAfterEvent(J2EEInstanceListener.java:356)
              at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:112)
              at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:465)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1580)
              at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:787)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:534)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2086)
              at coldfusion.runtime.NeoPageContext.include(NeoPageContext.java:2060)
              at sun.reflect.GeneratedMethodAccessor473.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at coldfusion.runtime.StructBean.invoke(StructBean.java:511)
              at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2300)
              at cfhellojsp2ecfm1997599341.runPage(C:\glassfish3\glassfish\domains\domain1\applications\cf usion\hellojsp.cfm:6)
              at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
              at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
              at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
              at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
              at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
              at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
              at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
              at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
              at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
              at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
              at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
              at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
              at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
              at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
              at coldfusion.CfmServlet.service(CfmServlet.java:175)
              at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:343)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
              at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70 )
              at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:256)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPi peline.java:91)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
              at java.lang.Thread.run(Thread.java:662)
    Can anyone tell me what is causing that error?
    Thanks,
    Jim
    P.S.  If I change the .forward() to a .include(), I don't get an error...

  • Simple example doesn't work when on two machines

    I have a simple RMI example that works when I run both the client piece and the server piece on one machine. However, when I seperate them to two different machines, it does not work. The client piece just sits and waits at this line:
    Calculator c = (Calculator)Naming.lookup("rmi://162.130.1.68/CalculatorService");I believe I don't need an HTTP server running on the "server" machine, but is there anything I need to setup on either machine? Do I need to start the rmi registry from a specific folder or put the server files in a specific folder? I've heard the term "network accessible" thrown arround. Do I need to make the files "network accessible?"

    The first thing I would do is what the previous poster said which refers to the term Network Accessible. The second thing I would do is remove "rmi:" in the lookup name. I've never seen that notation anywhere. The third thing I would do is make sure the rmi registry is started on the server. You can actually start it from inside the application like so: java.rmi.registry.LocateRegistry.createRegistry(java.rmi.registry.Registry.REGISTRY_PORT);
    Hope I've helped. Let me know how it works out.
    Dave

  • Images to Video (Sun Example doesn't work for me)

    Hi every one :)
    I'm trying to convert some jpg images into movie file. I saw the [Sun's example|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html] , but when I try to execute I have a DataSink error:
    Cannot create the DataSink: javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@c1f10e
    Failed to create a DataSink for the given output MediaLocator: foo.mov ¿There's another way to do it?
    P.S: Sorry for my english ;)

    darkskimmer wrote:
    The output MediaLocator, I create it with
    MediaLocator out = new MediaLocator("foo.mov");The error is creating out DataSink. No errors when creating the input stream of images...Which is why I told you specificlly...
    I believe the problem may be with how you're constructing your output MediaLocator... Check out their "main" method and see how they're converting their filenames into MediaLocators, and make sure you do that too. I can tell you, that's not how they do their output mediaLocators. They construct theirs with a "file://" prefix and a fully-rooted pathname. Check the code.
         if ((oml = createMediaLocator(outputURL)) == null) {
             System.err.println("Cannot build media locator from: " + outputURL);
             System.exit(0);
         }

Maybe you are looking for