Web App name tag capabilities and Upload response handling

Hi Guys,
Let me begin by apologising for how long-winded this is going to be. 
I have set my products up in the ecommerce module utilising catalogues etc - I have removed the buy now and cart options, so the ecommerce module is operating essentially like a showroom.  What I want to do now is link the individual large products to a web app because my product range requires personalization and the customers need to give me information and assetts to get their finished product back - the key for me is getting reports from the system, the web apps are just a portal to those reports.  So the workflow would see them submit their text and assetts to be used in the final product and pay via the web app.  With the web app that takes payment and allows them to submit their personalization stuff I was going to make one per product, so if product a) requires them to submit one block of text and 2 photos, the web app would have corresponding fields.  Then I got thinking about using content holders, the one web app for all products that need one block of text and 2 photos, if I could get the name tag to populate with the product page that sends to it, or the page name the web app form is inserted on, because this will correspond to the large product.  This way when I do the reporting instead of having to report from heaps of web apps, I could just filter the reports by the product name.  It would mean I would only need a handful of web apps vs needing quite a lot, but if it is beyond me I am happy that I have a solution, even if it is a bloated one.
The other part of this involves me needing to capture the uploaded file name in the web app form fields so I can report from them.  I have been looking around and came across the below code.  My web app will require 1-12 uploaded file names to be captured in 1-12 form fields i.e. img_1 - img_12 - I am not a coder but I wondered whether this had potential for what I need.  It comes from here http://www.openjs.com/articles/ajax/ajax_file_upload/response_data.php
Thanks in advance for taking the time to digest all of this.
Mandy
A Sample Application
For example, say you are building a photo gallery. When a user uploads an image(using the above mentioned ajax method), you want to get its name and file size from the server side. First, lets create the Javascript uploading script(for explanation on this part, see the Ajax File Upload article)...
The Code
<script type="text/javascript"> function init() { document.getElementById("file_upload_form").onsubmit=function() { document.getElementById("file_upload_form").target = "upload_target"; } } </script>  <form id="file_upload_form" method="post" enctype="multipart/form-data" action="upload.php"> <input name="file" id="file" size="27" type="file" /><br /> <input type="submit" name="action" value="Upload Image" /><br /> <iframe id="upload_target" name="upload_target" src="" style="width:100px;height:100px;border:1px solid #ccc;"></iframe> </form> <div id="image_details"></div>
And the server side(PHP in this case) script will look something like this...
<?php list($name,$result) = upload('file','image_uploads','jpg,jpeg,gif,png'); if($name) { // Upload Successful $details = stat("image_uploads/$name"); $size = $details['size'] / 1024; print json_encode(array( "success"     =>     $result, "failure"     =>     false, "file_name"     =>     $name,     // Name of the file - JS should get this value "size"          =>     $size     // Size of the file - JS should get this as well. )); } else { // Upload failed for some reason. print json_encode(array( "success"     =>     false, "failure"     =>     $result, )); }
Here we are printing the data that should be given to JS directly into the iframe. Javascript can access this data by accessing the iframe's DOM. Lets add that part to the JS code...
function init() { document.getElementById("file_upload_form").onsubmit=function() { document.getElementById("file_upload_form").target = "upload_target"; document.getElementById("upload_target").onload = uploadDone; //This function should be called when the iframe has compleated loading // That will happen when the file is completely uploaded and the server has returned the data we need. } }  function uploadDone() { //Function will be called when iframe is loaded var ret = frames['upload_target'].document.getElementsByTagName("body")[0].innerHTML; var data = eval("("+ret+")"); //Parse JSON // Read the below explanations before passing judgment on me  if(data.success) { //This part happens when the image gets uploaded. document.getElementById("image_details").innerHTML = "<img src='image_uploads/" + data.file_name + "' /><br />Size: " + data.size + " KB"; } else if(data.failure) { //Upload failed - show user the reason. alert("Upload Failed: " + data.failure); } }
Explanation
Lets see whats happening here - a play by play commentary...
document.getElementById("upload_target").onload = uploadDone;
Set an event handler that will be called when the iframe has compleated loading. That will happen when the file is completely uploaded and the server has returned the data we need. Now lets see the function uploadDone().
var ret = frames['upload_target'].document.getElementsByTagName("body")[0].innerHTML; var data = eval("("+ret+")");
These two lines are an eyesore. No - it goes beyond 'eyesore' - this is an abomination. If these lines causes you to gouge out your eyes and run for the hills, I can understand completely. I had to wash my hands after writing those lines. Twice.
var ret = frames['upload_target'].document.getElementsByTagName("body")[0].innerHTML;
This will get the data the server side script put in the iframe. This line cannot be avoided as far as I know. You can write it in different ways - but in the end, you will have to take the innerHTML or the nodeValue or something of the body element of the iframe. I used the smallest code in the sample. Even if you specify the Content type of the iframe page as text/plain, the browser will 'domify' it.
One other thing - in frames['upload_target'] the 'upload_target' is the name of the iframe - not the ID. Its a gotcha you need to be aware of.
var data = eval("("+ret+")");
Thankfully, this line can be avoided - you can use some other format(in this particular case the best format might be plain HTML) so that you don't have to parse a string that comes out of innerHTML. Or you can use CSV. Or plain text. Or JSON as we are doing right now - just parse it without using eval(). Reason I choose it? Smallest code - and easier to understand.
Now we have a working system. The files are uploaded and data reaches the client side. Everything works perfectly. Oh, how I wish I could say that. But nooo - the nightmare of every javascript developer rears its ugly head again...
Internet Explorer
Internet Explorer, also known as IE, also known as the Beast, again manages to mess things up. They don't support the onload event for iframe. So the code...
document.getElementById("upload_target").onload = uploadDone;
will not work. WILL. NOT. WORK. Thanks IE, thanks very much.
So, what do we do? We use a small hack. We put a script tag inside the iframe with a onload event that calls the uploadDone() of the top frame. So now the server side script looks like this...
<html> <head> <script type="text/javascript"> function init() { if(top.uploadDone) top.uploadDone(); //top means parent frame. } window.onload=init; </script> <body> <?php list($name,$result) = upload('file','image_uploads','jpg,jpeg,gif,png'); if($name) { // Upload Successful // Put the PHP content from the last code sample here here } ?> </body> </html>
Okay - now we have a IE-proof working system. Upload an image using the below demo application to see it in action.
If you have a better way of doing this, please, PLEASE let me know. I feel dirty doing it this way.
See it in Action

You also need to consider when someone removes a product and what happens in terms of the things uploaded.
Not saying your way wont work but I have the structure for this basically very similar on sites already that covers all the basis of real world use and works well.
Mine is future proof anyway. BC will never ( I have it in writing) replace the code because it will break implementations and sites directly. jquery version is on the cards but the way that will be implemented or any change will either be with notice and on new sites not old or like many features an option in the admin to change it.

Similar Messages

  • Can I cluster a web app that uses Spring and iBATIS?

    I have a web app that uses Spring and iBATIS. It runs great on a single server. I am now trying to get it to run in a cluster. I went through the code and made all the classes serializable. Also, I added the distributable tag to the web.xml. I then deployed it to two clustered app servers.
    When I logon and use the web app, everything goes well. Then, as a test, I determine which app server is being used and stop the web app on it. As I try to continue my session, the following exceptions are generated from the other node:
    java.lang.IllegalArgumentException: No SqlMapClient specified.
    The exception is being thrown from the Spring code. Is there something else I need to do to get Spring and iBatis to work in a clustered environment.
    Also, I see a lot of references to Terracotta as a clustering solution. Will Terracotta work with Oracle App Server?

    Thanks for the response.
    I think my session information is being shared. I've configured the default application in my OC4J configured for peer-to-peer clustering. Before I did this, if I shut down the instance I was using, it would fail-over to the other application server but my session would be gone and I would be forced to logon again. But once I was logged on, everything ran smoothly.

  • I'm migrating a WP site to BC. I want to use a web app for their Blog...is there any way to have the web app item show in the root url vs root-url/web-app-name/web-app-item-name?

    I'm migrating a WP site to BC. I want to use a web app for their Blog...is there any way to have the web app item show in the root url vs root-url/web-app-name/web-app-item-name?

    Hi Justin,
    There's nothing like that atm. Please see http://forums.adobe.com/message/4730854
    Cheers,
    -mario

  • Unable to swap web app (FKA Website) deployments and cannot update configuration

    We are trying to deploy an update to one of our web apps (Hosted in Northern Europe.). Our process is to deploy to a "staging" deployment slot, then swap.
    When we try to do this we get the following error:
    Failed to swap web app slot production with slot staging: There was a concurrency conflict. Configuration update for Microsoft.Web.Hosting.Administration.WebCloudProvider failed for maximum number of attempts UpdateAppSettings. Failure details: <redacted
    as it contained deployment details>
    We also cannot apply configuration changes.
    Are there currently any issues, nothing is showing on the Azure status page?

    The issue Jim ran into was actually a temporary problem affecting a small subset of sites, and at that time it would have failed with any swap method. But the situation was resolved about an hour later, and everything should be fine now. Sorry for not
    following up earlier!

  • Office Web Apps Server 2013 patching and reported build numbers

    Sorry ahead of time for asking this on a Sharepoint forum, but I can't find OWAS forums anywhere.
    When applying patches to Office Web Apps Server the build version as reported by Control Panel | Program and Features does not change.  RTM build number is 15.0.4420.1017.  KB2760445 moves version to 15.0.4481.1005.  You can install it but
    the version/build number as reported by control panel will not change.  I can't find information on build versions on MS website.  I am using Roger Haueter blog
    here to help me with that.  I tries manually downloading updates and applying them as well as relying on WSUS and MS Update.  Results are the same.  You can see the updates under "installed updates". 
    Please, share you knowledge.

    This is normal. See these sites for how to identify the build number of the farm:
    http://www.wictorwilen.se/office-web-apps-server-which-version-is-installed
    http://blogs.technet.com/b/sammykailini/archive/2013/09/20/how-to-find-the-version-or-build-number-for-an-office-web-apps-2013-farm.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Re:Creating new web app in Endeca tools and frame work for CRS(commerce refernce store) application that we deployed either as a part of cim.bat or manually through deployment scripts

    when i am trying to access my web app that was created using eclipse fro Endeca app CRS
    using  localhost:8080/crs/browse?format=json
    i am getting the below error
    [ERROR] com.endeca.infront.logger.SLF4JAssemblerEventLogger: cartridge error:
    com.endeca.infront.assembler.CartridgeHandlerException: com.endeca.infront.navigation.NavigationException: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.infront.cartridge.NavigationCartridgeHandler.executeMdexRequest(NavigationCartridgeHandler.java:297)
      at com.endeca.infront.cartridge.BreadcrumbsHandler.process(BreadcrumbsHandler.java:87)
      at com.endeca.infront.cartridge.BreadcrumbsHandler.process(BreadcrumbsHandler.java:62)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.visit(AbstractAssembler.java:246)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:99)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseList(ContentItemVisitor.java:141)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:130)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseList(ContentItemVisitor.java:141)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:130)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:126)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor.process(AbstractAssembler.java:162)
      at com.endeca.infront.assembler.support.AbstractAssembler.assemble(AbstractAssembler.java:93)
      at org.apache.jsp.WEB_002dINF.services.myAssemble_jsp._jspService(myAssemble_jsp.java:171)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.endeca.infront.assembler.perf.PerfEventFilter.doFilter(PerfEventFilter.java:84)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
    Caused by: com.endeca.infront.navigation.NavigationException: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.infront.navigation.request.support.NavigationRequest.executeQuery(NavigationRequest.java:299)
      at com.endeca.infront.navigation.request.MdexRequest.execute(MdexRequest.java:60)
      at com.endeca.infront.cartridge.NavigationCartridgeHandler.executeMdexRequest(NavigationCartridgeHandler.java:288)
      ... 55 more
    Caused by: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.navigation.OptiBackendRequest.getContent(Unknown Source)
      at com.endeca.navigation.OptiBackend.getNavigation(Unknown Source)
      at com.endeca.navigation.HttpENEConnection.query(Unknown Source)
      at com.endeca.infront.navigation.request.support.NavigationRequest.executeQuery(NavigationRequest.java:289)
      ... 57 more
    2013-10-16 14:00:14,297 [ERROR] com.endeca.infront.logger.SLF4JAssemblerEventLogger: cartridge error:
    com.endeca.infront.assembler.CartridgeHandlerException: com.endeca.infront.navigation.NavigationException: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.infront.cartridge.NavigationCartridgeHandler.executeMdexRequest(NavigationCartridgeHandler.java:297)
      at com.endeca.infront.cartridge.BreadcrumbsHandler.process(BreadcrumbsHandler.java:87)
      at com.endeca.infront.cartridge.BreadcrumbsHandler.process(BreadcrumbsHandler.java:62)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.visit(AbstractAssembler.java:246)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:99)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseList(ContentItemVisitor.java:141)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:130)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseList(ContentItemVisitor.java:141)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:130)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:126)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor.process(AbstractAssembler.java:162)
      at com.endeca.infront.assembler.support.AbstractAssembler.assemble(AbstractAssembler.java:93)
      at org.apache.jsp.WEB_002dINF.services.myAssemble_jsp._jspService(myAssemble_jsp.java:171)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.endeca.infront.assembler.perf.PerfEventFilter.doFilter(PerfEventFilter.java:84)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
    Caused by: com.endeca.infront.navigation.NavigationException: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.infront.navigation.request.support.NavigationRequest.executeQuery(NavigationRequest.java:299)
      at com.endeca.infront.navigation.request.MdexRequest.execute(MdexRequest.java:60)
      at com.endeca.infront.cartridge.NavigationCartridgeHandler.executeMdexRequest(NavigationCartridgeHandler.java:288)
      ... 55 more
    Caused by: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.navigation.OptiBackendRequest.getContent(Unknown Source)
      at com.endeca.navigation.OptiBackend.getNavigation(Unknown Source)
      at com.endeca.navigation.HttpENEConnection.query(Unknown Source)
      at com.endeca.infront.navigation.request.support.NavigationRequest.executeQuery(NavigationRequest.java:289)
      ... 57 more
    Oct 16, 2013 2:00:34 PM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet link threw exception
    javax.servlet.ServletException: Expect a parameter of name '__jsonp' specifying the json callback function.
      at com.endeca.infront.assembler.servlet.AbstractPreviewLinkServlet.doGet(AbstractPreviewLinkServlet.java:120)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.endeca.infront.assembler.perf.PerfEventFilter.doFilter(PerfEventFilter.java:84)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
    Oct 16, 2013 2:00:34 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet default threw exception
    javax.servlet.ServletException: Expect a parameter of name '__jsonp' specifying the json callback function.
      at com.endeca.infront.assembler.servlet.AbstractPreviewLinkServlet.doGet(AbstractPreviewLinkServlet.java:120)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.endeca.infront.assembler.perf.PerfEventFilter.doFilter(PerfEventFilter.java:84)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
    2013-10-16 14:01:15,140 [ERROR] com.endeca.infront.logger.SLF4JAssemblerEventLogger: cartridge error:
    com.endeca.infront.assembler.CartridgeHandlerException: com.endeca.infront.navigation.NavigationException: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.infront.cartridge.NavigationCartridgeHandler.executeMdexRequest(NavigationCartridgeHandler.java:297)
      at com.endeca.infront.cartridge.BreadcrumbsHandler.process(BreadcrumbsHandler.java:87)
      at com.endeca.infront.cartridge.BreadcrumbsHandler.process(BreadcrumbsHandler.java:62)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.visit(AbstractAssembler.java:246)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:99)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseList(ContentItemVisitor.java:141)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:130)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseList(ContentItemVisitor.java:141)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:130)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverseChildren(ContentItemVisitor.java:126)
      at com.endeca.infront.assembler.support.ContentItemVisitor.traverse(ContentItemVisitor.java:94)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor$ProcessPass.traverse(AbstractAssembler.java:228)
      at com.endeca.infront.assembler.support.AbstractAssembler$Processor.process(AbstractAssembler.java:162)
      at com.endeca.infront.assembler.support.AbstractAssembler.assemble(AbstractAssembler.java:93)
      at org.apache.jsp.WEB_002dINF.services.myAssemble_jsp._jspService(myAssemble_jsp.java:171)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.endeca.infront.assembler.perf.PerfEventFilter.doFilter(PerfEventFilter.java:84)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
    Caused by: com.endeca.infront.navigation.NavigationException: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.infront.navigation.request.support.NavigationRequest.executeQuery(NavigationRequest.java:299)
      at com.endeca.infront.navigation.request.MdexRequest.execute(MdexRequest.java:60)
      at com.endeca.infront.cartridge.NavigationCartridgeHandler.executeMdexRequest(NavigationCartridgeHandler.java:288)
      ... 55 more
    Caused by: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://phani:15000/graph?node=0&groupby=product.code&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&irversion=640'.
      at com.endeca.navigation.OptiBackendRequest.getContent(Unknown Source)
      at com.endeca.navigation.OptiBackend.getNavigation(Unknown Source)
      at com.endeca.navigation.HttpENEConnection.query(Unknown Source)
      at com.endeca.infront.navigation.request.support.NavigationRequest.executeQuery(NavigationRequest.java:289)
      ... 57 more
    assembler.properties file has the following my mdex is running on port 15000 fro CRS app
    workbench.app.name=CRS
    workbench.host=localhost
    workbench.port=8006
    workbench.publishing.serverPort=8007
    #If client port is set to -1, system will assign an ephemeral port automatically
    workbench.publishing.clientPort=-1
    # AUTHORING MODE SETTINGS
    #   preview.enabled=true
    #   user.state.ref=previewUserState
    #   media.sources.ref=authoringMediaSources
    # LIVE MODE SETTINGS
    #   preview.enabled=false
    #   user.state.ref=liveUserState
    #   media.sources.ref=liveMediaSources
    preview.enabled=true
    user.state.ref=previewUserState
    media.sources.ref=authoringMediaSources
    mdex.host=localhost
    mdex.port=15000
    logserver.host=localhost
    logserver.port=15010
    please help me in resolving the below error

    On Step 8 I found multiple product codes for the Conferencing Add-In for Outlook.  Here's a list of the ones I found in the machines on my network:
    {987CAEDE-EB67-4D5A-B0C0-AE0640A17B5F}
    {2BB9B2F5-79E7-4220-B903-22E849100547}
    {13BEAC7C-69C1-4A9E-89A3-D5F311DE2B69}
    {C5586971-E3A9-432A-93B7-D1D0EF076764}
    I'm sure there's others one, just be mindful that this add-in will have numerous product codes.

  • Testing web apps in Safari 3 and 4

    How does Apple expect web application developers to test their web apps in both Safari 3 and 4? Or are we just to forget that Safari 3 exists anymore?
    Do I need to have two macs for this? Seems excessive.

    You could make a bootable clone with Safari 3 using Carbon Copy Cloner or SuperDuper. Then install Safari 4 on your internal drive.

  • Module web app list tags - how to start a list to not include the first one?

    Hi
    I have two panels displaying a web app list and want them to follow on from each other, so panel one displays the first one {module_webapps,24027,l,,,,false,1,false,1} and then the second panel displays the 2nd and 3rd.
    How would I go about it?
    Thanks
    J-P

    Hello
    Hope the below helps
    http://prasantabarik.wordpress.com/2013/09/26/pass-querystring-value-from-sharepoint-page-to-app-partclient-web-part/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Lync Web App will not load and does not error out

    Hi,
    Recently I've been receiving invites to Lync 15 meetings. I am able to join the meetings and things work fine until somebody shares their desktop or a presentation. Then I get a message saying Windows firewall has blocked an app and asks if I want
    to allow the Lync Web App to run. I click OK and it appears to begin loading. The app doesn't load, I can still hear audio on the meeting but all the rest of the Lync app freezes except for the spinning circle wheel telling me it is loading.
    When I look in Task Manager, I can see the Lync Web App running with a steady stream of I/O. But the entire Lync meeting will not render. If I kill the Lync Web App from Task Manager, then the Lync meeting immediately works.
    System: Win 7 pro 64, IE 9, AMD Athalon dual core chip, 4 GB RAM, tons of disk space, DSL 700K connection
    Any ideas?
    Thanks,
    JAS.
    JAS

    Hi There,
    Thanks a lot for reporting this issue. And I am sorry that you are hitting this issue while attending Lync meetings. Following details will help us diagnose it further -
    1) Do you have Lync 2010 or Lync 2013 client installed on the machine?
    2) Do you get this issue again and again when you join the meeting or it was one-off?
    3) When you killed "Lync Web App" from task manager, was audio flowing through even after that? Were you still attending the meeting from the browser?
    4) How much time did you wait when UI was showing "Loading" until you killed the Lync Web App from task manager?
    Thanks.
    ManuMSFT
    manums

  • HT201272 I had purchased the SnoreMonitor Pro in the past and now the have changed their app name to SnoreMonitorSleepLab and when I try to redownload it, it's asking me to pay again

    I had purchased this app in the past and now when I try to redownload this app again it turns out they changed their name and so now itunes is asking me to pay again for downloading the app again.

    Have you tried booting from the Recovery HD to reinstall Lion?
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    You will need the Apple ID and password used to purchase Lion. If you have not purchased Lion, then you will need to purchase the Snow Leopard DVD and install Snow Leopard then update it to 10.6.8 to access the App Store where you can purchase and download Lion under your own Apple ID. Or you can purchase the Apple USB Lion installer flash drive at any local Apple retailer or the Online Store.

  • Capture Web Cam image in APEX and Upload into the Database

    Overview
    By using a flash object, you should be able to interface with a usb web cam connected to the client machine. Their are a couple of open source ones that I know about, but the one I chose to go with is by Taboca Labs and is called CamCanvas. This is released under the MIT license, and it is at version 0.2, so not very mature - but in saying that it seems to do the trick. The next part is to upload a snapshot into the database - in this particular implementation, it is achieved by taking a snapshot, and putting that data into the canvas object. This is a new HTML5 element, so I am not certain what the IE support would be like. Once you have the image into the canvas, you can then use the provided function convertToDataURL() to convert the image into a Base64 encoded string, which you can then use to convert into to a BLOB. There is however one problem with the Base64 string - APEX has a limitation of 32k for and item value, so can't be submitted by normal means, and a workaround (AJAX) has to be implemented.
    Part 1. Capturing the Image from the Flash Object into the Canvas element
    Set up the Page
    Required Files
    Download the tarball of the webcam library from: https://github.com/taboca/CamCanvas-API-/tarball/master
    Upload the necessary components to your application. (The flash swf file can be got from one of the samples in the Samples folder. In the root of the tarball, there is actually a swf file, but this seems to be a different file than of what is in the samples - so I just stick with the one from the samples)
    Page Body
    Create a HTML region, and add the following:
        <div class="container">
           <object  id="iembedflash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240">
                <param name="movie" value="#APP_IMAGES#camcanvas.swf" />
                <param name="quality" value="high" />
              <param name="allowScriptAccess" value="always" />
                <embed  allowScriptAccess="always"  id="embedflash" src="#APP_IMAGES#camcanvas.swf" quality="high" width="320" height="240"
    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" mayscript="true"  />
        </object>
        </div>
    <p><a href="javascript:captureToCanvas()">Capture</a></p>
    <canvas style="border:1px solid yellow"  id="canvas" width="320" height="240"></canvas>That will create the webcam container, and an empty canvas element for the captured image to go into.
    Also, have a hidden unprotected page item to store the Base64 code into - I called mine P2_IMAGE_BASE64
    HTML Header and Body Attribute
    Add the Page HTML Body Attribute as:
    onload="init(320,240)"
    JavaScript
    Add the following in the Function and Global Variable Declarations for the page (mostly taken out of the samples provided)
    //Camera relations functions
    var gCtx = null;
    var gCanvas = null;
    var imageData = null;
    var ii=0;
    var jj=0;
    var c=0;
    function init(ww,hh){
         gCanvas = document.getElementById("canvas");
         var w = ww;
         var h = hh;
         gCanvas.style.width = w + "px";
         gCanvas.style.height = h + "px";
         gCanvas.width = w;
         gCanvas.height = h;
         gCtx = gCanvas.getContext("2d");
         gCtx.clearRect(0, 0, w, h);
         imageData = gCtx.getImageData( 0,0,320,240);
    function passLine(stringPixels) {
         //a = (intVal >> 24) & 0xff;
         var coll = stringPixels.split("-");
         for(var i=0;i<320;i++) {
              var intVal = parseInt(coll);
              r = (intVal >> 16) & 0xff;
              g = (intVal >> 8) & 0xff;
              b = (intVal ) & 0xff;
              imageData.data[c+0]=r;
              imageData.data[c+1]=g;
              imageData.data[c+2]=b;
              imageData.data[c+3]=255;
              c+=4;
         if(c>=320*240*4) {
              c=0;
              gCtx.putImageData(imageData, 0,0);
    function captureToCanvas() {
         flash = document.getElementById("embedflash");
         flash.ccCapture();
         var canvEle = document.getElementById('canvas');
         $s('P2_IMAGE_BASE64', canvEle.toDataURL());//Assumes hidden item name is P2_IMAGE_BASE64
         clob_Submit();//this is a part of part (AJAX submit value to a collection) two
    }In the footer region of the page (which is just a loading image to show whilst the data is being submitted to the collection [hidden by default]) :<img src="#IMAGE_PREFIX#processing3.gif" id="AjaxLoading"
    style="display:none;position:absolute;left:45%;top:45%;padding:10px;border:2px solid black;background:#FFF;" />If you give it a quick test, you should be able to see the webcam feed and capture it into the canvas element by clicking the capture link, in between the two elements - it might through a JS error since the clob_Submit() function does not exist yet.
    *Part 2. Upload the image into the Database*
    As mentioned in the overview, the main limitation is that APEX can't submit values larger than 32k, which I hope the APEX development team will be fixing this limitation in a future release, the workaround isn't really good from a maintainability perspective.
    In the sample applications, there is one that demonstrates saving values to the database that are over 32k, which uses an AJAX technique: see http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html#LARGE.
    *Required Files*
    From the sample application, there is a script you need to upload, and reference in your page. So you can either install the sample application I linked to, or grab the script from the demonstration I have provided - its called apex_save_large.js.
    *Create a New Page*
    Create a page to Post the large value to (I created mine as 1000), and create the following process, with the condition that Request = SAVE. (All this is in the sample application for saving large values).declare
         l_code clob := empty_clob;
    begin
         dbms_lob.createtemporary( l_code, false, dbms_lob.SESSION );
         for i in 1..wwv_flow.g_f01.count loop
              dbms_lob.writeappend(l_code,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));
         end loop;
         apex_collection.create_or_truncate_collection(p_collection_name => wc_pkg_globals.g_base64_collection);
         apex_collection.add_member(p_collection_name => wc_pkg_globals.g_base64_collection,p_clob001 => l_code);
         htmldb_application.g_unrecoverable_error := TRUE;
    end;I also created a package for storing the collection name, which is referred to in the process, for the collection name:create or replace
    package
    wc_pkg_globals
    as
    g_base64_collection constant varchar2(40) := 'BASE64_IMAGE';
    end wc_pkg_globals;That is all that needs to be done for page 1000. You don't use this for anything else, *so go back to edit the camera page*.
    *Modify the Function and Global Variable Declarations* (to be able to submit large values.)
    The below again assumes the item that you want to submit has an item name of 'P2_IMAGE_BASE64', the condition of the process on the POST page is request = SAVE, and the post page is page 1000. This has been taken srtaight from the sample application for saving large values.//32K Limit workaround functions
    function clob_Submit(){
              $x_Show('AjaxLoading')
              $a_PostClob('P2_IMAGE_BASE64','SAVE','1000',clob_SubmitReturn);
    function clob_SubmitReturn(){
              if(p.readyState == 4){
                             $x_Hide('AjaxLoading');
                             $x('P2_IMAGE_BASE64').value = '';
              }else{return false;}
    function doSubmit(r){
    $x('P2_IMAGE_BASE64').value = ''
         flowSelectAll();
         document.wwv_flow.p_request.value = r;
         document.wwv_flow.submit();
    }Also, reference the script that the above code makes use of, in the page header<script type="text/javascript" src="#WORKSPACE_IMAGES#apex_save_large.js"></script>Assuming the script is located in workspace images, and not associated to a specific app. Other wise reference #APP_IMAGES#
    *Set up the table to store the images*CREATE TABLE "WC_SNAPSHOT"
    "WC_SNAPSHOT_ID" NUMBER NOT NULL ENABLE,
    "BINARY" BLOB,
    CONSTRAINT "WC_SNAPSHOT_PK" PRIMARY KEY ("WC_SNAPSHOT_ID")
    create sequence seq_wc_snapshot start with 1 increment by 1;
    CREATE OR REPLACE TRIGGER "BI_WC_SNAPSHOT" BEFORE
    INSERT ON WC_SNAPSHOT FOR EACH ROW BEGIN
    SELECT seq_wc_snapshot.nextval INTO :NEW.wc_snapshot_id FROM dual;
    END;
    Then finally, create a page process to save the image:declare
    v_image_input CLOB;
    v_image_output BLOB;
    v_buffer NUMBER := 64;
    v_start_index NUMBER := 1;
    v_raw_temp raw(64);
    begin
    --discard the bit of the string we dont need
    select substr(clob001, instr(clob001, ',')+1, length(clob001)) into v_image_input
    from apex_collections
    where collection_name = wc_pkg_globals.g_base64_collection;
    dbms_lob.createtemporary(v_image_output, true);
    for i in 1..ceil(dbms_lob.getlength(v_image_input)/v_buffer) loop
    v_raw_temp := utl_encode.base64_decode(utl_raw.cast_to_raw(dbms_lob.substr(v_image_input, v_buffer, v_start_index)));
    dbms_lob.writeappend(v_image_output, utl_raw.length(v_raw_temp),v_raw_temp);
    v_start_index := v_start_index + v_buffer;
    end loop;
    insert into WC_SNAPSHOT (binary) values (v_image_output); commit;
    end;Create a save button - add some sort of validation to make sure the hidden item has a value (i.e. image has been captured). Make the above conditional for request = button name so it only runs when you click Save (you probably want to disable this button until the data has been completely submitted to the collection - I haven't done this in the demonstration).
    Voila, you should have now be able to capture the image from a webcam. Take a look at the samples from the CamCanvas API for extra effects if you wanted to do something special.
    And of course, all the above assumed you want a resolution of 320 x 240 for the image.
    Disclaimer: At time of writing, this worked with a logitech something or rather webcam, and is completely untested on IE.
    Check out a demo: http://apex.oracle.com/pls/apex/f?p=trents_demos:webcam_i (my image is a bit blocky, but i think its just my webcam. I've seen others that are much more crisp using this) Also, just be sure to wait for the progress bar to dissappear before clicking Save.
    Feedback welcomed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hmm, maybe for some reason you aren't getting the base64 version of the saved image? Is the collection getting the full base64 string? Seems like its not getting any if its no data found.
    The javascript console is your friend.
    Also, in the example i used an extra page, from what one of the examples on apex packages apps had. But since then, I found this post by Carl: http://carlback.blogspot.com/2008/04/new-stuff-4-over-head-with-clob.html - I would use this technique for submitting the clob, over what I have done - as its less hacky. Just sayin.

  • Mavericks won't install, the button in App Store is blank and non-responsive.

    This is extremely frustrating, and I have read every website trying to answer this issue. None of their problems match mine.
    I tried to download Mavericks yesterday. It appeared to download as normal, with the icon in launch pad, but the progress bar never moved. I cancelled the download, and tried to restart it. The download button is non-responsive. I've tried going to the store tab, clicking unfinished downloads, and it says all downloads are complete.
    When I go to purchases, Mavericks is listed under "other downloads," but the button is solid black with no text, e.g. download or install, and is non-responsive. Clicking the button does nothing.
    I have tried using CCleaner to clean the app store's cache, restarting the computer with a full shutdown, quitting and restarting App Store, etc. Nothing works.
    If I close and reopen App Store after a full shut down, Mavericks will disappear from the purchases menu. If I go to Mavericks, click "free upgrade," then button changes to "install." When I click install, nothing happens. Mavericks reappears under the purchases menu with its button, again, completely black with no text. The button is non-responsive.
    Having a $2,500 Mac, I have to say that I am extraordinarily upset with the shoddy work of Apple over the past few years. For $2,500 I expect the product to work.

    Actually, it appears to have started downloading, even the the purchases tab still doesn't reflect it.
    Try what I did, typing "sudo nvram boot-args="-x"" (include the quotations around the -x), and then entering your account password.
    Reboot the system, which will cause it to do a full reboot (you'll find your mac operates very slowly). Log into your account, then try hitting "free upgrade" and "download" from the Mavericks page in app store (not the purchases tab). It will ask you for your Apple ID and password, then it *should* automatically take you to launch pad.
    If the download doesn't seem to be progressing, press the icon in launch pad to pause it. Exit launch pad and scroll down in App Store to 'free apps" on the right side. Click to download one of them, enter your password and Apple ID as usual, and see if it downloads. Once finished, hit the Mavericks icon again to unpause it. It should start then. It's clearly a very large install, so over the past thirty minuites the progress bar has moved roughly a milimeter.

  • Trying to turn on location services for running app, but all app names greyed out and won't change?

    Hi all
    Would really appreciate a hand. I'm wanting to track my running using an app which uses GPS to follow my route. The app told me I needed to turn on location services for that app through settings > general > location settings. I can see the names of all the apps there (some set to on, some set to off) going through the privacy menu but everything is greyed out. How do I turn it on?
    Thanks in advance

    yep, unfortunately can't reset without the passcode either.
    With regards to doing a restore, do you mean:
    open itunes on my computer
    click on my device on the left
    go to the device summary
    click restore
    it then asks if i want to back up before i restore (to which i say no)
    then it asks me if i'm sure I want to restore to factory settings and that all of me media and data will be erased and replaced with the newest version ( to which I say yes)
    then it takes about 90 mins to do this but when I look at my phone, everything is exactly the same.
    Am I missing something? Obviously I'm technologically challenged, but I HAVE to get to the bottom of this!

  • ESB Web site name in XML and Load Balance name were inconsistent

    Hi All,
    I have a esb cluster environment that is be consisted of two servers. And I configure a CISCO Load Balance is named pvinv.intranet.com for them.
    But why it reply me the single site name when I invoke the WSDL with SSL channel?
    This is the Url which is be called:
    https://*qainv.intranet.com*:4443/event/DefaultSystem/RuToSystem?WSDL
    And this is the anwser from site:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:import="http://query.web.http.amway.com" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:esb="http://www.oracle.com/esb/" xmlns:ws="http://www.example.com/webservice" xmlns:tns="http://query.web.http.amway.com" targetNamespace="http://query.web.http.amway.com">
    <import namespace="http://Query.web.http.amway.com" location="http://*soaghp1*:7777/esb/slide/ESB_Projects/Cu_CustomerQueryMediationModel/consumer/RuToSystem.wsdl" />
    - <portType name="QuerySoapESB">
    - <service name="ESB_RuToSystem_Service">
    - <port name="__soap_RuToSystem_QuerySoapESB" binding="import:__soap_RuToSystem_QuerySoapESB">
    <soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="https://*soaghp1*:4443/event/DefaultSystem/RuToSystem" />
    </port>
    <port name="__esb_RuToSystem_QuerySoapESB" binding="import:__esb_RuToSystem_QuerySoapESB" />
    </service>
    - <plt:partnerLinkType name="QuerySoapESBLT">
    - <plt:role name="QuerySoapESBProvider">
    <plt:portType name="import:QuerySoapESB" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>
    You can look at this : Url site name is :qainv.intranet.com
    But the WSDL reply me : soaghp1
    Could you tell me how to resolve this problem?
    Thanks,
    Jowvid Li.
    Edited by: jowvid on 2010-7-3 上午1:13

    Hi All,
    Why does the xml file message is not the Load Balance qainv.intranet.com name but soaghp1?
    Could you tell me what's the problem?
    Thanks,
    Jowvid.

  • Rich Internet / Data driven Web App 's  -  Which sdk and Plugins Please???

    Hi, I am starting Bournemouth University in September and will be learning java, I have wanted to build rich internet applications for years and am really excited!!
    I would like help understanding all the different products and plugins relevant to building rich internet data driven web applications so I can install them all to my system and then follow all the online videos and tutorials.
    I have knowledge of html, css, some sql, some flash and can use photoshop and fireworks.
    So far, I love the look of the net beans console and the first thing I want to find out is how to make the screens/panels/components unique from a graphical point of view; like you can in adobe flash or Flex. I tried to install java FX but had errors (?64 bit system related)
    Also would like to know if anyone else new has the same goal as me so we can set up a group or a web site dedicated to forming a learning path, like making a list of url's of which tutorials to do in which order to best learn the basics before connecting to databases and then learning mvc frameworks for enterprise level multi user applications.
    In that respect actually, is Java SE ok for my goals or should I have installed Java EE; I think I tried to install EE version first but had options in the installer I didnt understand or errors; did it a couple of weeks ago and cant remember exactly what the issue was? Can you upgrade from one java sdk to another without effecting netbeans??
    Thanks all in advance, I hope some people will help me get started and in return I will dedicate part of my web site im about to build for uni to putting all the information gathered in one place for others.
    My system is windows 7, 64bit
    I have installed Java sdk - jdk-6u25-windows-x64
    Apache Tomcat 7.0.11
    GlassFish Server open source edition 3.1
    Netbeans IDE 7.0
    MySql Server 5.5
    MySql Workbench 5.2CE
    I also have mssql installed as I started learning this from an interactive dvd, but am assuming Oracle is the db of choice now oracle bought java. Or mySql which i installed but have never used before.
    Edited by: user13715216 on 16-Jun-2011 07:02

    First of all, stop treating this like its an Adobe product. There are no plugins okay? You have entered a very different world of development right now, one you may find you don't even like. But lets not be hasty.
    Secondly, remove everything you have installed right now.
    Okay, now you're ready to start. Now Install the Java 6 JDK AND NOTHING ELSE. It has no executable to start any fancy program, just a bunch of command line tools with which you are going to enter the wonderful and difficult world of Java programming. Pick a favorite text editor (preferably one that has syntax highlighting for Java sources) and get going. I suggest you start here:
    http://download.oracle.com/javase/tutorial/
    This will not tell you how to build web applications; this will tell you how to create Java programs using the tools that are part of the JDK. You should not be even thinking about doing any web development at all until you are intimately familiar with the language, the tools, the standard API and programming in general. That may take as little as three months, probably more given your limited experience in the realm of application programming.
    Only once you have found your way should you make an attempt to install Netbeans again and start to learn how to use that to make your life a little easier. Before Netbeans can help you help yourself, you really have to know what you are doing.
    I wish you good luck. Its good that you are excited, but I hope that excitement has not been built on top of bad assumptions and woefully inappropriate expectations. Programming is hard, application development is even harder.

Maybe you are looking for

  • Can't send or receive email, network on block list?

    i've set up exchange 2013 for the first time and when i log into the browser and send a email to my Microsoft account i get the following error: BAY004-MC2F50.hotmail.com gave this error: OU-002 (BAY004-MC2F50) Unfortunately, messages from 86.10.3.44

  • Succession Planning - German text displayed

    Hi, We are experiencing a  problem where a German text appears in Career Type column for a position that is displayed on Nakisa screen. The text in the Postion Attribute though is in English. This happens when slecting Positions ==> All Positions  ==

  • SBS 2008 Security report not showing correct status after Feb patch cycle

    Hello, I wonder if anyone can shed any light on this strange problem which has occurred after February patch cycle. On the SBS detailed report that comes through, the security section is showing as RED error. Though if you look at the detail, each se

  • Second system datafile ,but no data stored find???

    i add a second datafile SYSDBFILE.DBF SQL> select file#,ts#,name from v$datafile order by 2; FILE# TS# NAME 1 0 D:\ORACLE\ORADATA\LRH\SYSTEM01.DBF 14 0 D:\SYSDBFILE.DBF 2 1 D:\ORACLE\ORADATA\LRH\UNDOTBS01.DBF 3 3 D:\ORACLE\ORADATA\LRH\CWMLITE01.DBF 4

  • Substitutions - field does not appear in list of 'substitutable fields'

    Specifically, I would like to use a exit substitution to replace the content of the Structure PRPS-POSID field. However, I cannot seem to use a simple substitution rule (since PRPS-POSID does not appear as a substitutable field in the PRPS list of fi