How to passing Coordinate mappers class through network

Hi,
   i have to pass the sensor1 coordinate mapper class through network. How i can pass the  coordiante mapper for getting exact joint mapping.
Thanks in advance
kirubha

You cannot, the coordinate mapper requires the camera intrinsic data at the time the frame is captured. You can send the depthcamera table and other camera intrinsic and come up with the calculations. But the simpler options would be to pass the already
mapped frame data.
Carmine Sirignano - MSFT

Similar Messages

  • How to pass Method Inner Class reference to other method?

    Hi All,
    I am trying to pass the reference of "method inner class".
    Can any one explain me how to pass the reference and where other method will sit in the class, I mean either in Outer Class or in Inner Class ?
    Thanks in advance for ur reply :)
    package methosInnerClass;
    public class MethodLocalInnerClass {
         private String outerName;
         private static String statOuterName;
         public MethodLocalInnerClass(String name, String statName) {
              outerName = name;
              statOuterName = statName;
         public void methodWithLocallClass() {
              class MethodInnerClass {
                   String innerName;
                   MethodInnerClass(String name) {
                        innerName = name;
                   public void displayOuterInner() {
                        System.out.println("Outer Name: " + outerName + "\nOuter StatName: " + MethodLocalInnerClass.statOuterName + "\nInner Name: " + innerName);
              MethodInnerClass methodInner = new MethodInnerClass("Harish");
              methodInner.displayOuterInner();
                    *Pass above reference to other method*
         public static void staticMethodWithLocallClass() {
              class MethodInnerClass {
                   String innerName;
                   MethodInnerClass(String name) {
                        innerName = name;
                   public void displayOuterInner() {
                        // We can not access the non-static instance variable since this method is a static method
                        //System.out.println("Outer Name: " + outerName + "\nOuter StatName: " + MethodLocalInnerClass.statOuterName + "\nInner Name: " + innerName);
                        System.out.println("Outer StatName: " + MethodLocalInnerClass.statOuterName + "\nInner Name: " + innerName);
              new MethodInnerClass("Shakshi").displayOuterInner();
         public static void main(String[] args) {
              new MethodLocalInnerClass("Abhishek","Neeshu").methodWithLocallClass();
              System.out.println("Calling innerClass within static method !!!");
              staticMethodWithLocallClass();
    }

    package donald.test.inner_class;
    public class OutterClass {
         private String outerName;
         private final OutterClass outterClass;
         public OutterClass() {
              outterClass = this;
         public void methodWithInnerClass(final String strValueToPassToInnerClass) {
              class InnerClass {
                   private InnerClass innerClass;
                   private String innerName;
                   InnerClass(String name) {
                        innerName = name;
                   public void displayOuterInner() {
                        System.out.println("Non-Static:\tOuter Name: " + outerName + "\tInner Name: " + innerName);
                        System.out.println("");
                        System.out.println("final String strValueToPassToInnerClass = " + strValueToPassToInnerClass);
                    * @return the innerClass
                   public InnerClass getInnerClass() {
                        return innerClass;
                    * @param innerClass the innerClass to set
                   public void setInnerClass(InnerClass innerClass) {
                        this.innerClass = innerClass;
                    * @return the innerName
                   public String getInnerName() {
                        return innerName;
                    * @param innerName the innerName to set
                   public void setInnerName(String innerName) {
                        this.innerName = innerName;
              InnerClass methodInner = new InnerClass("Inner.Donald");
              methodInner.displayOuterInner();
              System.out.println("My OutterClass " + outterClass.getOuterName());
        // Unknown "MethodInnerClass "
         public void passReferenceOfInnerClassToOtherMethod(     ) {
          * @param args
         public static void main(String[] args) {
              OutterClass outterClass = new OutterClass();
              outterClass.setOuterName("Outter.Donald");
              outterClass.methodWithInnerClass("This Donald is so very cool...!!!  Yeah...!!!");
          * @return the outerName
         public String getOuterName() {
              return outerName;
          * @param outerName the outerName to set
         public void setOuterName(String outerName) {
              this.outerName = outerName;
          * @return the outterClass
         public OutterClass getOutterClass() {
              return outterClass;
    }

  • In PHP how to pass a recordset value through a url

    I have a blog set up with PHP/MySQL with two tables (1 table
    for blog entry and 1 table for comments on the blog)
    I can display the blog and the comment with a LEFT JOIN
    recordset like this---
    SELECT golf_blog.blog_ID, DATE_FORMAT(
    golf_blog.blog_created, '%b %e, %Y') AS blog_created,
    golf_blog.blog_author, golf_blog.blog_subject,
    golf_blog.blog_article, blog_comments.comment_article
    FROM golf_blog LEFT JOIN blog_comments USING (blog_ID)
    ORDER BY golf_blog.blog_created ASC
    I have a link in the repeat region of this recordset going to
    a page with the comment insert form.
    blog_ID is the primary key in the blog table and blog_ID is
    the index in the comment table.
    How do you pass the blog_ID from the recordset to a text
    field in the comment insert form through the link?
    Or am i even thinking about this in the right way?

    I figured it out and got it to work by passing the blog_ID as
    a variable on the URL link to the comment insert form page
    the link is like this
    <a href="golfblog_comment.php?$blog_ID=<?php echo
    $row_rs_golfblog['blog_ID']; ?>" >Comment</a>
    and on the comment page used this code
    <?php $blog_ID = '$blog_ID' ;
    $blog_ID = $_GET[$blog_ID]?>
    and the value of the insert field is this
    <?php echo $blog_ID; ?>
    I guess reading David Powers is starting to pay off.
    Eureka!

  • How to pass parameter to LOV through program

    Hi,
    I have a requirement where an lov should be populated depending on the parameter passed. I have gone through the dev guide and lot of threads in forum but i didnt get a suitable solution for this.
    My LOV Query is:
    select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'Yes' valid_for_job
    from
    per_valid_grades pvg,
    per_grades pg
    where pvg.grade_id = pg.grade_id
    and pvg.job_id = :1
    union all
    select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'No' valid_for_grade
    from
    per_grades pg
    where not exists (select pvg.job_id
    from
    per_valid_grades pvg
    where pg.grade_id = pvg.grade_id
    and pvg.job_id = :1)
    What i have done:
    1. I have created an LOV named GradeLovVO with above query.
    2. I have created a new controller to this LOV.
    3. For now i have hard coded job_id to 2345 and passing it to AM as below.
    String jobId = "2345";
    Serializable[] parameters = {jobId};
    am.invokeMethod("InitQuery",parameters);
    4. In the AM i have written InitQuery method as below.
    public void InitQuery(String jobId)
    GradeLovVOImpl vo1=getGradeLovVO1();
    vo1.setWhereClauseParams(null);
    vo1.setWhereClauseParam(0,jobId);
    vo1.setMaxFetchSize(-1);
    vo1.executeQuery();
    I am getting the following error.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'Yes' valid_for_job
    from
    per_valid_grades pvg,
    per_grades pg
    where pvg.grade_id = pg.grade_id
    and pvg.job_id = :1
    union all
    select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'No' valid_for_grade
    from
    per_grades pg
    where not exists (select pvg.job_id
    from
    per_valid_grades pvg
    where pg.grade_id = pvg.grade_id
    and pvg.job_id = :1)) QRSLT WHERE (( UPPER(GRADE_NAME) like UPPER(:1) AND (GRADE_NAME like :2 OR GRADE_NAME like :3 OR GRADE_NAME like :4 OR GRADE_NAME like :5)))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2406)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:716)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2314)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequestAfterController(OAListOfValuesHelper.java:766)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:645)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequest(OAListOfValuesHelper.java:439)
         at oracle.apps.fnd.framework.webui.beans.layout.OAListOfValuesBean.processRequest(OAListOfValuesBean.java:413)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01008: not all variables bound
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:716)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2314)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequestAfterController(OAListOfValuesHelper.java:766)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:645)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequest(OAListOfValuesHelper.java:439)
         at oracle.apps.fnd.framework.webui.beans.layout.OAListOfValuesBean.processRequest(OAListOfValuesBean.java:413)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Please help me fixing this error.
    I am storing JobID as formValue on base page. How do i pass this value to GradeLovVO?
    Thanks
    Pavan

    I have updated the LOV query to use two different bind variables (:1 & :2) instead of one and updated the code in processRequest method of CO as follows.
    String jId = "2345";
    System.out.println("job Id: "+jId);
    EmployeeLovAMImpl am = (EmployeeLovAMImpl)pageContext.getApplicationModule(webBean);
    GradeLovVOImpl vo = (GradeLovVOImpl) am.getGradeLovVO1();
    if (!vo.isPreparedForExecution())
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    try
    vo.setWhereClauseParam(0,new oracle.jbo.domain.Number(Integer.parseInt(jId)));
    vo.setWhereClauseParam(1,new oracle.jbo.domain.Number(Integer.parseInt(jId)));
    catch(Exception e)
    e.printStackTrace();
    vo.executeQuery();
    Now it doesn't throw any error but LOV doesn't behave as expected.
    Base Page by default assigns a value for Grade. When i click the flash light, after the LOV window pops up i search for % and it still displays only the record with default assigned grade. Now i closed the LOV popup window and click on Flash light again, nothing happens.
    Can somebody please help.

  • How to pass mysql query id through url parameter to a detail page

    Hi there,
    I am a newbie to JSP and I am trying to pass a url parameter to a detail page so that it will query a mysql data query to show the details of that query. How can I write the query on the details page so that it will display the query results on the page. eg select * From data Where = "passed_url parameter_ value". Please i need urgent help on this please.

    <Acknowledged>
    which should be strongly cautioned against even for "newbies".
    </Acknowledged>
    Right, but the code you posted will "work" in a very harmful wayNot always, I used normal Statements last year and I had no problems.
    Even with pretty capible code brakers trying to cause $h!t with my application.
    Just check for invalid datatypes, and for SQL Injections remove stuff like ' or replace with `
    But yes PStat... are the better way.

  • How to pass the report parameters through java not by using URL

    Hello...
    I have an oracle App. Server 10g with report service
    I can the report using the URL :
    http://host:Port/rwservlet/report=....
    and passing the report parameters ...
    But is there any way to call the report by pdf format and passing the parameters from java without using the url ???

    thank you shahcsanjay for your reply
    but I think that web.showDocument can not be used by ordinary java web application ..
    I think it can be used only with with "oracle forms" Am I right ?
    If no can you please tell me where can I find a useful document about how to use web.showDocument ...
    thanks again
    Saleem

  • AS2 ... how to NOT capture an event, how to pass the event onwards through the event bubbling flow

    hello;
    I have:
    Class my_class
      { public function my_class( an_mc )
             an_mc.onUnload = function()
               { // this capture prevents other listeners from getting it also;
                 //  in Adobe Director's Lingo, there is a pass method.

    true;
    I have two requests for some_mc.onUnload, one of which is built into a flipbook 'component' that I am using, and the other one which I need;
    it seems that mine is preventing the flipbook component from receiving it's;
    so ideally I would like to 'pass' the event onwards to any other listeners ( ie the flipbook's );
    for now I am not including mine in order to allow the flipbbook to do what it needs, and using some hacky approach to realise that some_mc has been removed from the stage;

  • How To Pass a List/Map Through iBatis to the Database?

    Hi, good morning.
    I am currenly using JSF as the front end of a J2EE application. Data go through many business logic layers and reach the database through the iBatis.
    The iBatis is new to me. To pass a query "String" from the front end to the database and get a "Collection" back from the database through the iBatis has been tested successful.
    Now, I have great difficulty to pass a "List" or a "Map" through the iBatis to the database? Is it possible to be done?
    The reason is that a table with thousands of records and each record has many name/value pairs may be sent to update the database. And looping through the table to send "String"s may not be a solution.
    Thank you in advance.

    Please help.

  • How to pass values between classes

    I have a login class and a DBUpdater class name tbl. I have declared username and string variable in both classes and two getfunctions in the DBUpdater class. But the values are not being passed.
    What am I doing wrong?
    The following code is from the login class.
    private void jButton1MouseClicked(java.awt.event.MouseEventevt)
    String username;
    String password;
    TSTT_Bill_Loader tbl = new TSTT_Bill_Loader();
    tbl.doLayout();
    username = this.jUsername.getText();
    password = this.jPassword.getText();
    tbl.setUsername(username);
    tbl.setPassword(password);
    tbl.main(null);
    setVisible(false);
    }

    Hello, please use code tags next time you post code. You can do so by adding [code] [[b]code] round blocks of code. So
    [code]
    class Code {
    private static final String codeHere = "code here";
    [[b]code]
    will be rendered as
    class Code {
      private static final String codeHere = "code here";
    You need to explain what is going wrong I don't think we will be able to offer much help.

  • How to pass and print files through LPT1 port using thermal printer

    hello,
    We are developing POS for a retailer store and we most probably finished it. We are using the following hardware interfaces for the development.
    1) Receipt Printer with Cash Drawer
    Brand: POSIFLEX pp6000 serial thermal printer
    Power Rated: DC 24v 2.0 A
    Model no: 3902c492
    2) Barcode Label Printer
    Brand : Monarch Paxar
    Model No: M09642PMU
    Serial No: 20123152
    3) POLE DISPLAY
    Brand: CE
    Model No: 07010517
    4) Barcode Scanner
    Brand: KB WEDGE
    Model no: A307911
    5) Programmable Keyboard
    Brand: PREH COMMANDER MC 128
    Model No: 90319-000/0000
    Serial No: 014693
    6) Touch Screen
    Brand: 3M TOUCH SYSTEMS INC
    Model No: 11-81371-129
    The problem is , we never get the printout of the receipt .But we generaed the receipt. And the cash drawer is not opening.We use the following code for printing the receipt
    import java.awt.print.*;
    import java.io.*;
    import java.util.*;
    class PrintManager extends Thread
    String STR_OUT="";
    boolean CD_OPEN=true;
    FileOutputStream fos;
    PrintStream ps;
    //char[] CMD_CUT={29,86,66,250}; //cuts paper
    char[] CMD_CD_OPEN={27,112,0,25,250}; //kicks cash drawer 1
    public PrintManager(){
    setDaemon(true);
    public void Init()
    Init(true);
    public void Init(boolean CDOPEN)
    try{
    fos = new FileOutputStream("LPT");
    System.out.println("nnnnnnnnnnnnafter LPT2");
    ps = new PrintStream(fos);
    System.out.println("nnnnnnnnnnnnafter LPT2");
    // System.setOut(new PrintStream(new FileOutputStream("LPT1.txt")));
    //System.setOut(new PrintStream(new FileOutputStream("console.txt")));
    System.out.println("SFWERWRW"+ps);
    // STR_OUT=STR;
    CD_OPEN=CDOPEN;
    }catch(Exception ex)
    System.out.println("Init:New::"+ex.toString());
    public void run ()
    try{
    if(ps==null)
    return;
    //ps.println(STR_OUT);
    //ps.print(CMD_CUT);
    if(CD_OPEN)
    System.out.println("ewqeqeqe");
    ps.print(CMD_CD_OPEN);
    System.out.println("ewqeqeq3453e");
    ps.close();
    fos.close();
    }catch(Exception ex)
    System.out.println("run::"+ex.toString());
    public void Close()
    try{
    ps.close();
    fos.close();
    ps=null;
    fos=null;
    }catch(Exception ex)
    System.out.println("Init:close::"+ex.toString());
    public class PrintRcpt {
    public static void main(String args[]) {
    PrintManager objPM=new PrintManager();
    //call Init always before calling start
    objPM.Init(); //print and open cashdrawer
    //objPM.Init("ZX",false); //print and do not open cashdrawer
    objPM.start();
    System.out.println("DONE");
    //Below sleep is a simulation for time lapse between two sales- do not include this sleep in the final code
    try{
    Thread.sleep(1000);
    System.out.println("DONE2");
    }catch(Exception ex){}
    //before starting second sale, close the port connection opened by first sales
    //this close should be called when the user closes the receipt print preview screen
    objPM.Close();
    objPM=null;//destroy the print manager object
    [/code]
    You please post your suggestion for getting the printout from our POS system.

    [url http://forum.java.sun.com/thread.jsp?forum=31&thread=535737]Duel posted

  • How to pass item payment term through Idoc segment E1EDP18

    We use ORDERS idoc to create sales orders and our customers want to replace the default payment term at item level. I found segment E1EDP18 for this purpose but I don't exactly know how to use it, like where to put the payment term key. Can any one expain with the help of a clear  example how to indicate the payment term there ?
    Below is a exerpt of the incoming idoc file I used for testing. In this test I put the paymentt term 0010 in but the information sent in idoc segment is just ignored.
    E1EDP01                     10         625.00
        E1EDP05                        ZD64
        E1EDP05                        ZD66
        E1EDP19                     00269020000
        E1EDP18                     0020010
    Many thanks

    Hi,
             SAP program IDOC_INPUT_ORDERS is not using the item level payment terms sent in IDOC segment P18 to fill the sales order so you need user exit to do this. The program is moving the item level information to an internal table xe1edp18 when the data is parsed from IDOC so you can use this to populate the screen information in the user exit 'CALL CUSTOMER-FUNCTION '002' (IDOC_INPUT_ORDERS).
    Let me explain the process from EDI to SAP.
    1) EDI 850 will have ITD segment at item level (Example ITD013  *2     *        *10 *        *30 *          *        *) you can ask your EDI team to map them to P18 segment as it has the number of days and also the percentage for cash discount. P18 has 3 qualifiers so you can map 3 different temrs (For example the above sample is 1 Term is 2% in 10 days and Term 2 is net 30 days)
    2) During IDOC parsing the program is already filling internal table xe1edp18.
    3) In the user exit CUSTOMER-FUNCTION '002' you need to search for the SAP payment terms with the number of days and percentage (This is available in the table T052). Once you find the SAP terms key, you need to populate it for each item. You need to do this after the program filled the item billing data.
    Dynpro item business data billin details -
        PERFORM VA01_DYNPRO_POSITION_PDE3 USING XVBAP-POSNR.
    *-Zusätzliche Daten für Dynpros vorsehen (Kundenerweiterungen)----
    *-additional data's for new dynpro fields (customer exit)----
        SY-SUBRC = 0.
        PERFORM CUSTOMER_FUNCTION_DYNPRO.  -- THis is the user exit call
    Hope this is useful.
    Ram

  • Passing a whole array through a method

    I need some quick help on how to pass a whole array through the method addCoins(). Here is the code:
    public class Purse {
         private Coin[] coins;
         private int lastIdx;
    public Purse() {
         coins = new Coin[100];
         lastIdx = 0;
    public boolean addCoin(Coin b) {
         if (lastIdx < coins.length) {
              lastIdx++;
              coins[lastIdx] = b;
              return true;
         else {
              return false;
    public boolean addCoins(Coin[] b) {
         if (lastIdx < coins.length) {
              for (b=0; b<99; b++) {
                   coins[b] = b;
         else {
              return false;
    }I figured passing the whole array would be "Coin[] b" but apparently Eclipse says that it can't convert from int to Coin[]. I have no idea what that means. Thanks in advance.

    I need to create 3 classes, Coin, Purse, and TestPurse.
    Coin code:
    public class Coin {
         private String typeOfCoin;
         private double value;
    public Coin(String t, double v) {
         typeOfCoin = t;
         value = v;
    public String toString() {
         return typeOfCoin + value;
    }Purse code:
    public class Purse {
         private Coin[] coins;
         private int lastIdx;
    public Purse() {
         coins = new Coin[100];
         lastIdx = 0;
    public boolean addCoin(Coin b) {
         if (lastIdx < coins.length) {
              lastIdx++;
              coins[lastIdx] = b;
              return true;
         else {
              return false;
    public boolean addCoins(Coin[] b) {
          if (lastIdx < coins.length) {
              for (int i=0; i<coins.length; i++) {
                   coins[i] = b;
         else {
              return false;
    public Coin getReverse() {
         coins = new Coin[0];
         lastIdx = 100;
    }In the Purse class, I need methods addCoin and addCoins that need to return boolean.  addCoin is supposed to add the argument coin as an element of the coins array if there is space.  addCoins neds to add all the coins in the input argument as elements of the coins array if there is space.  I then have to create two methods, getReverse and getValue that take no argument and getReverse that returns an array of type Coin while getValue returns a double.  In getReverse, I create an array simlar to coins but this new array is reverse.  I started on this method but I first need to worry about the addCoin and addCoins method.  For the record, getValue needs to add up the values of all the coins in the purse and return it, which I have no idea how to do that.  That's my next question.
    Edited by: quagmire87 on Dec 1, 2009 4:35 PM
    fixed method addCoins                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to pass username and password while invoking a web service through wsdl

    Hello All,
    i am calling a web service through wsdl, but it is giving error 401. i want to know how to pass userid and password when i am invoking webservice?
    i am using NetBeans 6.1.
    i did following thing:
    First i created one web application, then i right clicked on project new->web service client, and gave the url for my wsdl.
    after that i create one main class and try to call my required operation by that wsdl.
    Thanks in advance

    Thanks dumchikov, i tried the same thing what ever you told but there is no option for security.
    when i right clicked on web service reference its open 1 window which have 2 tab one is quality of service and second is wsdl customization, then i clicked on wsdl customization. which contain Global Customization, Port Types, Port Type Operations, Port Type Faults, Binding, Binding Operations, Services, Ports and External Binding Files. it don't have security option.

  • How to Pass password to Run as a Network Account in powershell

    Hello,
    I ve been asked to raise this as a new topic as given in the link. The response also says that it is not possible to pass the password of a network account in powershell. How else can I implement the requirement?
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/41a4ba3d-93fd-485b-be22-c877afff1bd8/how-to-run-a-powershell-script-in-admin-account?forum=ITCG&prof=required
    My requirement is that, I am need to run the powershell script via a network account. The powershell is called via a script on an ETL tool. When I ask it to print the output of the below command, the output says " Enter
    the password of domain\username:". 
    PS > runas
    /user:{domain}\{username} powershell -file {nameOfPowershellScript.ps1}
    Hence I had to modify the code to pass the password also in the same command. I am new to powershell scripting and the below command doesn't work.
    Please suggest the appropriate way to pass the password of the network account.
     Referred to a link http://technet.microsoft.com/en-us/magazine/ff714574.aspx. 
    $password = Get-Content c:\temp\password.txt | ConvertTo-SecureString 
    $credential = New-Object System.Management.Automation.PSCredential
    "CachedUser",$password 
    PS > runas
    /user:{domain}\{username} powershell -file {nameOfPowershellScript.ps1}
    PS >$credential.Password | ConvertFrom-SecureString | Set-Content
    c:\temp\password.txt 

    Thanks for the pointer. Question that I have is I am referencing sqljdbc4.jar in my application, which in turn using sqljdbc_auth.dll.
    Which one should i refernce through <nativelib>. Is it sqljdbc4.jar or sqljdbc_auth.dll.
    have added the following line to the .jnlp.
    <nativelib href="sqljdbc4.jar"/>
    But still it is complaining on sqljdbc_audth.dll. If it is sqljdbc_auth.dll, can I use <nativelib> to pass it.
    In that case does it need to be signed?. If so,
    Is it possible to sign .dll using 'jarsigner'?.
    Edited by: 878645 on Apr 26, 2012 3:43 PM

  • How to setup a Class B network with WRT54GX ver. 2

    Hi all,
    I bought a WRT54GX ver. 2 router. I wanna know how to setup the IP address say 128.1.50.136 with subnet mask 255.255.0.0 (Class B network)? By the way, 128.1.0.0 is my network zone.
    If the router can't change, what should I do? Any other router support Class B network?
    Thanks!

    bcow wrote:
    I did but it doesn't work. It seems don't have 255.255.0.0 to select.
    would you state more clear of how to do it? Thanks!
    It does not have that because it does not support it... the router runs on CLASS C only because it was designed and made for SOHO only... bussiness lines of Linksys or Cisco can do that....but not this router...
    "Sometimes your knight in shining armor is just a retard in tin foil.."-ARCHANGEL_06

Maybe you are looking for

  • Couldn't take it any longer, gone back to Mavericks

    After 2 weeks of dealing with random crashes, reboots and odd querks like the sound balance always reseting to the left channel I have gone back to Mavericks, which was a issue in itself as I didn't have a backup to use and OS X Recovery would only i

  • RFC lookup with java proxy class, how do I use "fromXml()"?

    Hi, I'm trying to do an RFC lookup in XI using java proxy classes (SAP Enterprise Connector). The XMLPayload comes from a java proxy class which has been converted to xml using a method called .fromXml() for this. I just don't know how to use and I c

  • Flash Player Prob. Help Please...

    OK I am not computer savvy in the slighest way, as you will soon find out. I only use Adobe Flash Player to play games and do Farmville on Facebook, and I just got a new computer tower in Jan. so everything was working perfectly. But yesterday all of

  • ALE/IDoc interface for Special Ledger Data

    Anybody has experience with extracting Special Ledger data from ECC through ALE/IDoc interface? Because Special Ledger is cutom to any client, I'm thinking we need to create a custom IDoc type. I didn't notice any standard IDoc type. Any documentatio

  • HT1918 I need to change my rescue email

    I nedd to change my rescue email