Use DB Sequence/Trigger with Java types

The documentation(Fusion Dev Guide 4.10.10) covers using triggers to assign DB primary keys. This does not seem to apply when using java types.
I have a create button on a master level page which should take the user to a detail level page to fill in the item properties.
How can I use the DBSequence type with java typed variables?

This chapter tess you that you can use the trigger assigned PK only for the db sequence type.
Still you can use a db sequence to get a unique number and assign it (after converting it to the right type) to a java type. This you have to do yourself.
this is the javadoc for the class [http://download.oracle.com/docs/cd/E15051_01/apirefs.1111/e10653/oracle/jbo/client/remote/SequenceImpl.html|http://download.oracle.com/docs/cd/E15051_01/apirefs.1111/e10653/oracle/jbo/client/remote/SequenceImpl.html]
Timo

Similar Messages

  • XSLFO Sequence pages with java

    Hi all,
    I have a query regarding the programming of xsl fo sequence pages using java swings.
    I have programmed fo master pages using swings but now i am not able to understand the logic beind the sequence pages with java swings.
    My problem is how can i program fo sequence pages with Swings technology....
    Any Help is greatly appreciated.........
    Looking forwrd for your reply.........
    Thanks in advance,
    Karthik.

    I found the reason, although not the solution.
    My account is not an administrator's account.
    When I log in with an administrator's account, Java works again.

  • Using GAP math software with Java 1.4, possible?

    Hello all,
    i work at a tech university and a Prof. has the following question:
    Some of his students want to use a free math software package called GAP with their diploma work. Question is: Can they use the GAP package with Java 1.4 Math Class and how does one interact between using GAP and Java 1.4?
    If anyone can help, i would be much obliged.
    Thank you.
    Raymund

    There does not seem to be any such capability, based on the articles in the GAP forum. You might want to look at this article which mentions a means of using Maple and GAP from Java programs.
    http://www.gap-system.org/~gap/Forum/Solomon.1/Andrew.1/JavaMath.1/1.html
    Chuck

  • Configure CRS2008 to using AD and Kerberos with Java application servers.

    Hi All,
    I have configure CRS2008 to using AD and Kerberos with Java application servers. Domain Controller is installed on W2K3 Server. In addition, CRS2008 is installed on another W2k3 Server.
    I have create service account in domain controller: CMSACC
    I have create two user account: CRuser1 and CRuser2
    I have create domain group: CRSGroup
    After I had run the setspn in domain controller,I got the message at below:
    Registered ServicePrincipalNames for CN=CMSACC, OU=TEST, DC=BD, DC=com:
        BOBJCentralMS/BDMGTSRV.BD.com
    CMC Setting:
    AD Administration Name: BD\administrator
    Default AD Domain: BD.com
    Add AD Group(Domain\Group): secWinAD:CN=CRSGroup,OU=TEST,D=BD,DC=com
    Service principal name:BOBJCentralMS/CMSACCatBD.com
    I have create a WINNT folder in root directory.Moreover and save bcsLognin.conf and Krb5.ini at here.
    bscLogin.conf:
    com.businessobjects.security.jgss.initiate {
    com.sun.security.auth.module.Krb5LoginModule required;
    krb5.ini:
    [libdefaults]
    default_realm = BD.com
    dns_lookup_kdc = true
    dns_lookup_realm = true
    [realms]
    forwardable = true
    BD.com = {
    default_domain = BD.com
    kdc = BDMGTSRV.BD.com
    I have tested the Kerberos,using kinit CMSACCatBD.com password, and got error message at below:
    Exception: krb_error 41 Message stream modified (41) Message stream modified
    KrbException: Message stream modified (41)
            at sun.security.krb5.KrbKdcRep.check(KrbKdcRep.java:53)
            at sun.security.krb5.KrbAsRep.<init>(KrbAsRep.java:96)
            at sun.security.krb5.KrbAsRep.getReply(KrbAsRep.java:486)
         at sun.security.krb5.KrbAsRep.getReply(KrbAsRep.java:444)
         at sun.security.krb5.internal.tools.Kinit.sendASRequest(Kinit.java:310)
         at sun.security.krb5.internal.tools.Kinit.<init>(Kinit.java:259)
         at sun.security.krb5.internal.tools.Kinit.main(Kinit.java:106)
    My problem is failed to logon CMC and infoview and got error message at below:
    Account Information Not Recognized: Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserNameatDNS_DomainName, and then try again.
    Actually, I am sucessful to logon Business View manager with CRuser1. However, I fail to logon CMC and infoview and got the above error. Have you any suggestion to solve this problem?
    Ken.

    if you can logon with client tools then that should be an indication that the service account running the CMS IS working! Good news.
    So the problem is likely with the java portion (krb5/bsclogin or java options)
    If the files are in c:\winnt\ (if not copy them there) and perform c:\program files\business objects\javasdk\bin\kinit username
    then enter and password/enter again
    Probably get the same message. To note in your krb5.ini all domain info must be in CAPS (the .com appears to be in lower case)
    kinit works with just the krb5.ini, java SDK and AD (removing BO config and the service account from the picture). Once that works if your java options are specified properly you should be able to login to CMC/infoview.
    also 1 last point. Add udp_preference_limit = 1 to the krb5 lib defaults section
    libdefaults
    default_realm = BD.com
    dns_lookup_kdc = true
    dns_lookup_realm = true
    udp_preference_limit = 1
    Regards,
    Tim

  • Is it possible to start a PCI4472 and a PCI-MIO-16E-1 simultaneously using an analog trigger (with pre-trigger)?

    I would like to start several PCI 4472 and a PCI-MIO-16E-1 simultaneously. All boards are connected via a RTSI cable.
    My program works fine if I use software trigger, or an analog trigger from a PCI4472 channel. However, the analog trigger works only when I set pre-trigger (or pre-scan) to 0.
    Is it possible to start a PCI4472 and a PCI-MIO-16E-1 simultaneously using an analog trigger (with pre-trigger)?
    Thanks.
    Ian Ren

    Hi, Bill
    I think it is possible to set more than 38 pre-trigger scans on a single 4472 card. I've done this before. You can verify this by running the Labview example "Acquire N - Multi-Analog Hardware Trig.vi" which comes with LabView.
    What I try to do but without success/luck so far is to start data acquisitions of several 4472 cards and a PCI-MIO-16E-1 card using an anlog trigger (with pre-trigger).
    Thanks for your help.
    Ian

  • Can  i use SLE4428 smart card with java card developmentkit 2.1.2

    Can i use SLE4428 smart card with java card developmentkit 2.1.2
    plz reply

    No. SLE4428 is memory card and not Java Card.

  • Using SQL reporting services with java

    how can i use Microsoft SQL Server reporting services with java? The idea is that we create the reports using Microsoft SQL Server reporting services. Then we have our web application where user will select one of those report, pass 0 or more arguments and then we will show the report.

    nobody is using Microsoft SQL Server reporting
    services with java?Found this in 0.01 seconds with Google http://www.javaworld.com/javaworld/jw-01-2005/jw-0110-sqlrs.html
    Handy tool that Google.

  • How to use the Rc4DLL.dll with java (jre1.4 )

    I am not able to use Rc4DLL.dll with java, there are some characters (encrypted using Rc4DLL.dll) that java is not able to identify. So while decrypting in java using Rc4DLL I am not getting the desired output (as some character java tries to decrypt are not supported with java). Could some one give a solution of using Rc4DLL with java jre 1.4

    RC4 cipher is supported by 1.4.
    And surely you can turn a link to the 1.5.0 JCE Reference Guide into a link to the 1.4.2 Reference Guide? I did. Took me 5 seconds to check that. As opposed to wasting a day and a half in forums like you just did.

  • How to use a progress bar with java mail?

    Hi, i'm new here.
    I want if someone can recommend me how to show a progress bar with java mail.
    Because, i send a message but the screen freeze, and the progress bar never appear, after the send progress finish.
    Thanks

    So why would the code we post be any different than the code in the tutorial? Why do you think our code would be easier to understand? The tutorial contains explanations about the code.
    Did you download the code and execute it? Did it work? Then customize the code to suit your situation. We can't give you the code because we don't know exactly what you are attempting to do. We don't know how you have changed to demo code so that it no longer works. Its up to you to compare your code with the demo code to see what the difference is.

  • SOA 11g DBAdapter Polling using a Sequencing Table with a DATE Field

    Hi.
    I have implemented a polling solution using a sequencing table that references a DATE column. For the most part the poll works correctly, but on occasion, I am not seeing a BPEL process instantiation for various records that get created in my source table.I have also noticed that in this particular case, the DATE field content on one or more source records is exactly the same --> "YYYYMMDDhhmmss".
    I just want to confirm here, that the polling adapter should be able to pick up multiple records from the source table, even though the date field is exactly the same. As well, how should I go about trying to debug this issue, if point #1 is handled by the system. Is there is a specific log or trace file that I can look at. Also, could I be facing a timing issue ?
    Can someone please comment on this.
    Thanks.

    In my table, I don't see a primary key, but only a unique index. I would assume then, that this would be analogous to the primary key capture; noticed that currently this code was only using one column out of two, from the unique index itself.
    Also, is the date content issue that I mentioned above a moot point then, based upon not having the correct primary key/unique key data pointers established ?
    Thanks.

  • Using PL/SQL Function with CLOB types and a Java Source

    Hi people.
    I have some problems trying to use a function in pl/sql with a CLOB parameter to a java source function.
    Here is the problem: I have to read a TXT file and return a CLOB with the data of the file. The reading is done with a java source function.
    The problem is how to read the file without messing the content and return it to the pl/sql function?
    Another problem: If I pass a CLOB as a parameter to a pl/sql function and have to write the content to a file, how to do it without screwing the EOL chars and so?
    My code is:
    /******** PLSQL FUNCTIONS ********/
    function fn_gravaconteudoarquivo( pv_caminho in varchar2
    , pv_nomearquivo in varchar2
    , pc_conteudo in clob ) return varchar2 as language java
    name 'Importacao.gravaConteudoArquivo(java.lang.String, java.lang.String, oracle.sql.CLOB) return varchar2';
    function fn_lerconteudoarquivoclob( pv_caminho in varchar2
    , pv_nomearquivo in varchar2 ) return clob as language java
    name 'Importacao.lerArquivoClob(java.lang.String, java.lang.String) return clob';
    /******** JAVA SOURCE FUNCTIONS *********/
    public static String gravaConteudoArquivo(String caminho, String nomeArquivo, CLOB conteudo) {
    File file = new File(caminho, nomeArquivo);
    PrintWriter pwFile;
    String mensagem = "";
    StringBuffer sb = new StringBuffer();
    try {
    pwFile = new PrintWriter(new BufferedWriter(new FileWriter(file,true)));
    for (int i=0;i<=(conteudo.length()/32000);i++) {
    sb.append(conteudo.getSubString(conteudo.getLength()+1,32000));
    pwFile.println(sb.substring(0));
    pwFile.close();
    } catch (Exception ex) {
    mensagem = "Erro: "+ex;
    return mensagem;
    public static CLOB lerArquivoClob(String caminho, String nomeArquivo) throws SQLException {
    File file = new File(caminho, nomeArquivo);
    Connection conn;
    CLOB clob = null;
    String lineSep = System.getProperty("line.separator");
    StringBuffer sb = new StringBuffer();
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:csdesv", "csestoque", "liberada");
    clob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
    BufferedReader brFile = new BufferedReader(new FileReader(file.getPath()));
    while (brFile.ready()) {
    sb.append(brFile.readLine());
    sb.append(lineSep);
    clob.open(CLOB.MODE_READWRITE);
    clob.setString(clob.getLength()+1, sb.toString());
    clob.close();
    } catch (Exception ex) {
    ex.printStackTrace();
    return clob;
    Ah, just remembered... This will work as a JOB.... >.< ... So the connection aparently is at localhost.
    Thanks.

    No one? I really need this....

  • Problems using JavaMail and activation with Java 1.6

    Hi,
    I have developed an application with a SOAP architecture using Axis. Everything worked fine until I upgrade the JRE version from 1.5 to 1.6. Since then a "javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related; type="text/xml" " exception is thrown every time I try to connect to the webservices.
    Debugging the code I've found that the problem is a null value in the "dch" attribute of the ObjectDataContentHandler object returned by the getInputStream method in the DataHandler class.
    When I launch the application using JRE 1.5 this attribute value is "text_plain" and everthing woks ok but when I launch it with JRE 1.6 the attribute has a wonderful "null" value...
    Anybody knows what could be the reason for that "null" value?
    I've looking for this problem in diferent forums and I believe that could be some kind of incompatibility between the activation version provided with the JRE 1.6 and the JavaMail 1.4 version but I'm not sure.
    Thanks in advance!

    My application also stopped working and sadly is a production application (is in a production environment and production depends heavily on it since it contains Standard Operation Procedures documents).
    I've tried so far uninstalling jre 1.6 from server, opening the jnlp with jre 1.5.13 and nothing yet. the curious thing is that the jre 1.6 update took place some time ago and today I'm getting the error. Not sure i the server went down recently which might explain some of it.
    Here's my error:
    java.lang.reflect.InvocationTargetException
            at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at org.apache.axis.Message.setup(Message.java:352)
            at org.apache.axis.Message.<init>(Message.java:235)
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:779)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
            at org.apache.axis.client.Call.invoke(Call.java:2767)
            at org.apache.axis.client.Call.invoke(Call.java:2443)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at com.bluecubs.xinco.client.XincoExplorer.doDataWizard(XincoExplorer.java:2788)
            at com.bluecubs.xinco.client.XincoExplorer$8.mousePressed(XincoExplorer.java:1437)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
            at java.awt.Component.processMouseEvent(Component.java:6035)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
            at java.awt.Component.processEvent(Component.java:5803)
            at java.awt.Container.processEvent(Container.java:2058)
            at java.awt.Component.dispatchEventImpl(Component.java:4410)
            at java.awt.Container.dispatchEventImpl(Container.java:2116)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
            at java.awt.Container.dispatchEventImpl(Container.java:2102)
            at java.awt.Window.dispatchEventImpl(Window.java:2429)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: Error reading data stream:  Error in MIME data stream, start boundary not found, expected:  ------=_Part_5_13931643.1192823865125
            at org.apache.axis.attachments.MultiPartRelatedInputStream.<init>(MultiPartRelatedInputStream.java:339)
            at org.apache.axis.attachments.AttachmentsImpl.<init>(AttachmentsImpl.java:119)
            ... 39 more
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.RuntimeException
    faultActor:
    faultNode:
    faultDetail:
            {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException
            at org.apache.axis.Message.setup(Message.java:361)
            at org.apache.axis.Message.<init>(Message.java:235)
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:779)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
            at org.apache.axis.client.Call.invoke(Call.java:2767)
            at org.apache.axis.client.Call.invoke(Call.java:2443)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at com.bluecubs.xinco.client.XincoExplorer.doDataWizard(XincoExplorer.java:2788)
            at com.bluecubs.xinco.client.XincoExplorer$8.mousePressed(XincoExplorer.java:1437)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
            at java.awt.Component.processMouseEvent(Component.java:6035)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
            at java.awt.Component.processEvent(Component.java:5803)
            at java.awt.Container.processEvent(Container.java:2058)
            at java.awt.Component.dispatchEventImpl(Component.java:4410)
            at java.awt.Container.dispatchEventImpl(Container.java:2116)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
            at java.awt.Container.dispatchEventImpl(Container.java:2102)
            at java.awt.Window.dispatchEventImpl(Window.java:2429)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
            {http://xml.apache.org/axis/}hostname:PRAII1371900
    java.lang.RuntimeException
            at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
            at org.apache.axis.client.Call.invoke(Call.java:2767)
            at org.apache.axis.client.Call.invoke(Call.java:2443)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at com.bluecubs.xinco.client.XincoExplorer.doDataWizard(XincoExplorer.java:2788)
            at com.bluecubs.xinco.client.XincoExplorer$8.mousePressed(XincoExplorer.java:1437)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
            at java.awt.Component.processMouseEvent(Component.java:6035)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
            at java.awt.Component.processEvent(Component.java:5803)
            at java.awt.Container.processEvent(Container.java:2058)
            at java.awt.Component.dispatchEventImpl(Component.java:4410)
            at java.awt.Container.dispatchEventImpl(Container.java:2116)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
            at java.awt.Container.dispatchEventImpl(Container.java:2102)
            at java.awt.Window.dispatchEventImpl(Window.java:2429)
            at java.awt.Component.dispatchEvent(Component.java:4240)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: java.lang.RuntimeException
            at org.apache.axis.Message.setup(Message.java:361)
            at org.apache.axis.Message.<init>(Message.java:235)
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:779)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            ... 32 moreAnd the related code:
    Message m = null;
                                MessageContext mc = null;
                                AttachmentPart ap = null;
                                Call call = (Call)xincoClientSession.xinco_service.createCall();
                                call.setTargetEndpointAddress(new URL(xincoClientSession.service_endpoint));
                                call.setOperationName(new QName("urn:Xinco", "downloadXincoCoreData"));
                                Object[] objp = new Object[2];
                                objp[0] = (XincoCoreData)newnode.getUserObject();
                                objp[1] = xincoClientSession.user;
                                //tell server to send file as attachment
                                //(keep backward compatibility to earlier versions)
                                ap = new AttachmentPart();
                                ap.setContent(new String("SAAJ"), "text/string");
                                call.addAttachmentPart(ap);
                                //invoke actual call
                                byte_array = (byte[])call.invoke(objp);
                                //get file from SOAP message or byte array
                                mc = call.getMessageContext();
                                m = mc.getResponseMessage();
                                if (m.getAttachments().hasNext()) {
                                    ap = (AttachmentPart)m.getAttachments().next();
                                    in = (InputStream)ap.getContent();
                                } else {
                                    in = new ByteArrayInputStream(byte_array);
                                }The stack trace point the error to the line:
    *byte_array = (byte[])call.invoke(objp);*
    Edited by: javydreamercsw on Oct 19, 2007 1:08 PM

  • Is using Excel through Automation with Java possible ?

    Hi, I'm currently a Visual Basic developper thinking of moving to a java based RAD technology.
    For a couple projects, I need to generate Excel Spreadsheets and present them to the user. I usually do this in VB by using the COM object provided by Excel, instancing it and using the Range([cellname]).value property to write data in the sheet.
    Is their any way to do a similar thing in Java, or does this level of comfort come solely by using a Microsoft developpement product (thus more integrated with office) ?
    Thanks in advance.

    1. Writing java functions in MS Visual J++ 6.0, instead of in MS VB, and then compiling as a COM function has been the only way I've been able to mix the convenience of spreadsheet IO (alas, still in Excel) with the powerful functions we can write in Java.
    2. It's ironic java programmers must still build IO interfaces in their IDEs every time they want to write & use a new java function, while MS has made user-written VB functions available to all Excel users (even to MS Word users). Last time I looked, the Star Office speadsheet only allows writing functions in ersatz VB (Sun Basic) instead of in Java.
    3. To Sun: Please make java available to the masses by giving us a spreadsheet that runs user-written java functions. The spreadsheet is the most powerful programming paradigm around. Remember when Lotus made a zillion $? You can make more money from Gates's vision than by imitating his products.
    - Bill Ellis [email protected]

  • Using XML sequence Tag with updatexml() errors when called as function?

    Hello,
    I'm having a very difficult time with this error. I was hoping someone could shed some light onto why this is happening. It is 100% reproducible on my end. When I run the problematic code, I am given a "ORA-03113: end-of-file on communication channel" which is actually due to
    "ORA-07445: exception encountered: core dump [kolasaRead()+66] [SIGSEGV] [ADDR:0x64] [PC:0x2250968] [Address not mapped to object] []"
    Set up scripts:*
    CREATE TABLE test (id   NUMBER
                            ,xml  XMLTYPE);
    CREATE OR REPLACE FUNCTION test_replace_metadata(p_metadata                 IN XMLTYPE)
          RETURN XMLTYPE
       IS
          l_metadata_xml                          XMLTYPE;
       BEGIN
          l_metadata_xml := p_metadata;
          SELECT UPDATEXML(l_metadata_xml
                          ,'/DICOM_OBJECT/*[@tag="00100020"]/text()'
                          ,'1010101010101010101'
                          ,'xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0"')
            INTO l_metadata_xml
            FROM DUAL;
          RETURN l_metadata_xml; 
      END test_replace_metadata;
    To select the resulting rows:*
    select rownum
               ,id
               ,xml
               --,var
               ,TO_CHAR(EXTRACTVALUE(xml
                   ,'/DICOM_OBJECT/*[@name="Patient ID"]'
                   ,'xmlns=http://xmlns.oracle.com/ord/dicom/metadata_1_0')) "PatientID"
           from test
          order by rownum desc
    The following code works:*
    DECLARE                
    l_metadata VARCHAR2(32767)
                := '<?xml version="1.0"?>
    <DICOM_OBJECT xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/ord/dicom/metadata_1_0 http://xmlns.oracle.com/ord/dicom/metadata_1_0">
      <LONG_STRING tag="00100020" definer="DICOM" name="Patient ID" offset="816" length="6">#00100020#</LONG_STRING>
      <SEQUENCE xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" tag="00082218" definer="DICOM" name="Anatomic Region Sequence" offset="694" length="76">
                        <ITEM>
                          <SHORT_STRING tag="00080100" definer="DICOM" name="Code Value" offset="722" length="8">T-AA000</SHORT_STRING>
                          <SHORT_STRING tag="00080102" definer="DICOM" name="Coding Scheme Designator" offset="738" length="4">SRT</SHORT_STRING>
                          <LONG_STRING tag="00080104" definer="DICOM" name="Code Meaning" offset="750" length="4">Eye</LONG_STRING>
                        </ITEM>
                      </SEQUENCE>
    </DICOM_OBJECT>';
    l_metadata_xml XMLTYPE;
    BEGIN   
         l_metadata_xml := xmltype(l_metadata, 'http://xmlns.oracle.com/ord/dicom/metadata_1_0');
          SELECT UPDATEXML(l_metadata_xml
                          ,'/DICOM_OBJECT/*[@name="Patient ID"]/text()'
                          ,'dayodayodayo'
                          ,'xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0"')
            INTO l_metadata_xml
            FROM DUAL;
       INSERT INTO test(id
                        ,xml)
           VALUES (7
                  ,l_metadata_xml);       
    END;    
    This code doesn't work, and gives the error mentioned:*
    DECLARE                
    l_metadata VARCHAR2(32767)
                := '<?xml version="1.0"?>
    <DICOM_OBJECT xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/ord/dicom/metadata_1_0 http://xmlns.oracle.com/ord/dicom/metadata_1_0">
      <LONG_STRING tag="00100020" definer="DICOM" name="Patient ID" offset="816" length="6">#00100020#</LONG_STRING>
      <SEQUENCE xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" tag="00082218" definer="DICOM" name="Anatomic Region Sequence" offset="694" length="76">
                        <ITEM>
                          <SHORT_STRING tag="00080100" definer="DICOM" name="Code Value" offset="722" length="8">T-AA000</SHORT_STRING>
                          <SHORT_STRING tag="00080102" definer="DICOM" name="Coding Scheme Designator" offset="738" length="4">SRT</SHORT_STRING>
                          <LONG_STRING tag="00080104" definer="DICOM" name="Code Meaning" offset="750" length="4">Eye</LONG_STRING>
                        </ITEM>
                      </SEQUENCE>
    </DICOM_OBJECT>';
    l_metadata_xml XMLTYPE;
    BEGIN   
       l_metadata_xml := xmltype(l_metadata, 'http://xmlns.oracle.com/ord/dicom/metadata_1_0');
       --This is the difference from the above code                       
       l_metadata_xml := test_replace_metadata(l_metadata_xml);                                   
       INSERT INTO test(id
                        ,xml)
           VALUES (7
                  ,l_metadata_xml);       
    END;            
    This is the full text of the error message:*
    "ORA-03113: end-of-file on communication channel
    Process ID: 10847
    Session ID: 321 Serial number: 33192"Looking into the trace files, I saw this information (This is from a different occurance, but it has remained the same):
    Trace file (omitted)
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /opt/app/oracle/product/11.1.0/db_1/
    System name:     Linux
    Node name:     (omitted)
    Release:     2.6.18-92.el5
    Version:     #1 SMP Tue Apr 29 13:16:15 EDT 2008
    Machine:     x86_64
    Instance name: (omitted)
    Redo thread mounted by this instance: 1
    Oracle process number: 53
    Unix process pid: 22883, image: (omitted)
    *** 2009-06-24 13:47:31.198
    *** SESSION ID:(omitted)
    *** CLIENT ID:(omitted)
    *** SERVICE NAME:(omitted)
    *** MODULE NAME:(omitted)
    *** ACTION NAME:(omitted)
    Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x64] [PC:0x2250968, kolasaRead()+66]
    DDE: Problem Key 'ORA 7445 [kolasaRead()+66]' was flood controlled (0x6) (incident: 70951)
    ORA-07445: exception encountered: core dump [kolasaRead()+66] [SIGSEGV] [ADDR:0x64] [PC:0x2250968] [Address not mapped to object] []
    ssexhd: crashing the process...
    Shadow_Core_Dump = PARTIAL  Why is this happening? Also, When I remove the call to the function or if I remove the SEQUENCE element from the xml everything works fine.
    Any ideas?
    Edited by: rcdev on Jun 25, 2009 2:17 PM - Added code blocks for readability.
    Edited by: rcdev on Jun 25, 2009 2:28 PM

    In short, something inside Oracle is blowing up that shouldn't be, hence the ORA-7445. I did a search on MetaLink but it didn't turn up anything for your version and the internal function that is blowing up. Given you are on 11.1.0.7, I'm going to assume you have some service contract with Oracle and so can open a SR with them. That would be your best bet for getting it resolved given the internal Oracle error you are encountering.
    The next best option would be to post this question on the {forum:id=34} forum given some of the people that watch that forum.

  • Trigger with java

    Hi friends.
    Please, How do I configure a trigger to launch some message to my java application?
    Thanks

    What, exactly, do you envision as the mechanism for the message to be transmitted to the Java application? Daniel already suggested using Advanced Queues, which would allow your trigger to enqueue a message that your Java application could dequeue via JMS. If there is some reason that you don't want to take this approach, it would be helpful to explain what problems you're trying to work around.
    You could also write/ leverage your own message passing infrastructure by using the UTL_TCP package to establish a connection to the Java application, but you'd obviously have to supply a lot more information about what sort of messages your Java app is expecting.
    Justin

Maybe you are looking for

  • HT1933 dear sir / madam,

    Dear Sir / Madam, Hi, I am prashanth, I am using I-phone 4 since many years. I was very comfortable with the phone all these days. Now, after updating to IOS-7 my phone is giving to much of problem. My major problem is mentioned below: 1.If I scroll

  • Remote server problems

    hello i am having issues with one of your remote servers which is making game playing inpossable drop out and latercy is the problem once i hit the server it drops out the name is ip 62.6.201.164 core-te0-7-0-0.faraday.ukcore.bt.net. if it cannont be

  • Access Databases LMS 4.2 with jython script ( Integration with HP uCMDB )

    Questions / Integration Adapter Cisco Prime. There is an integration adapter for HP uCMDB to get CI information from Cisco Works (Prime whatever ….). We set up a user for CW according to “Open Database Schema Support in Cisco Prime LAN Management Sol

  • I can't install MS Visual Studio 2010 ultimate

    Hi everyone I'm trying to install MS Visual Studio 2010 in my laptop, but it get stuck on this point shown in snap shot. I've installed this several times before but now i can't, even I installed my windows again but the problem is same. I'm using wi

  • Can I charge for an app made in Creative Cloud DPS?

    We want to use DPS to create cookbooks for iPad that come out once every few months. They'll be separate books, and we want to be able to charge for them through the Apple store. Will the creative cloud version of DPS allow this? Are there any fees t