Official example

Any suggestions why this SUN's example doesn't work for me.
There is no browser window displaying the requested site:
http://java.sun.com/docs/books/tutorial/deployment/applet/browser.html

Hello Satine,
Lets visit some concepts first:
String index starts with 0. Hence, for a expression "Satine __substringpos 't' ", result will be 2 and not 3. I guess that's where you probably made a mistake. So, lets see how __substringpos, __length, __trailingchars & __leadingchars are computed
_substringpos+: start counting with 0, till you reach the substring you are looking for
length+: start counting with 1, till you reach end of string (e.g., result of "_length Satine" will be 6)
+_trailingchars+: from end, start counting with 1 (e.g., result of "Satine _trailingchars 2" will be 'ne')
leadingchars+: from beginning, start counting with 1 (e.g., result of "Satine _leadingchars 2" will be 'Sa')
There are three ways of looking at the string. One "with return char", 2nd "with return char except for last item" and third "without return char". I am not sure what was the consideration of the author of the guide/DTD documentation, however, below examples will clarify how +__substringpos+, +__length+, +__trailingchars+ & +__leadingchars+ are computed
*Case 1: With Return char (return char at end too)*
parse_str=>#A1=10<new_line_char>#B1=20<new_line_char>#C1=30<new_line_char>#D1=40<new_line_char>#E1=50<new_line_char>#F1=60<new_line_char>
length of parse_str = 42
startpos = 21
num_trailing = 21
trim_str = #D1=40<new_line_char>#E1=50<new_line_char>#F1=60<new_line_char>
endpos = 7
result_str = #D1=40
*Case 2: With Return char (no return char at end)*
parse_str=>#A1=10<new_line_char>#B1=20<new_line_char>#C1=30<new_line_char>#D1=40<new_line_char>#E1=50<new_line_char>#F1=60
length of parse_str = 41
startpos = 21
num_trailing = 20
trim_str = #D1=40<new_line_char>#E1=50<new_line_char>#F1=60
endpos = 7
result_str = #D1=40
*Case 3: without return char*
parse_str=>#A1=10#B1=20#C1=30#D1=40#E1=50#F1=60
length of parse_str= 36
startpos = 18
num_trailing = 18
trim_str = #D1=40#E1=50#F1=60
endpos = 6
result_str = #D1=40
Regards
-Shant

