Generating .trn for mapping "Like"

Hi guys,
could you pleasen show me an example to generate a .trn to load mapping rules into an application in FDM? User's guide is not really useful. We need to create a file with the following features:
Rule Name/     Rule Desc/     HFM Account/Rule Definition/-/Script
Which are the ones you can find in FDM, to load the mapping scripts in FDM.
Could you please provide an example?
Thank you!
Cheers,
Lu

While I won't vouch for every version of FDM, I do know that for 9.3.1 and previous, you absolutely can perform "Like" and "Between" mappings with Ledgerlink files (TRA / TRN).
You can only specify a few options; however : Source account, destination account, and Description. To signify a sign flip, you put a - in front of the destination account. If you are doing a "Like" or "Between" type rule, the rule name is not specified in the TRA/TRN file, it is system created for you.
Example as follows :
1287-01-60-00;Patent; Patent Accumulated Amortization
2100-01-50-00;-Cash; Cash Sign Flip
2100*;Cash; Cash (Like Example)
19??;COGS; Cost of Goods Sold (Like Example)
1800>1850;Sales;Sales (Between Example)

Similar Messages

  • HOW TO GENERATE IDOC FOR CHECK LIKE RFFOEDI1

    Hi Gurus,
    I need a big help in this. This program RFFOEDI1 do payment summary (report) and generates IDocs and RFFOUS_C does the same for Check except generating and IDoc. Is there a way to or a program to that can do this for check i.e do payment summary (report) and generates IDoc. I was told i can create a new function module to do this but I dont know how to go about doing this.
    A big help will be seriously appreciated and rewarded.
    Thanks for your time.

    Hi Subramanian,
    Thanks for the quick reply. Both the program produce the summary, but only the RFFOEDI1 generates IDoc for payment (wire & ACH) exept checks. RFFOUS_C also does the same thing except that it doesn't generate the IDocs for checks.
    So what I'm trying to do is have a program that will work like RFFOEDI1 for checks i.e it will also generates IDocs for checks too.
    To be more clear, when the payment run program FII0 is ran, its gives a report of the payment and generates IDocs using the first program when its wire or ACH but when its checks, it uses the second program which doesn't generate checks.
    I was think if we can make a function module that will generates checks and call it in the RFFOUS_C. This is just a guess and i dont know if it will work.
    Please advice the best way to go about this and how.
    Thanks very much.

  • N81 map-like for 6120c

    is there an n82 map-like application for nokia 6120c? thanks and god bless!

    Nokia maps are yet not available for your phone.
    But, you can download Google Maps frm here m.google.com/maps (by typing this in your mobile browser).Application is quite good and also provides satellite view unlike nokia maps.
    Was this post of some help? Click 'Kudos' star on the right hand side of this post. Your gesture will be highly appreciated!

  • Unpivot task is generating rows for null inputs

    So I have a C# application (VS 2012 with .NET4.5) that builds SSIS (SQL2012) packages programatically.  the packages can be opened in the designer and they run fine.  However, there is one case that is giving me a problem.  I have an
    OleDb source connected to a table in SQL server.  I am using the unpivot task to convert columns in a sparse matrix to an Entity Attribute Value model.  So basically, the primary key value of the source table is a pass-through value in the unpivot
    task, each column is mapped to the destination column, and the attribute id is hard coded as the pivot key.  Like i said this works great EXCEPT i came across one column and a table that was null for all the rows in the table.  when I run the package,
    it fails with:
    OnError,SERVERNAME,DOMAIN\user,{94E83A3B-5386-4712-BEDC-11E35341675F},{94E83A3B-5386-4712-BEDC-11E35341675F},{3187347C-8D44-4D51-8FDB-B5C4159A58B0},9/14/2012 9:48:02 AM,9/14/2012 9:48:02 AM,-1071607780,0x,There was an error with OLE DB Destination.Inputs[OLE
    DB Destination Input].Columns[AttributeId] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value violated the integrity constraints for the column."
    So I set up a data viewer on the data flow and found that the unpivot component was generating rows for every null value. not only that, but the values for the key column and the attribute id (which was hard coded) were also null for all the rows
    sent from the unpivot to the ole db destination.  I manually created a package with an unpivot for just the column in question and got the same result.  then I inserted a value for every row in the table and the same package runs fine.
    can someone offer any help or advice on what might be causing this?

    its just two columns of data that are concerned.  ten character numeric strings in the one and null in the other.  the pivot key is hard coded in the unpivot component configuration screen.  see the output of the data viewer below. How do
    I get Microsoft involved with this?
    2013399057 NULL
    2013399488 NULL
    2013399770 NULL
    2013402244 NULL
    2013402440 NULL
    2013404066 NULL
    2013404070 NULL
    2013404203 NULL
    2013404206 NULL
    2013404401 NULL
    2013404589 NULL
    2013404705 NULL
    2013404738 NULL
    2013404768 NULL
    2013404784 NULL
    2013404813 NULL

  • Making a User Defined Function for Mapping in XI

    Hi folks..
    I knw how to make User defined Function in XI,
    i was wondering about can we have any room for making a function for Initializing Purpose, which intializes few fields in source Message to some Global variables, and later we can use these Global Variables to set the the Target field
    My Doubt is this...
    i have Source & target Structure like this Structure like this....
    SOURCE  TEST DATA IS... 
    Parentsrc                   
        child1src a              
        child2src b              
        child3src c                     
        child4src hi
        child4src hello
        child4src hey            
    (On the basis of instances of child4src the istance of the Parentdst will be generated)                                        
    TARGET DATA SHUD BE LIKE THIS....
    Parentdst                    
        child1dst a              
        child2dst b              
        child3dst c                     
        child4dst hi
    Parentdst                     
        child1dst a              
        child2dst b              
        child3dst c                     
        child4dst hello
    Parentdst                     
        child1dst a              
        child2dst b              
        child3dst c                     
        child4dst hey

    Hi
    You have to modify  your target structure:
    <b>Source</b>
    Parentsrc
    child1src a
    child2src b
    child3src c
    child4src hi
    child4src hello
    child4src hey
    <b>Target</b>
    <b>root</b>
    Parentdst
    child1dst a
    child2dst b
    child3dst c
    child4dst hi
    Parentdst
    child1dst a
    child2dst b
    child3dst c
    child4dst hello
    Parentdst
    child1dst a
    child2dst b
    child3dst c
    child4dst hey
    <b></root></b>
    Now map like this:
    child4src -
    Parentdst
    child1src--|
    child4src--| UseOneAsMany -- Splitbyvalue --- child1dst
    child4src--|
    child2src--|
    child4src--|UseOneAsMany --Splitbyvalue --- child2dst
    child4src--|
    child3src--|
    child4src--| UseOneAsMany -- Splitbyvalue --- child3dst
    child4src--|
    child4src -- SplitbyValue -- child4src.
    Regards
    Suraj

  • Wscompile only generates classes for the first wsdl:portType encountered

    Greetings.
    When
    compiling a WSDL with port types as follows below;
    classes are generated for port type: AccountsManagement only.
      <portType name="AccountsManagement">
          <operation name="CreateAccount" parameterOrder="Account">
              <input message="tns:CreateAccountReq"/> <!-- name defaults to CreateAccountReqRequest -->
              <output message="tns:CreateAccountReqResponse"/>
          </operation>
          <operation name="CreateAccountForPerson" parameterOrder="Account UniqueId">
              <input message="tns:CreateAccountForPersonReq"/>
              <output message="tns:CreateAccountForPersonReqResponse"/>
          </operation>
      </portType>
      <portType name="PersonsManagement">
          <operation name="AddPerson" parameterOrder="Person">
              <input message="tns:AddPersonReq" name="AddPersonReq"/>
              <output message="tns:AddPersonReqResponse" name="AddPersonReqResponse"/>
          </operation>
          <operation name="AddPersonWithAccount" parameterOrder="Person Account">
              <input message="tns:AddPersonWithAccountReq" name="AddPersonWithAccountReq"/>
              <output message="tns:AddPersonWithAccountReqResponse" name="AddPersonWithAccountReqResponse"/>
          </operation>
      </portType>
      <portType name="TellersOperations">
          <operation name="ListAccountsForPerson" parameterOrder="UniqueId">
              <input message="tns:ListAccountsForPersonReq"/>
              <output message="tns:ListAccountsForPersonReqResponse"/>
          </operation>
      </portType>Netbeans output:
    init:
    wscompile-init:
    Created dir: C:\PROJECTS\WSTest\build\generated\wsclient
    Created dir: C:\PROJECTS\WSTest\build\generated\wsservice
    Created dir: C:\PROJECTS\WSTest\build\generated\wsbinary
    TestBankingService_wscompile:
    command line: wscompile "C:\Program Files\Java\jdk1.5.0_03\jre\bin\java.exe" -classpath "C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\j2ee.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\saaj-api.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\saaj-impl.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\jaxrpc-api.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\jaxrpc-impl.jar" com.sun.xml.rpc.tools.wscompile.Main -d "C:\PROJECTS\WSTest\build\generated\wsbinary" -features:wsi,strict -import -keep -mapping "C:\PROJECTS\WSTest\web\WEB-INF\TestBankingService-mapping.xml" -nd "C:\PROJECTS\WSTest\build\web\WEB-INF\wsdl" -s "C:\PROJECTS\WSTest\src\java" -verbose -Xprintstacktrace "C:\PROJECTS\WSTest\src\java\bankers\server\TestBankingService-config.xml"
    [ServiceInterfaceGenerator: creating service interface: bankers.server.TestBankingService]
    [CustomClassGenerator: generating JavaClass for: Account]
    BUILD SUCCESSFUL (total time: 2 seconds)There should be a class for Person as well. If I move port type:
    PersonsManagement to the top no Account class will be generated, but
    instead the Person class will be generated.
    Loading up the WSDL in Netbeans (client) works and shows
    all three Ports with their respective operations.
    Is there a reason for only allowing more than one port type per WSDL?
    Checked the man page for switches to "loop" though all portTypes but noluck.
    A bug?
    Thanks,
    WSDL for reference
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="BankingService" targetNamespace="http://www.mycomp.org/schemas/MyWebService"
        xmlns:tns="http://www.mycomp.org/schemas/MyWebService"
        xmlns:ns1="urn:WS/types"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!-- Type definitions -->
      <types>
        <xsd:schema targetNamespace="urn:WS/types">
            <xsd:element name="Person" type="ns1:Person"/>
            <xsd:element name="Account" type="ns1:Account"/>
            <xsd:element name="ListOfAccounts" type="ns1:ListOfAccounts"/>
            <xsd:element name="ResultCode" type="xsd:unsignedInt"/>
            <xsd:element name="AccountNumber" type="xsd:string"/>
            <xsd:element name="UniqueId" type="xsd:string"/>
            <xsd:complexType name="Person">
                <xsd:sequence>
                    <xsd:element name="DisplayName" type="xsd:string"/>
                    <xsd:element name="UniqueId" type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:complexType name="Account">
                <xsd:sequence>
                    <xsd:element name="Number" type="xsd:string"/>
                    <xsd:element name="Type" type="xsd:token"/>
                    <xsd:element name="Amount" type="xsd:integer"/>
                </xsd:sequence>
            </xsd:complexType> 
          <xsd:complexType name="ListOfAccounts">
              <xsd:sequence>
                  <xsd:element name="Account" type="ns1:Account" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
          </xsd:complexType>
        </xsd:schema>
      </types>
      <message name="AddPersonReq">
          <part name="Person" element="ns1:Person"/>
      </message>
      <message name="AddPersonReqResponse">
          <part name="ResultCode" element="ns1:ResultCode"/>
      </message>
      <message name="AddPersonWithAccountReq">
          <part name="Person" element="ns1:Person"/>
          <part name="Account" element="ns1:Account"/>
      </message>
      <message name="AddPersonWithAccountReqResponse">
          <part name="AccountNumber" element="ns1:AccountNumber"/>
      </message>
      <message name="CreateAccountReq">
          <part name="Account" element="ns1:Account"/>
      </message>
      <message name="CreateAccountReqResponse">
          <part name="AccountNumber" element="ns1:AccountNumber"/>
      </message>
      <message name="CreateAccountForPersonReq">
          <part name="Account" element="ns1:Account"/>
          <part name="UniqueId" element="ns1:UniqueId"/>
      </message>
      <message name="CreateAccountForPersonReqResponse">
          <part name="AccountNumber" element="ns1:AccountNumber"/>
      </message>
      <message name="ListAccountsForPersonReq">
          <part name="UniqueId" element="ns1:UniqueId"/>
      </message>
      <message name="ListAccountsForPersonReqResponse">
          <part name="Accounts" element="ns1:ListOfAccounts"/>
      </message>
      <!--
            NOTE THAT wscompile WILL PICK THE FIRST AND ONLY FIRST portType
            IS THIS A BUG OR A FEATURE?
      -->
      <portType name="AccountsManagement">
          <operation name="CreateAccount" parameterOrder="Account">
              <input message="tns:CreateAccountReq"/> <!-- name defaults to CreateAccountReqRequest -->
              <output message="tns:CreateAccountReqResponse"/>
          </operation>
          <operation name="CreateAccountForPerson" parameterOrder="Account UniqueId">
              <input message="tns:CreateAccountForPersonReq"/>
              <output message="tns:CreateAccountForPersonReqResponse"/>
          </operation>
      </portType>
      <portType name="PersonsManagement">
          <operation name="AddPerson" parameterOrder="Person">
              <input message="tns:AddPersonReq" name="AddPersonReq"/>
              <output message="tns:AddPersonReqResponse" name="AddPersonReqResponse"/>
          </operation>
          <operation name="AddPersonWithAccount" parameterOrder="Person Account">
              <input message="tns:AddPersonWithAccountReq" name="AddPersonWithAccountReq"/>
              <output message="tns:AddPersonWithAccountReqResponse" name="AddPersonWithAccountReqResponse"/>
          </operation>
      </portType>
      <portType name="TellersOperations">
          <operation name="ListAccountsForPerson" parameterOrder="UniqueId">
              <input message="tns:ListAccountsForPersonReq"/>
              <output message="tns:ListAccountsForPersonReqResponse"/>
          </operation>
      </portType>
      <binding name="AccountsManagementBinding" type="tns:AccountsManagement">
          <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
          <operation name="CreateAccount">
              <soap:operation soapAction=""/>
              <input name="CreateAccountReq">
                  <soap:body use="literal"/>
              </input>
              <output name="CreateAccountReqResponse">
                  <soap:body use="literal"/>
              </output>
          </operation>
          <operation name="CreateAccountForPerson">
              <soap:operation soapAction=""/>
              <input name="CreateAccountForPersonReq">
                  <soap:body use="literal"/>
              </input>
              <output name="CreateAccountForPersonReqResponse">
                  <soap:body use="literal"/>
              </output>
          </operation>
      </binding>
      <binding name="PersonsManagementBinding" type="tns:PersonsManagement">
          <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
          <operation name="AddPerson">
              <soap:operation soapAction=""/>
              <input name="AddPersonReq">
                  <soap:body use="literal"/>
              </input>
              <output name="AddPersonReqResponse">
                  <soap:body use="literal"/>
              </output>
          </operation>
          <operation name="AddPersonWithAccount">
              <soap:operation soapAction=""/>
              <input name="AddPersonWithAccountReq">
                  <soap:body use="literal"/>
              </input>
              <output name="AddPersonWithAccountReqResponse">
                  <soap:body use="literal"/>
              </output>
          </operation>
      </binding>
      <binding name="TellersOperationsBinding" type="tns:TellersOperations">
          <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
          <operation name="ListAccountsForPerson">
              <soap:operation soapAction=""/>
              <input name="ListAccountsForPersonReq">
                  <soap:body use="literal"/>
              </input>
              <output name="ListAccountsForPersonReqResponse">
                  <soap:body use="literal"/>
              </output>
          </operation>
      </binding>
      <service name="BankingService">
          <port name="AccountsManagementService" binding="tns:AccountsManagementBinding">
              <soap:address location="__URL__"/>
          </port>
          <port name="PersonsManagementService" binding="tns:PersonsManagementBinding">
              <soap:address location="__URL__"/>
          </port>
          <port name="TellersOperationsService" binding="tns:TellersOperationsBinding">
              <soap:address location="__URL__"/>
          </port>
      </service>
    </definitions>

    I saw this post elsewhere:
    JAXRPC specification required support for only subset of schema types. Abstract schema type support was not required. For the schema types that are not supported, the spcification requires that they should be mapped to javax.xml.soap.SOAPElement.
    This is what jaxrpc wscompile tool does. At tool time, the type in the sample code posted is extended frm an abstract type so it should be getting mapped to SOAPElement. SOAPElement extends Node and Element. You may like to see its javadoc.
    -vivek.
    This is basically the behavior I am seeing, but I don't see this as being extended from an abstract type. if someone can see that and explain that to me I would appreciate it....if this is even the right path to the answer to my problem.

  • Error Message: Can not generate mask for the LMB peripherals

    I've added a bunch of  perhipherals to my microblaze project and used the Generate Addresses button.  I get the below error messges when I try to generate a net list. ERROR:EDK:3193 - issued from TCL procedure
       "::hw_lmb_bram_if_cntlr_v2_10_b::update_syslevel_mask" line 88
        C_MASK (IPNAME:lmb_bram_if_cntlr, INSTANCE:ilmb_cntlr) - Can not generate
       mask for the LMB peripherals! An address decode mask is assigned to all LMB
       peripherals connected to the MicroBlaze processor. The address decode mask is
       based on a set of decode bits that distinguish the LMB address space from the
       OPB/PLB address space. The error message indicates that a set of decode bits
       can not be found to generate a mask. Please modify the address map of the
       slaves connected to OPB/PLB to use a common address bit.
    ERROR:EDK:1585 - IPNAME:lmb_bram_if_cntlr INSTANCE:ilmb_cntlr -
       E:\Xilinx\11.1\EDK\hw\XilinxProcessorIPLib\pcores\lmb_bram_if_cntlr_v2_10_b\d
       ata\lmb_bram_if_cntlr_v2_1_0.mpd line 77 - error computing override value for
       C_MASK using tcl
    ERROR:EDK:3193 - issued from TCL procedure
       "::hw_lmb_bram_if_cntlr_v2_10_b::update_syslevel_mask" line 88
        C_MASK (IPNAME:lmb_bram_if_cntlr, INSTANCE:dlmb_cntlr) - Can not generate
       mask for the LMB peripherals! An address decode mask is assigned to all LMB
       peripherals connected to the MicroBlaze processor. The address decode mask is
       based on a set of decode bits that distinguish the LMB address space from the
       OPB/PLB address space. The error message indicates that a set of decode bits
       can not be found to generate a mask. Please modify the address map of the
       slaves connected to OPB/PLB to use a common address bit.
    ERROR:EDK:1585 - IPNAME:lmb_bram_if_cntlr INSTANCE:dlmb_cntlr -
       E:\Xilinx\11.1\EDK\hw\XilinxProcessorIPLib\pcores\lmb_bram_if_cntlr_v2_10_b\d
       ata\lmb_bram_if_cntlr_v2_1_0.mpd line 77 - error computing override value for
       C_MASK using tcl I understand its complaining about the mask values, but I'm not exactly sure why.  Here is the address map it shows:Address Map for Processor microblaze_0
      (0000000000-0x00003fff) dlmb_cntlr    dlmb
      (0000000000-0x00003fff) ilmb_cntlr    ilmb
      (0x81800000-0x8180ffff) xps_intc_0    mb_plb
      (0x81c00000-0x81c0ffff) xps_ll_temac_0    mb_plb
      (0x83400000-0x8340ffff) Generic_SPI    mb_plb
      (0x83c00000-0x83c0ffff) xps_timer_0    mb_plb
      (0x84000000-0x8400ffff) RS232    mb_plb
      (0x84400000-0x8440ffff) mdm_0    mb_plb
      (0x8c000000-0x8fffffff) mpmc_0    mb_plb
      (0xfffff000-0xffffffff) xps_gpio_0    mb_plb Any thoughts?  I was unable to find another instance of this error message.

    Version 11.3 I actually figured it out, its rather odd that the generate addresses button doesn't do this automatically. It appears that the mask was set to trigger use of the cache on a single bit.  0x00800000.  I had enough devices added where automatic address generation was using the most significant bit meaning that bit was falling within other address spaces. I changed it to 0xFFFFC000.  (Basically telling it to match addresses if all address signals above 16KB are zero).  I don't know if that is the proper way to do it, but it accepted it.  Now I'm fighting with some stuff regarding an FSL bus I added that apparently isn't quite properly setup, so I haven't found out yet if the processor likes that address mask.   But the tools appear to like it.

  • Ideas on generating seeds for random number generators?

    Does anyone here have any ideas or know of any good links to articles that discuss how to generate good seeds for random number generators?
    I am aware that I could always probably call SecureRandom.generateSeed as one technique.
    The major problem that I have with the above is that I have no idea how any given implementation of SecureRandom works, and whether or not it is any good. (For instance, Sun seems to hide their implementation outside of the normal JDK source tree; must be in one of their semi-proprietary sun packages...)
    I thought about the problem a little, and I -think- that the implementation below ought to be OK. The javadocs describe the requirements that I am looking for as well as the implementation. The only issue that still bugs me is that maybe the hash function that I use is not 1-1, and so may not guarantee uniqueness, so I would especially like feedback on that.
    Here's the code fragments:
         * A seed value generating function for Random should satisfy these goals:
         * <ol>
         *  <li>be unique per each call of this method</li>
         *  <li>be different each time the JVM is run</li>
         *  <li>be uniformly spread around the range of all possible long values</li>
         * </ol>
         * This method <i>attempts</i> to satisfy all of these goals:
         * <ol>
         *  <li>
         *          an internal serial id field is incremented upon each call, so each call is guaranteed a different value;
         *          this field determines the high order bits of the result
         *  </li>
         *  <li>
         *          each call uses the result of {@link System#nanoTime System.nanoTime}
         *          to determine the low order bits of the result,
         *          which should be different each time the JVM is run (assuming that the system time is different)
         *  </li>
         *  <li>a hash algorithm is applied to the above numbers before putting them into the high and low order parts of the result</li>
         * </ol>
         * <b>Warning:</b> the uniqueness goals cannot be guaranteed because the hash algorithm, while it is of high quality,
         * is not guaranteed to be a 1-1 function (i.e. 2 different input ints might get mapped to the same output int).
         public static long makeSeed() {
              long bitsHigh = ((long) HashUtil.enhance( ++serialNumber )) << 32;
              long bitsLow = HashUtil.hash( System.nanoTime() );
              return bitsHigh | bitsLow;
         }and, in a class called HashUtil:     
         * Does various bit level manipulations of h which should thoroughly scramble its bits,
         * which enhances its hash effectiveness, before returning it.
         * This method is needed if h is initially a poor quality hash.
         * A prime example: {@link Integer#hashCode Integer.hashCode} simply returns the int value,
         * which is an extremely bad hash.     
         public static final int enhance(int h) {
    // +++ the code below was taken from java.util.HashMap.hash
    // is this a published known algorithm?  is there a better one?  research...
              h += ~(h << 9);
              h ^=  (h >>> 14);
              h +=  (h << 4);
              h ^=  (h >>> 10);
              return h;
         /** Returns a high quality hash for the long arg l. */
         public static final int hash(long l) {
              return enhance(
                   (int) (l ^ (l >>> 32))     // the algorithm on this line is the same as that used in Long.hashCode
         }

    Correct me if I'm incorrect, but doesn't SecureRandom just access hardware sources entropy? Sources like /dev/random?What do you mean by hardware sources of entropy?
    What you really want is some physical source of noise, like voltage fluctuations across a diode, or Johnson noise, or certain radioactive decay processes; see, for example
         http://www.robertnz.net/true_rng.html
         http://ietfreport.isoc.org/idref/draft-eastlake-randomness2/
         this 2nd paper is terrific; see for example this section: http://ietfreport.isoc.org/idref/draft-eastlake-randomness2/#page-9
    But is /dev/random equivalent to the above? Of course, this totally depends on how it is implemented; the 2nd paper cited above gives some more discussion:
         http://ietfreport.isoc.org/idref/draft-eastlake-randomness2/#page-34
    I am not sure if using inputs like keyboard, mouse, and disk events is quite as secure as, say, using Johnson noise; if my skimming of that paper is correct, he concludes that you need as many different partially random sources as possible, and even then "A hardware based random source is still preferable" (p. 13). But he appears to say that you can still do pretty good with these these sources if you take care and do things like deskew them. For instance, the common linix implementation of /dev/random at least takes those events and does some sophisticated math and hashing to try to further scramble the bits, which is what I am trying to simulate with my hashing in my makeSeed method.
    I don't think Java can actually do any better than the time without using JNI. But I always like to be enlightened; is there a way for the JVM to generate some quality entropy?Well, the JVM probably cannot beat some "true" hardware device like diode noise, but maybe it can be as good as /dev/random: if /dev/random is relying on partially random events like keyboard, mouse, and disk events, maybe there are similar events inside the JVM that it could tap into.
    Obviously, if you have a gui, you can with java tap into the same mouse and keyboard events as /dev/random does.
    Garbage collection events would probably NOT be the best candidate, since they should be somewhat deterministic. (However, note that that paper cited above gives you techniques for taking even very low entropy sources and getting good randomness out of them; you just have to be very careful and know what you are doing.)
    Maybe one source of partial randomness is the thread scheduler. Imagine that have one or more threads sleep, and when they wake up put that precise time of wakeup as an input into an entropy pool similar to the /dev/random pool. Each thread would then be put back to sleep after waking up, where its sleep time would also be a random number drawn from the pool. Here, you are hoping that the precise time of thread wakeup is equivalent in its randomness to keyboard, mouse, and disk events.
    I wish that I had time to pursue this...

  • How to generate XML for following?

    Hello Everyone,
    I have following snippet of PLSQL code with for loops and record type arrays. Each loop can return separate number of rows and iterate that many times. For e.g. the for loop tab_rec may fetch 50 rows where as the for loop sql_rec may return 80 rows.
    I need to acoomodate all of these record arrays into a single xml file. Each for loop will repreesent one data set. Something like this.
    <dataset>
    <set value = tab_rec(kounter).tvalue >
    <set value = ?
    </dataset>
    Questions:
    1) How can I dynamically generate just one single XML file for all for loops metnioend below in this message?
    2) How can I dynamically generate tags for e.g. <set> tag above if I put XMLELEMENT() under a for loop kounter. To explain this in a better way consider pseudo code example below.
    for i in 1..kounter loop
    <dataset>
    <set value = tab_rec(i).tvalue >
    *<set value = *?*   -- How do i generate these <set> tags when tebrec(i).value will return many rows?*_
    </dataset>
    Thanks for reading this post. Again, the exmple for loops to generate one single XML file is given below.
    For loops in the issue are mentioned below
    FOR a IN tab_recc
    LOOP
    tab_rec (tab_kounter).tsegment := a.ebs_table;
    tab_rec (tab_kounter).tbytes := a.sizemb;
    tab_kounter := tab_kounter + 1;
    END LOOP;
    FOR b IN sql_recc
    LOOP
    sql_rec (sql_kounter).thash := b.hash_value;
    sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
    sql_kounter := sql_kounter + 1;
    END LOOP;
    FOR c IN sess_recc
    LOOP
    sess_rec (session_kounter).tsid := c.SID;
    sess_rec (session_kounter).tvalue := c.VALUE;
    session_kounter := session_kounter + 1;
    END LOOP;
    FOR d IN user_recc
    LOOP
    user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
    user_rec (dbuser_kounter).tuser := d.username;
    dbuser_kounter := dbuser_kounter + 1;
    END LOOP;
    FOR e IN ebs_user
    LOOP
    ebs_rec (ebs_kounter).tuser := e.user_name;
    ebs_rec (ebs_kounter).ttime := e.rtime;
    ebs_kounter := ebs_kounter + 1;
    END LOOP;

    Sorry for delay in response.
    I have pasted the complete code that will show the relation ship between data and XML. What I am trying to do here is to prepare smal packets of XML through XML element and then roll it up to a final grand CLOB variable. and pass that through XML creation. I have used DBMS_JAVA package to append clobs.
    The issue now I am running into, it generates JUNK in xml. pure junk and nothing else Thanks R,
    FOR a IN tab_recc
    LOOP
    tab_rec (tab_kounter).tsegment := a.ebs_table;
    tab_rec (tab_kounter).tbytes := a.sizemb;
    tab_kounter := tab_kounter + 1;
    END LOOP;
    FOR b IN sql_recc
    LOOP
    sql_rec (sql_kounter).thash := b.hash_value;
    sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
    sql_kounter := sql_kounter + 1;
    END LOOP;
    FOR c IN sess_recc
    LOOP
    sess_rec (session_kounter).tsid := c.SID;
    sess_rec (session_kounter).tvalue := c.VALUE;
    session_kounter := session_kounter + 1;
    END LOOP;
    FOR d IN user_recc
    LOOP
    user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
    user_rec (dbuser_kounter).tuser := d.username;
    dbuser_kounter := dbuser_kounter + 1;
    END LOOP;
    FOR e IN ebs_user
    LOOP
    ebs_rec (ebs_kounter).tuser := e.user_name;
    ebs_rec (ebs_kounter).ttime := e.rtime;
    ebs_kounter := ebs_kounter + 1;
    END LOOP;
    FOR aa IN 1 .. tab_kounter
    LOOP
    if aa = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id1 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (aa AS "Id",
    tab_rec (aa).tsegment AS "value"
    ).getclobval ()
    INTO tablob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR bb IN 1 .. sql_kounter
    LOOP
    if bb = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id2 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (bb AS "Id",
    sql_rec (bb).thash AS "value"
    ).getclobval ()
    INTO sqlob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR cc IN 1 .. session_kounter
    LOOP
    if cc= 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id3 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (cc AS "Id",
    sess_rec (cc).tsid AS "value"
    ).getclobval ()
    INTO sesslob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR dd IN 1 .. dbuser_kounter
    LOOP
    if dd = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id4 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (dd AS "Id",
    user_rec (dd).tuser AS "value"
    ).getclobval ()
    INTO dbulob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR ee IN 1 .. ebs_kounter
    LOOP
    if ee = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id5 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (ee AS "Id",
    ebs_rec (ee).tuser AS "value"
    ).getclobval ()
    INTO ebslob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    SELECT XMLELEMENT
    ("Chart",
    xmlattributes (v_caption AS "caption",
    v_subcaption AS "shownames",
    v_xaxisname AS "showvalues",
    v_yaxisname AS "decimals"
    XMLELEMENT ("categories",
    XMLELEMENT ("category",
    xmlattributes (v_label1 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label2 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label3 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label4 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label5 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label6 AS "label")
    tablob, --clob type
    sqlob, --clob type
    sesslob, --clob type
    dbulob, --clob type
    ebslob --clob type
    ).getclobval ()
    INTO v_top50 --clob type
    FROM DUAL;
    DBMS_LOB.append (v_xmlmessage, v_top50); --both are clob type
    v_filename := 'Top50.xml';
    writexml (p_dir_path => v_dir_path,
    p_filename => v_filename,
    p_xml => v_xmlmessage
    );

  • Problem generating stubs for Java EJB web service deployed in OAS

    I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error:
    org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs.
    Example:
         public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException;
    public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects     In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above.
    I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem.
    If anyone can help me, it would be greatly appreciated. Thanks!

    Crossposted:
    Problem generating stubs for Java EJB web service deployed in OAS

  • What are the best approaches for mapping re-start in OWB?

    What are the best approaches for mapping re-start in OWB?
    We are using OWB repository 10.2.0.1.0 and OWB client 10.2.0.1.31. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux.
    We have number of mappings. We built process flows for mappings as well.
    I like to know, what are the best approches to incorportate re-start options in our process. ie a failure of mapping in process flow.
    How do we re-cycle failed rows?
    Are there any builtin features/best approaches in OWB to implement the above?
    Does runtime audit tables help us to build re-start process?
    If not, do we need to maintain our own tables (custom) to maintain such data?
    How did our forum members handled above situations?
    Any idea ?
    Thanks in advance.
    RI

    Hi RI,
    How many mappings (range) do you have in a process flows?Several hundreds (100-300 mappings).
    If we have three mappings (eg m1, m2, m3) in process flow. What will happen if m2 fails?Suppose mappings connected sequentially (m1 -> m2 -> m3). When m2 fails then processflow is suspended (transition to m3 will not be performed). You should obviate cause of error (modify mapping and redeploy, correct data, etc) and then repeat m2 mapping execution from Workflow monitor - open diagram with processflow, select mapping m2 and click button Expedite, choose option Repeat.
    In re-start, will it run m1 again and m2 son on, or will it re-start at row1 of m2?You can specify restart point. "at row1 of m2" - I don't understand what you mean (all mappings run in Set based mode, so in case of error all table updates will rollback,
    but there are several exception - for example multiple target tables in mapping without corelated commit, or error in post-mapping - you must carefully analyze results of error).
    What will happen if m3 fails?Process is suspended and you can restart execution from m3.
    By having without failover and with max.number of errors=0, you achieve re-cycle failed rows to zero (0).This settings guarantee existence only two return result of mapping - SUCCSES or ERROR.
    What is the impact, if we have large volume of data?In my opinion for large volume Set based mode is the prefered processing mode of data processing.
    With this mode you have full range enterprise features of Oracle database - parallel query, parallel DML, nologging, etc.
    Oleg

  • Help on generating token for opendoc url in XI3.1

    Hi Guys,
    I am trying to get some help in generating token for opendoc url to avoid login while trying to access a report in Infoview.
    From a previous post I got this code:
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.occa.security.*" %>
    <%
    boolean loginSuccessful = false;
    IEnterpriseSession boEnterpriseSession = null;
    String username = "Administrator";
    String password = "pwd";
    String cmsname = "CMS";
    String authenticationType = "secEnterprise";
    try {
    //Log in.
    boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsname, authenticationType);
    if (boEnterpriseSession == null) {
    out.print("Unable to login.");
    } else {
    loginSuccessful = true;
    } catch (SDKException sdkEx) {
    out.print("ERROR ENCOUNTERED
    " + sdkEx + "");
    if (loginSuccessful) {
    ILogonTokenMgr boLogonTokenMgr = boEnterpriseSession.getLogonTokenMgr();
    String logonToken = boLogonTokenMgr.createLogonToken("", 60, 1);
    String infoViewURL = null;
    String tokenParam = null;
    String redirectURL = null;
    infoViewURL = "http://server:8080/InfoViewApp/logon.jsp";
    tokenParam = "ivsLogonToken=" + logonToken;
    redirectURL = infoViewURL + "&" + tokenParam;
    response.sendRedirect(redirectURL);
    %>
    The problem is I don't know where to put this code in the opendoc.jsp file.
    I tried to create a custom OpenDoc.jsp with a above code, leaving the original opendoc.jsp as it is. And used this custom jsp file in the opendoc url. This is taking me to Infoview login page and I see taht a token is created at the end of the url but it is not passed.
    Can somebody help me to understand where exactly to put this code in the opendoc.jsp and any correction to this code or additional steps to get it working.
    Any help is greatly appreciated

    Stratos,
      Thanks for your inputs,
      I changed the code as you suggested , now my whole code looks like :
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.occa.security.*" %>
    <%
    boolean loginSuccessful = false;
    IEnterpriseSession boEnterpriseSession = null;
    String username = "user";
    String password = "Password";
    String cmsname  = "Server";
    String authenticationType = "secEnterprise";
    try {
       //Log in.
       boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsname, authenticationType);
       if (boEnterpriseSession == null) {
          out.print("<FONT COLOR=RED><B>Unable to login.</B></FONT>");
       } else {
          loginSuccessful = true;
    } catch (SDKException sdkEx) {
       out.print("<FONT COLOR=RED><B>ERROR ENCOUNTERED</B><BR>" + sdkEx + "</FONT>");
    if (loginSuccessful) {
       ILogonTokenMgr boLogonTokenMgr = boEnterpriseSession.getLogonTokenMgr();
         String logonToken = boLogonTokenMgr.createLogonToken("", 60, 1);
         //String logonToken = boLogonTokenMgr.getDefaultToken();
       String infoViewURL = null;
       String tokenParam = null;
       String redirectURL = null;
       infoViewURL = "http://Server:8080/InfoViewApp/logon.jsp";
       tokenParam = "ivsLogonToken=" + logonToken;
       redirectURL = infoViewURL + "&" + tokenParam;
       pageContext.forward( "openDocument.jsp?iDocID=" + 4668 + "&token=" + tokenParam);
    %>
    But I am still getting the Infoview Login Page . The url on the login page is
    http://server:8080/OpenDocument/opendoc/logonTrustedAuth.do?appKind=InfoView&iDocID=4668&isApplication=true&token=ivsLogonToken%server%3A6400%4021181JIipxt70VM0kd90v21179JFd4dHn7kW2FKSBi
    We can see that a token is being generated and appended to this url but it is not passing the user name and password.
    Please let me know what you think about this.

  • How to generate alert from Mapping

    Hello,
    I know how to generate alrets by configuring ALRTCATDEF, Alert Configuration.
    I want to know how we can generate alert from mapping for ex..
    If a=b then send the message
    and if a!=b then failed the message and throw and alert.
    In java or XSLT mapping
    Thnaks and Regards
    Hemant

    Hi Hemanth,
    Bhavesh Blog explied to raise alert using UDF,if you want using JAVA or XSLT converth the same code in to JAVA Map,I think it will work.
    I had done similar requirement using Mial adapter using Java Mapping.
    Regards,
    Raj

  • Programmatically generate password for pdf with data from database

    Good day everyone,
      I would like to know is it possible to programmatically generate passwords for pdf??
    The main idea is to enable an automated process of pdf acquiring individualised password from a database (Excel, Access, you name it) and finally sending the pdf to individual recipient. Can I use javascript for this? And if yes, how?? If not, pls do advice me on the appropriate steps.
    Background (for clarity's sake): 
      Currently I am working on developing an automated process for the sending customised, password encrypted payslip to about 80 staff. The entire procedure is pretty much summarized as below:
    mail merg (UBS output in) excel to words -> convert words to pdf -> programmatically password encrypt the pdf -> email to individual recipients.
    Well my current status is - I am quite done with the batch mail merge and convertion part. And batch proccessing of password encryption is not a problem, but the idea is to allow acrobat to retrieve password automatically from a database and not key-in each and every password manually. The batch email for now is another problem but for now I have to work stepwise. (Any ideas on how to do it would equally be valued though! =D)
    System and software using:
    Windows  XP and 7 Professional
    Microsoft Office Proffesional 2010
    Adobe Acrobat X Pro
    I would be really grateful for any relevant replies to my question and any additional thoughts or ideas are welcome!!
    I would to thank any potential saviour in advance!
    Thank you for helping!

    Basically I need to automate the password generation from database extract
    e.g. Excel database with StaffID, StaffName, PayMonth, etc. Then when the pdf is created, its password would be <StaffID>_<PayMonth> which is extracted from excel.
    Is it possible for this to happen?? I dont mine using Javascript, I'll just have to learn it.
    Or how about recommending a program which does that??
    Whichever is fine as long there's a solution!
    Thanks!

  • TS3391 iMovie 11 is not working. I try to open it and it says it is generating thumbnails for one of my previous projects. All the commands are gray. I have to force it to quit. I just want to capture clips to start a new project.

    iMovie 11 is not working. I try to open it and it says it is generating thumbnails for one of my previous projects. All the commands are gray. I have to force it to quit. I just want to capture clips to start a new project. I googled the problem and there were discussions about deleting files in various folders and renaming clip extensions. I don't like the solutions I saw there and I am not sure they will work.

    Nobody replied so I called Apple. They seemed to think they could fix the problem but I had to agree to pay about $20 first. I told them to put it down as a complaint. I only want to use the software I bought. I can't see that it is my fault it is malfunctioning. I guess I will have to pay. It doesn't seem right.

Maybe you are looking for

  • My Motion 2 is telling me that the application quit unexpectedly

    I'm sure it has been brought up before, but I don't see many people here with MOtion 2 and I wonder if that will make a difference. Here is my situation: I had a new hard drive installed on my MacBook Pro. When I went to log into the computer it didn

  • CRM ORg Modle Replication

    Dear Friends, Can any1 give me clarrification please?? Do we have to make some settings to be able to replicate Org model?? I see some customising steps bleow but i don get why and when they have to be used.... Enhanced Back end Integration version o

  • Autocomplete Ajax values

    The Ajax auto-complete component showed client side error messages for certain auto complete values returned. I noticed that the error message was caused by return values that had angle brackets in it. Removing the angle brackets in the retun values

  • Deploy, IIOP connection, Unable to connect to Oracle 8i using IIOP

    Hi, I have a working JDBC connection to my Oracle 8i Enterprise DB server but when i try to establish a IIOP connection to the same server i get the following error message: "Can4t find resource for bundle oracle.aurora.jndi.sess_iiop.Messages, key U

  • How to make an onKeyPressed function work

    Hi, i have some problems with making the onkeyPressed function work. Somehow when i run it, it complains about "'static' is no longer supported. It will be removed from the language soon. Use script-level declarations for Right ". So i need to get ar