Similar Messages

  • Report print problems windows 7

    Hi All,
    Am trying to get to the bottom of a really weird error that occurs periodically. 
    When trying to print an HTML report using the Print Report VI occasionally an IE error is thrown. An error dialogue with some info is shown, it says the error occurs in res://ieframe.dll/preview.js which is clearly not part of my LabVIEW code. Note this does not come out of the error cluster, it is generated within the ActiveX node itself.
    Any body have similar problems?
    Using LV2010 (32-bit) on Windows 7. Have tried installing latest versions of IE etc and it does not solve the problem.
    nrp
    CLA

    Hi nrp,
    This seems to be more of a Windows error but it could be related to how LabVIEW is trying to communicate with IE too. I would recommend that you try the official example and see what happens. There is a VI in the Example Finder called HTML Report. It shows you how to correctly create a HTML report. There is also an example by the name of PrintControlReport.vi. This shows how you can then print any report that you’ve created. The combination of the two should give you what you need.
    Hope this helps,
    Regards,
    Mahdieh G
    Applications Engineer
    National Instruments UK&Ireland

  • Help with Spry Rating Widget within a Spry Repeating Region

    My link  http://www.youthinkyougotitbad.com
    This is a long question, but it seems to me if answered somewhere it could help alot of people in the spry community creating comment boards as it uses three important spry widgets: rating, repeating, and tabbed panels. I am trying to use spry rating widget within a spry repeating region within a spry tabbed panel with xml. I was trying to go with the pulse light script (http://forums.adobe.com/message/3831721#3831721) but Gramps told me about the spry rating widget. But I have ran into a couple more problems. First, I couldnt find that much information on the forums or online about how to do the php page with the spry rating widget. None of these have any information on how to do it:
    http://labs.adobe.com/technologies/spry/articles/rating_overview/index .html
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/rating. html
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.ht ml
    And it seems that the official examples are so poor (or I am just ignorant, which def could be a possiblity) it shows
    to set the initial rating value from the server, but uses a static value of 4
    http://labs.adobe.com/technologies/spry/samples/rating/RatingSample.html
    <span id="initialValue_dynamic" class="ratingContainer">
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>
             <span class="ratingButton"></span>      
             <input id="spryrating1_val" type="text" name="spryrating1" value="4" readonly="readonly" />
             <span class="ratingRatedMsg sample">Thanks for your rating!</span>
    </span>
    <script>
    var initialValue_dynamic = new Spry.Widget.Rating("initialValue_dynamic", {ratingValueElement:'spryrating1_val'});
    </script>
    I finally found a site that has the php and mysql setup.
    http://www.pixelplant.ro/en/articles/article-detail/article/adobe-widgets-for-download.htm l
    But its not perfect. It has the same problem that I ran into with Pulse light, that you had to use php echo within the spry repeating region to set the initial value from the server:
    <span id="spryrating1" class="ratingContainer">
             <span class="ratingButton"></span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="<?php echo $row['average']?>"/>
            </span>
            <script type="text/javascript"
                var rating1 = new Spry.Widget.Rating("spryrating1", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id=spryrating1&val=@@ratingValue@@'});
            </script>
    So instead, I tried with three of my panels (www.youthinkyougotitbad.com) to get the average rating from xml by using the following queries:
    Recent
    Returns the blurts in most recent order along with average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC
    Wet Eyed
    Returns the blurts in highest ratings order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r Desc
    Dry Eyed
    Returns the blurts in lowest rating order along with the average rating
    SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt AND ratings.rating_value > 0.1 Group By Id_blurt ORDER BY average_r
    These all return the correct xml in the correct order.And they return the average rating of each blurt which I can send to my page with xml.
    My first question is that I dont know how to configure the query on my fourth panel Empathized & Advised the same way because it already has a Group By for the Comment Id.
    SELECT `Comment`.id_Blurt, COUNT(*) as frequency, Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt, DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt, `Comment` WHERE Blurt.Id_blurt = `Comment`.id_Blurt GROUP BY `Comment`.id_Blurt ORDER BY COUNT(*) DESC";
    Not sure if you guys need more information to understand that all, if so just ask.
    So after I get my average value through xml to the first three panels, I set my spry repeating region up like this:
    (Blurt panel)
    <div spry:region="pv1" spry:repeatchildren="pv1">           
               <div class="blurtbox">
                <!--  most recent blurt tab-->
                <h3> "{pv1::Blurt}"</h3>
                <p> Blurted from {pv1::Location} at {pv1::Date}</p>
                <p>Empathize or Advise about {pv1::Name}'s Blurt #<a href="detailblurt.php?blurtid={pv1::Id_blurt}"> {pv1::Id_blurt}</a></a></p>
               <span id="{pv1::Id_blurt}" class="ratingContainer">
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingButton"></span>
                <span class="ratingRatedMsg">Thank You! Your tears have been tallied.</span>
                <input type="text" id="ratingValue" name="dynamic_rate" value="{pv1::average_r}"/>
            </span>
            <script type="text/javascript">
                // overview of available options and their values:
                // http://labs.adobe.com/technologies/spry/articles/rating_overview/index.html
                var rating1 = new Spry.Widget.Rating("{pv1::Id_blurt}", {ratingValueElement:'ratingValue', afterRating:'serverValue', saveUrl: 'save.php?id={pv1::Id_blurt}&val=@@ratingValue@@'});
            </script>
                 <br/>
               </div>
              </div>
    Ok, it registers the right vote in the database with the right blurt id each time. But I am having two problems so far:
    One, even though {pv1::average_r} returns the correct average through xml, it doesn't show the initial rating value for each of the repeating blurts. It seems to show the first one correct, and then just repeat that same value to the other ones that follow. I just dont understand since it can get the correct server value right after you vote (afterRating:'serverValue), that I can't manipulate spryrating.js in some way that I could just replace 'ratingValue' in ratingValueElement:'ratingValue' with something to give me the initial server value.
    Two: Is even more mysterious to me, if you play around with voting on the site, sometimes you are unable to vote on different blurts. Its weird. It seems like that the javascript is completely off just on those blurts. And sometimes its a whole row, sometimes none. But so far its never a problem on the first tabbed panel (Recent), only on the other three. As far as I know, the coding is exactly the same in each tab's repeating region except for the different xml input.
    And, now on the live server, sometimes the pics of tears used to voting dont show up until you click.
    Any help on those three questions (how to query the fourth panel, how to show the initial server value, and the glitches with voting) would be greatly appreciated!! I looked pretty hard on adobe forums and other sites, and didnt see much on how to really use the spry rating widget with php and xml.
    Thanks!!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • Is this a bug in __env_close_pp?

    I'm using Berkeley DB 4.6.21.
    in __env_close_pp, this function calls __repmgr_close, then __env_close, and
    __env_close calls __rep_env_close.
    __repmgr_close will join any replication threads(selector, messengers, and elect_thread).
    But __rep_env_close will send any outstanding bulk buffers when close, my question is that the relevant threads are over already, all the connection fd were closed, the sending function may return error.
    I do an experiment to verify this, and enable DB_REP_CONF_BULK in replication config, when the master node exits,
    the program will complain occasionally :socket writing failure: Bad file descriptor.
    Though the error seems was not fatal and trivial.
    It seems that the error message was thrown from __repmgr_send_internal, and it was called from __repmgr_send (via __repmgr_send_broadcast and __repmgr_send_one), and __repmgr_send was the sending handler of replication handler.

    Thanks for your reply.
    Please forgive me,I am pretty busy in these days.
    My OS is
    6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007.
    I modified the official examples in db-4.6.21/examples_c/ex_rep/mgr as following:
    1. enable bulk in replication:
    dbenv->rep_set_config(dbenv,DB_REP_CONF_BULK,1);
    2. enable verbose in replication
    add -v option to command line;
    3. catch SIGINT
    when SIGINT happens, "goto err" to close databases(break the "for(;;)" loop in rep_common.c), return and close the env.
    Running the replication in 2 nodes , after election finishes, input something, the client will sync with the master, then Ctrl+C to stop master process:
    QUOTESERVER> c 4
    ex_rep: bulk_msg: Copying LSN [1][3051] of 73 bytes to 0x28f4ff0c
    ex_rep: bulk_msg: Copying LSN [1][3136] of 32 bytes to 0x28f4ff61
    ex_rep: bulk_msg: Send buffer after copy due to PERM
    ex_rep: send_bulk: Send 165 (0xa5) bulk buffer bytes
    ex_rep: env2 rep_send_message: msgv = 4 logv 13 gen = 7 eid -1, type bulk_log, LSN [1][3136] perm
    ex_rep: will await acknowledgement: need 0
    ex_rep: got ack [1][3136](7) from site localhost:8080
    ex_rep: bulk_msg: Copying LSN [1][3180] of 53 bytes to 0x28f4fee8
    ex_rep: bulk_msg: Copying LSN [1][3245] of 53 bytes to 0x28f4ff29
    ex_rep: bulk_msg: Copying LSN [1][3310] of 68 bytes to 0x28f4ff6a
    ex_rep: bulk_msg: Send buffer after copy due to PERM
    ex_rep: send_bulk: Send 210 (0xd2) bulk buffer bytes
    ex_rep: env2 rep_send_message: msgv = 4 logv 13 gen = 7 eid -1, type bulk_log, LSN [1][3310] perm
    ex_rep: will await acknowledgement: need 0
    ex_rep: got ack [1][3310](7) from site localhost:8080
    QUOTESERVER> ^Cex_rep: bulk_msg: Copying LSN [1][3390] of 73 bytes to 0x28f4fee8
    ex_rep: bulk_msg: Copying LSN [1][3475] of 44 bytes to 0x28f4ff3d
    ex_rep: bulk_msg: Send buffer after copy due to PERM
    ex_rep: send_bulk: Send 141 (0x8d) bulk buffer bytes
    ex_rep: env2 rep_send_message: msgv = 4 logv 13 gen = 7 eid -1, type bulk_log, LSN [1][3475] flush perm
    ex_rep: will await acknowledgement: need 0
    ex_rep: got ack [1][3475](7) from site localhost:8080
    Symbol Price
    ====== =====
    a 2
    b 3
    c 4
    ex_rep: bulk_msg: Copying LSN [1][3531] of 73 bytes to 0x28f4fee8
    ex_rep: Stopping repmgr threads
    ex_rep: Repmgr threads are finished
    ex_rep: send_bulk: Send 85 (0x55) bulk buffer bytes
    ex_rep: env2 rep_send_message: msgv = 4 logv 13 gen = 7 eid -1, type bulk_log, LSN [0][0] nobuf
    ex_rep: socket writing failure: Bad file descriptor
    ex_rep: rep_send_function returned: 9

  • 124.AQAdapter - AQOutboundCorrelation

    I tried the Exampel 124.AQAdapter - AQOutboundCorrelation . The Enqueue works. After i use the enqueue_reply.sql to move the message from one queue to the other.
    The problem is:
    The message disappears instantaneously from both queues and the the webinterface in audit-mode the workflow remains in pending state.
    Receive_1 - pending
    [2006/07/07 09:22:28] Es wird auf "Dequeue" von "CombineRequestReply" gewartet. Asynchroner Callback.
    After that i created two seperate workflows. One with a enqueue. Perfect. Everytime i invoke the enqueue workflow one message with the defined correlation-id appears in the queue.
    The second workflow with the dequeue shows strange behaviour. Before deployment: the messages are in the queue. After deployment, without invoke, the messages disappear immediately. If i invoke the dequeue-workflow, it is pending like the official example.
    If i switch the process state from on to off and to on again, the messages remain in the queue and it is still not working....
    Can anybody help me?

    I've restarted the queues and BPEL is pulling the message out of the CORRELATION_REPLY queue, but not matching it up to the original process. If I add the property:
    <property name="rejectUncorrelatedMessages">true</property>
    to bpel.xml I get the following error when I enqueue the reply:
    javax.resource.ResourceException: ORABPEL-12509 Unable to post inbound message to BPEL business process.
    The JCA Activation Agent of the Adapter Framework was unsuccessful in delivering an inbound message from the endpoint [Dequeue_ptt::Dequeue(CORRELATIONREPLY_TYPE)] - due to the following reason: ORABPEL-12563 Unable to match native inbound native correlation id '0513F659503F44ACB82F1C57D9 9B7FDE' with any open BPEL conversation ID.
    Be grateful for any help, even if it's just a confirmation or the same problem or that you have it working.

  • Why is UTL_DBWS is doing a POST when calling a webservice??

    Hi everyone,
    I was testing the UTL_DBWS package with a 10.2.0.2.0 database to get a call to a webservice on an Oracle AS. My PL/SQL code is like this:
    declare
    l_service sys.UTL_DBWS.service;
    l_call sys.UTL_DBWS.call;
    l_result ANYDATA;
    l_wsdl_url VARCHAR2(1024);
    l_service_name VARCHAR2(200);
    l_operation_name VARCHAR2(200);
    l_input_params sys.UTL_DBWS.anydata_list;
    reti          pls_integer;
    BEGIN
    l_wsdl_url := 'http://localhost:8099/JMSService?wsdl';
    l_service_name := 'JMSService';
    l_operation_name := 'sendTextMsg';
    l_service := sys.UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_name);
    l_call := sys.UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => null,
    operation_name => l_operation_name);
    sys.utl_dbws.set_property(l_call, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    sys.utl_dbws.set_property(l_call, 'OPERATION_STYLE', 'rpc');
    sys.utl_dbws.set_target_endpoint_address(l_call, 'http://localhost:8099/JMSService');
    l_input_params(1) := ANYDATA.ConvertVarchar2('a');
    l_input_params(2) := ANYDATA.ConvertVarchar2('a');
    l_input_params(3) := ANYDATA.ConvertVarchar2('just a test');
    l_result := sys.UTL_DBWS.invoke (
    call_handle => l_call,
    input_params => l_input_params
    sys.UTL_DBWS.release_call (call_handle => l_call);
    sys.UTL_DBWS.release_service (service_handle => l_service);
    dbms_output.put_line( ANYDATA.AccessNumber(l_result));
    dbms_output.put_line('DONE');
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('ERROR');
    dbms_output.put_line(SQLERRM);
    END;
    The code was published in some official example but I'm getting the following error message:
    ===> Invocation (a[class java.lang.String],a[class java.lang.String],just a test[class java.lang.String])
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(Unknown Source)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:165)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:110)
         at oracle.j2ee.ws.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:87)
         at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:546)
         at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.invokeProxy(Unknown Source)
         at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.access$2500(Unknown Source)
         at oracle.jpub.runtime.dbws.DbwsProxy.invokeProxy(Unknown Source)
    CAUSE:
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
    I analyzed the traffic in the jdeveloper's http monitor and found out, that obviously the UTL_DBWS package sends a POST request but it should be GET, because the oracle AS responses that POST is not allowed with my webservice. If you use the AS' web interface to invoke the webservice, a GET is generated.
    Now, does anyone know about that or how I can configure UTL_DBWS to send GET requests?
    thanks in advance
    Steffen
    ps: apparently it doesn't matter whether the webservice is returning some data or not

    Hi everyone,
    I was testing the UTL_DBWS package with a 10.2.0.2.0 database to get a call to a webservice on an Oracle AS. My PL/SQL code is like this:
    declare
    l_service sys.UTL_DBWS.service;
    l_call sys.UTL_DBWS.call;
    l_result ANYDATA;
    l_wsdl_url VARCHAR2(1024);
    l_service_name VARCHAR2(200);
    l_operation_name VARCHAR2(200);
    l_input_params sys.UTL_DBWS.anydata_list;
    reti          pls_integer;
    BEGIN
    l_wsdl_url := 'http://localhost:8099/JMSService?wsdl';
    l_service_name := 'JMSService';
    l_operation_name := 'sendTextMsg';
    l_service := sys.UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_name);
    l_call := sys.UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => null,
    operation_name => l_operation_name);
    sys.utl_dbws.set_property(l_call, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    sys.utl_dbws.set_property(l_call, 'OPERATION_STYLE', 'rpc');
    sys.utl_dbws.set_target_endpoint_address(l_call, 'http://localhost:8099/JMSService');
    l_input_params(1) := ANYDATA.ConvertVarchar2('a');
    l_input_params(2) := ANYDATA.ConvertVarchar2('a');
    l_input_params(3) := ANYDATA.ConvertVarchar2('just a test');
    l_result := sys.UTL_DBWS.invoke (
    call_handle => l_call,
    input_params => l_input_params
    sys.UTL_DBWS.release_call (call_handle => l_call);
    sys.UTL_DBWS.release_service (service_handle => l_service);
    dbms_output.put_line( ANYDATA.AccessNumber(l_result));
    dbms_output.put_line('DONE');
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('ERROR');
    dbms_output.put_line(SQLERRM);
    END;
    The code was published in some official example but I'm getting the following error message:
    ===> Invocation (a[class java.lang.String],a[class java.lang.String],just a test[class java.lang.String])
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(Unknown Source)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:165)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:110)
         at oracle.j2ee.ws.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:87)
         at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:546)
         at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.invokeProxy(Unknown Source)
         at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.access$2500(Unknown Source)
         at oracle.jpub.runtime.dbws.DbwsProxy.invokeProxy(Unknown Source)
    CAUSE:
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
    I analyzed the traffic in the jdeveloper's http monitor and found out, that obviously the UTL_DBWS package sends a POST request but it should be GET, because the oracle AS responses that POST is not allowed with my webservice. If you use the AS' web interface to invoke the webservice, a GET is generated.
    Now, does anyone know about that or how I can configure UTL_DBWS to send GET requests?
    thanks in advance
    Steffen
    ps: apparently it doesn't matter whether the webservice is returning some data or not

  • Report print problems

    we are working on a couple of reports that are giving us problems printing. on the first we are getting multiple records that are the same this report prints fine ,but when i add the distinct keyword to the query the report comes up blank on the web. in the client/server environment the report prints the expected results. the second report is simply passed one parameter and i want to print that parameter as a barcode. i can also get this report to run in client/server but not on the web. these reports produce no errors just a blank report. we have other reports running fine but these two are driving me crazy. is there anything i should look for.
    null

    Hi nrp,
    This seems to be more of a Windows error but it could be related to how LabVIEW is trying to communicate with IE too. I would recommend that you try the official example and see what happens. There is a VI in the Example Finder called HTML Report. It shows you how to correctly create a HTML report. There is also an example by the name of PrintControlReport.vi. This shows how you can then print any report that you’ve created. The combination of the two should give you what you need.
    Hope this helps,
    Regards,
    Mahdieh G
    Applications Engineer
    National Instruments UK&Ireland

  • JMF realtime video acquire is possibile?

    Hello i need method for acquire video in realtime
    I have need to see when registry the video.
    The official example not see when record.
    Thanks

    There is video capture, but a web cam is typically just for grabbing still frames every so often, not for full frame rate video. I imagine the difference isnt' much from what you posted, so maybe you need to analyze the code there a little better and figure out how to change it to do what you want. Of course, full frame rate video is just grabbing more still frames faster.

  • Build own CANopen VI's based on NI CAN

    Hi,
    I would like to build my own CANopen library based on NI CAN. if any one has done this before
    kinldy let me know, if yes, could you kindly share a example program of , how to initalize the CANopen and send a "start node operation " message.
    regards
    rags

    Hello-
    CANOpen has been used with NI-CAN at a small scale. It is possible to obtain the CANOpen spec and assemble a set of VI's to use CANOpen. Unfortunately, there are no official examples from NI at this time.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Public varibles Vs Methods

    Hi,
    I am self-studying Java and making a fair progress. Wish someone would clarify the following for me, please.
    I have seen the following form in some Java examples;
    public class SomeBody {
        private int age;
        public void setAge(int age) {
            this.age = age;
        public int getAge() {
            return age;
    }And when the "age" has to be accessed, it is;
    private SomeBody mistress = new SomeBody();
    mistress.setAge(25); But evidently, same could be accomplished by simply;
    public class SomeBody {
        public int age;
    } And to access "age";
    SomeBody mistress = new SomeBody();
        mistress.age = 25;Why is it that in most official examples, the first form is used instead of the second, which is much simpler ?
    Is it some coding standard ?
    Is it just a personal preference of coding style ?
    If none, is there any technical reason I fail to see ?
    Assume, the class has no plans to be reused in other applications and you are not in a multiple developer environment either.
    Thanks for your advice.

    In my very first post itself, I explicitly mentioned that;
    Assume, the class has no plans to be reused in other applications and you are
    not in a multiple developer environment either.Well, my point gentlemen, is to ensure that my mistress object is not used by others (hopefully) at least
    when I am around.
    So the internal properties of mistress will remain private all the time anyway. It is up to me to pay due care so that
    none of those are accessed or handled by others inadvertently.
    All I want to know is, by making those properties public, would it look indecent in the Java world?
    For instance, the use of the age-old BASIC 'goto' statement is considered "bad programming style" in anything
    this side of 25 years. As you know, the reason being given is that; you yourself will not know whether you are
    coming or going, when you revisit the code 6 months later. You simply can't afford that senario,
    so it is a firm NO to 'goto'.
    flounder wrote:
    If you are employed and working on a project, then it is highly likely that you
    won't have a choice and will have to abide by the coding standards established by the company. I do work for a company(Telecommunication) alright, we have engineers who double as programmers as and when needed.
    The bad part is; I am the bloke who's sopposed to make the choice and 'establish' those standards for them to abide by.
    So would want to know from you experienced guys as to what is the compromise between convinence + time
    and accepted practice.
    To elaborate further, one developer will handle a given project alone throughout, yet the source code will not be personal.
    Meaning, if there is a dying urge of another to inspect the internals of mistress, it is quite possible in the absense of the
    original developer.This does not mean to say that multiple developers will be working on one project. Only if the
    original developer leaves or runs under a truck that another will take over the development / maintenance of a
    given application.
    What I want to stress here is; it is not the purposefulness of encapsulation I am referring to at this point, but just the style.
    Cheers,

  • CANopen VI's for NI CAN card

    Hello,
    I'm using a NICAN PCI and PXI card and now I want to communicate with a CANopen device. Can somebody help me with VI's for the CANopen communication or can somebody give me an adress where I can buy these VI's ?
    Best regards
    TED

    Hello-
    CANOpen has been used with NI-CAN at a small scale. It is possible to obtain the CANOpen spec and assemble a set of VI's to use CANOpen. Unfortunately, there are no official examples from NI at this time.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Dictation with System.Speech (German)

    Hi,
    I've integrated System.Speech.SpeechRecognitionEngine in my WPF-Applictaion. In the app we want to use dictation, but it's not working as expected. When I compared the Dictation from System.Speech to Cortana I saw that Cortana is recognizing much better.
    Is there any way to integrate/use Cortana from a WPF-Application?
    I've to say that we're using the recognation with German Culture.
    regards
    Christian

    >>Is there any way to integrate/use Cortana from a WPF-Application?
    I am afraid not. Cortana is not even available or integrated with the version of Windows that you are running on a PC or a Surface Pro tablet until the upcoming release of Windows 10 so there is currently no way to integrate or use it in a WPF desktop
    application (you cannot run a WPF application on Windows Phone).
    It still hasn't been confirmed how Cortana will be implemented and there are no official examples or documentation available about how and if you will be able to use it in a WPF application:
    http://www.pcpro.co.uk/operating-systems/1000288/5-things-windows-8-doesnt-windows-10-does
    I guess you will have to wait and see. Anyway, there is no way to use Cortana with WPF on Windows 8.1 or earlier versions of Windows.
    If you have any further questions related to Windows Phone development, please ask these in the following forum:
    https://social.msdn.microsoft.com/forums/windowsapps/en-us/home?forum=wpdevelop
    And if you have any questions related to Windows Store Apps, please ask these here:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/home?category=windowsapps
    Please also remember to close your threads by marking helpful posts as answer then start a new thread in the appropriate forum if you have a new question.

  • Programmatically creating a tunnel with LV scripting

    Hi everyone !
    I have that really dumb question, but lost 3 hours trying to solve it...
    So far, I went through the tutorials on VI scripting available on the NI website.
    I am currently trying to build this VI programmatically :
    I had no problem to create the controls, the add function, wire the case selector etc. My problem is with the tunnels: how to create them ?
    I have no clue on what to give to the "style" node of the "New VI object" VI. The constant enum has a way too much choices to try them all...
    Moreover, none of the official example uses a tunnel on a structure (especially the "Working With Structure.lvproj" example, which is really poor imo :/ )
    Ok, I know that there is no official support for VI scripting, but thank you in advance for answering my question !
    Bat.
    Solved!
    Go to Solution.

    Tunnels are either very easy or very hard, depending upon how particular you are about how the end result looks.
    Easy Way
    Wire between the two terminals using the terminal method Connect Wire.  The tunnel will automatically be connected for you.
    I Want It Where I Want It!
    To put the tunnel where you want it, you need to make sure the wire goes where you want it (moving the tunnel afterwards is a lot harder).  So, for each location where you want a wire bend, drop something with a terminal (e.g. a bundler).  Make sure the center of the terminal you will wire to is where you want your bend.  Wire between all the terminals on all the objects, then delete the temporary objects.  The internal LabVIEW codegen engine does this.
    Let us know if you need more info.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Need exmamples for FP-CTR-502 for LabWindows​/CVI

    I am looking for examples for the FP-CTR-502 for LabWindows/CVI. Any help appreciated!

    Currently, there are no 'official' examples for the 502/500 in CVI. However, there are some examples in the work.
    I did make a very simple example to measure frequency using a user-specified gate width. This CVI project is attached.
    Joji
    Attachments:
    FPCTR.zip ‏516 KB

  • Local video files on native player - any examples or official response?

    Sorry to bring this up again as there are several posts in this forum asking the same questions but I figured now that Packager for iPhone is once again being actively supported it would be a good time to try and get some clarification.
    Playing local video files on the iPhone/Pad's native video player is a well documented feature of the packager but one that I have yet to get working or even see an example of. There are quite a few posts here and elsewhere with people asking how to get this feature working, especially with reference to the navigateToURL() function as described in the developer guide.
    Has anyone ever managed to get this feature working and are there any examples of code using navigateToURL() which have been successful for anyone? If not could one of the Adobe reps on this board give a response just to clarify if H.264 video playback is working as intended and documented.
    Many thanks for any incoming responses, I have been very happy to hear the news from Apple/Adobe over the last few days and getting this feature working would top off a few days of good news!

    I've tried that with no luck.  Here's a screenshot of the app.  You can see the many ways I've tried to play video files and it just doesn't work the way you suggested, or the way the documentation suggests.  What am I doing wrong?  Or does it just not work since no one can seem to get it to work?
    And yes, I did include the video:

Maybe you are looking for

  • Can we write an IIF statement in Designer??

    Hi dears, Can we write an IIF statement in Designer when we connect to the SAP BI 7.0 InfoCube? I try to add a new dimension object to my universe design by using IIF statement. At the below you can find my simple IIF statement. <EXPRESSION>IIF([0FIS

  • Copy and paste a Text-Layer to another picture - Its not a Textlayer more

    Hello, i tried to copy a text-layer from one psd-Picture and i want to paste it into  other pictures: var dok_textebene = app.documents.getByName ("text.psd"); dok_textebene.artLayers["name of the textlayer"] .copy() ;            //chage to a other p

  • Lifetime of Object in the Object Cache on selects

    On inserting an object (corresponding to user-defined SQL type), I can use a stack-allocated struct for the object and its indicator structure, and pass these addresses to OCIBindObject. But on selecting an object (by value, not ref), the doc says on

  • Can I use AWT elements in a JSP, and so could I generate events with them?

    This is because I�m doing a simple JSP that showing a button, my JSP is: <html> <%@ page import="java.awt.*" %> <%! Button b = new Button("Hola!!!"); %> <% add(b); %> </html> But when I tried to see the button in the browser, my JSP generates the fol

  • Tab canvas + post-forms-commit + form_trigger_failure

    Hi all, There is a tab canvas with eight tab pages in my forms. In the post-forms-commit form-level trigger there are controls based on some conditions before executing the processes. When the conditions in the controls are not met then a stop alert