Java Embedded ARM Linux edition

I tried "Java Embedded ARM Linux edition" on "Familiar GPE 2.7".
Magically for the 1st time, I was I able to compile a java source using GPE linux on my iPAQ h2200.
Then I manually copy a few more libraries to test up in the device, "tools.jar" and "hsqldb.jar".
I tried to compile and run a simple "JOptionPane.showMessageDialog()" UI object.
I'm able to compile but failed to run it with errors below:
"java.awt.HeadlessException ... <unknown source> ..."
"... <unknown source>"Was Java Embedded meant to support swing object, or awt?
Since this is an evaluation distribution (which will expired after 90 days), how do I get a full distribution?
Thanks for any help.
By Avatar Ng

Yes I'm refering to "Embedded SE for Linux ARM evaluation binary", and I'm testing it on GPE Linux on my iPAQ h2200 device.
I got following when I typed "java -version"
I able to run and compile java in console mode, just that I didn't get my gui working ...
The last finding I have is to run with phoneme arm distribution, crossing my fingers ... wish me luck.
I should update the testing results ib my blog below should it be a fail or success.
Thanks for any help!
by Avatar Ng
http://avatar21.superihost.com/

Similar Messages

  • How to run Java Swing GUI on embedded ARM Linux platform?

    The object is:
    A touch panel, running Java Swing GUI, with a 25 fps 320x320 mono JPEG image animation and other control buttons.
    What I have now:
    A Developing Board with: ARM926 CPU at 266MHz, 128M RAM, 64M ROM, ported with arm-linux and MiniGUI.
    My plan is:
    1. installing a X-window system to the platform, discarding the MiniGUI.
    2. install j2re-1.3.1-RC1-linux-arm.tar.bz2 to the platform.
    3. run my program developed on a PC.
    My concerns are:
    1. Both X and Java is resource consuming, can a 266MHz ARM CPU meet my requirement?
    2. Is the X a must to run Java Swing GUI? If yes, how can I configure it to minimize the footprint, I mean, install only necessary modules.
    3. Can J2RE 1.3.1, the only port for arm linux, support Swing classes?
    4. Are there other options, such as CDC + PP(AGUI?), how to do it?
    Thanks alot!

    3. Can J2RE 1.3.1, the only port for arm linux, support Swing classes?I'm not entirely sure from your post: is this a J2SE port? If so it will support Swing, but probably needs Qt.

  • How to run java GUI application on embedded ARM linux board

    Hi friends,
    This is suresh. I am Embedded developer .Right now i am using Embedded linux board biased by TI OMAP IC (arm7) .This is working fine.Actually we created one jar application .It is working good in GPOS.But when i was running that jar file in my embedded board. i got some errors. Last two weeks i was searching on the net.But still didn't get proper output.Right now i having  "java 1.7.0_60" with headful support package for arm7. Here i have attached my error screen shot.Thanks

    Using the package manger in your Linux distribution, try installing libX11 package. We had a similar issue using Java SE 8 embedded on arch Linux as with some distros you are starting from the bare basics and need to add in missing dependencies.

  • [USB network problem]arm linux to use RNDIS host funtion

    I am trying to use  RNDIS host function on my arm linux device,so i can use android phone to browse my device's WebUI with usb cable plug in.
    my device's platform is at91sam9260,kernel version 2.6.19
    if i plug my android phone  into my device and set phone's usb tethering fuction on, my device can find it.But usb0 network device never show up.
    [root@ICIM ~]# usb 1-1: USB disconnect, address 2
    usb 1-1: new full speed USB device using at91_ohci and address 3
    usb 1-1: configuration #1 chosen from 1 choice
    [root@ICIM ~]# lsusb
    Bus 001 Device 003: ID 04e8:6863 Samsung Electronics Co., Ltd
    Bus 001 Device 001: ID 0000:0000
    root@ICIM ~]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:24:DE:00:02:40
    inet addr:192.168.0.81 Bcast:192.168.0.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:21 Base address:0x4000
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)
    if i plug my android phone  into a linux PC and set phone's usb tethering fuction on, the linux PC can find my phone, and I can find the usb0 network.
    then i ping my phone from the linux PC, and it success
    [root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM] lsmod |grep rndis_host
    rndis_host 7108 0
    cdc_ether 6464 1 rndis_host
    usbnet 13646 2 rndis_host,cdc_ether
    [root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM] ifconfig -a
    eth1 Link encap:Ethernet HWaddr 00:16:76:D4:98:EC
    inet addr:192.168.5.158 Bcast:192.168.5.255 Mask:255.255.255.0
    inet6 addr: fe80::216:76ff:fed4:98ec/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:12142625 errors:0 dropped:0 overruns:10372 frame:10372
    TX packets:7310990 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2921302257 (2.7 GiB) TX bytes:3720558580 (3.4 GiB)
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:12 errors:0 dropped:0 overruns:0 frame:0
    TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
    usb0 Link encap:Ethernet HWaddr CE:3A:A2:93:89:73
    inet addr:192.168.42.101 Bcast:192.168.42.255 Mask:255.255.255.0
    inet6 addr: fe80::cc3a:a2ff:fe93:8973/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:11 errors:0 dropped:0 overruns:0 frame:0
    TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1094 (1.0 KiB) TX bytes:5718 (5.5 KiB)
    [root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM] ping 192.168.42.129
    PING 192.168.42.129 (192.168.42.129) 56(84) bytes of data.
    64 bytes from 192.168.42.129: icmp_seq=1 ttl=64 time=2.17 ms
    64 bytes from 192.168.42.129: icmp_seq=2 ttl=64 time=0.473 ms
    64 bytes from 192.168.42.129: icmp_seq=3 ttl=64 time=0.543 ms
    64 bytes from 192.168.42.129: icmp_seq=4 ttl=64 time=1.27 ms
    64 bytes from 192.168.42.129: icmp_seq=5 ttl=64 time=0.568 ms
    64 bytes from 192.168.42.129: icmp_seq=6 ttl=64 time=1.21 ms
    64 bytes from 192.168.42.129: icmp_seq=7 ttl=64 time=1.21 ms
    64 bytes from 192.168.42.129: icmp_seq=8 ttl=64 time=1.24 ms
    64 bytes from 192.168.42.129: icmp_seq=9 ttl=64 time=1.20 ms
    64 bytes from 192.168.42.129: icmp_seq=10 ttl=64 time=0.505 ms
    ^C
    --- 192.168.42.129 ping statistics ---
    10 packets transmitted, 10 received, 0% packet loss, time 9850ms
    rtt min/avg/max/mdev = 0.473/1.041/2.176/0.506 ms
    [root:/home/xjl/EMS_Kernel/linux-2.6.19_ICIM]
    below is my kernel's configuration on usb. In the Linux pc, the RNDIS host function use rndis_host.ko cdc_ether.ko usbnet.ko.
    I compile all these drivers into my kernel, but it doesn't work.
    usb support
    <*> Support for Host-side USB │ │
    │ │ [ ] USB verbose debug messages │ │
    │ │ --- Miscellaneous USB options │ │
    │ │ [*] USB device filesystem │ │
    │ │ [ ] Enforce USB bandwidth allocation (EXPERIMENTAL) │ │
    │ │ [ ] Dynamic USB minor allocation (EXPERIMENTAL) │ │
    │ │ --- USB Host Controller Drivers │ │
    │ │ < > ISP116X HCD support │ │
    │ │ <*> OHCI HCD support │ │
    │ │ < > SL811HS HCD support │ │
    │ │ --- USB Device Class drivers │ │
    │ │ <*> USB Modem (CDC ACM) support │ │
    │ │ < > USB Printer support │ │
    │ │ --- NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' │ │
    │ │ --- may also be needed; see USB_STORAGE Help for more information │ │
    │ │ < > USB Mass Storage support │ │
    │ │ [ ] The shared table of common (or usual) storage devices │ │
    │ │ --- USB Input Devices │ │
    │ │ < > USB Human Interface Device (full HID) support │ │
    │ │ USB HID Boot Protocol drivers ---> │ │
    │ │ < > Aiptek 6000U/8000U tablet support │ │
    │ │ < > Wacom Intuos/Graphire tablet support │ │
    │ │ < > Acecad Flair tablet support │ │
    │ │ < > KB Gear JamStudio tablet support │ │
    │ │ < > Griffin PowerMate and Contour Jog support │ │
    │ │ < > USB Touchscreen Driver │ │
    │ │ < > Yealink usb-p1k voip phone │ │
    │ │ < > X-Box gamepad support │ │
    │ │ < > ATI / X10 USB RF remote control │ │
    │ │ < > ATI / Philips USB RF remote control │ │
    │ │ < > Keyspan DMR USB remote control (EXPERIMENTAL) │ │
    │ │ < > Apple USB Touchpad support │ │
    │ │ --- USB Imaging devices │ │
    │ │ < > USB Mustek MDC800 Digital Camera support (EXPERIMENTAL) │ │
    │ │ < > Microtek X6USB scanner support │ │
    │ │ USB Network Adapters ---> │ │
    │ │ [*] USB Monitor │ │
    │ │ --- USB port drivers │ │
    │ │ USB Serial Converter support --->
    usb network adapters
    < > USB CATC NetMate-based Ethernet device support (EXPERIMENTAL) │ │
    │ │ <*> USB KLSI KL5USB101-based ethernet device support │ │
    │ │ < > USB Pegasus/Pegasus-II based ethernet device support │ │
    │ │ < > USB RTL8150 based ethernet device support (EXPERIMENTAL) │ │
    │ │ <*> Multi-purpose USB Networking Framework │ │
    │ │ <M> ASIX AX88xxx Based USB 2.0 Ethernet Adapters │ │
    │ │ --- CDC Ethernet support (smart devices such as cable modems) │ │
    │ │ < > GeneSys GL620USB-A based cables │ │
    │ │ <M> NetChip 1080 based cables (Laplink, ...) │ │
    │ │ < > Prolific PL-2301/2302 based cables │ │
    │ │ < > MosChip MCS7830 based Ethernet adapters │ │
    │ │ <*> Host for RNDIS devices (EXPERIMENTAL) │ │
    │ │ <*> Simple USB Network Links (CDC Ethernet subset) │ │
    │ │ [ ] ALi M5632 based 'USB 2.0 Data Link' cables │ │
    │ │ [ ] AnchorChips 2720 based cables (Xircom PGUNET, ...) │ │
    │ │ [*] eTEK based host-to-host cables (Advance, Belkin, ...) │ │
    │ │ [*] Embedded ARM Linux links (iPaq, ...) │ │
    │ │ [ ] Epson 2888 based firmware (DEVELOPMENT) │ │
    │ │ <M> Sharp Zaurus (stock ROMs) and compatible
    anyone familiar with the RNDIS host can help me ? Is my configuration of the kernel right?
    Last edited by snakewind (2013-06-08 08:04:06)

    We don't support archlinux-arm here, try archlinuxarm.org.

  • New Java SE for Embedded 6 free evaluation releases on ARM/Linux available

    Hi:
    People who are reading this forum might be interested to know about
    Sun's Java SE for Embedded 6 releases on ARM/Linux that have been
    made available today for free evaluation -- three updated releases (for
    ARM v6 and v7) and two new releases (for ARM v5), both headless
    and headful versions are available:
    [http://java.sun.com/javase/downloads/embedded.jsp|http://java.sun.com/javase/downloads/embedded.jsp]
    [http://java.sun.com/javase/embedded/system_requirements.jsp|http://java.sun.com/javase/embedded/system_requirements.jsp]
    When you select a Java SE for Embedded eval through either of the
    above URLs, the download link will be sent to you by e-mail after you
    fill out a quick survey and agree to a click-through, 90-days e-license.
    For more information about Sun's Java SE for Embedded product, please
    start at the main web page for this product:
    [http://java.sun.com/javase/embedded/|http://java.sun.com/javase/embedded/]
    This page also includes a link through which you can [contact Sun|http://www.javelinfeedback.com/sun/index.jsp?pi=353770340fcc19a6ca0f558647d48f48] to submit
    any further questions about the Java SE for Embedded product.
    Thanks,
    Carlos B. Lucasius
    Java SE Embedded and Real-Time Engineering
    Sun Microsystems, Inc.
    [http://sites.google.com/site/javartsandjavaseforembedded/|http://sites.google.com/site/javartsandjavaseforembedded/]

    Hello,
    Just a quick question: can we have an official position from Sun regarding support of earlier releases of Solaris with Java RTS 2.1? Our customer is currently running Solaris 10 Update 3 with current Recommended patches, and the 2.1 beta cyclic driver supported this version of Solaris. However with the official release version of 2.1, support for U3 disappeared (only U4 and U5 are now supported). Aside from "rubber stamping" the Solaris build via /etc/release, is there a technical reason why U3 is no longer supported? As long as our kernel is up to date, can we safely use 2.1? Or is it just a case of being unable to officially support and test so many releases of Solaris?
    Is this a general rule-of-thumb we can expect in future: only supporting the last 2 updates of Solaris 10?
    Your advice is appreciated.
    Thanks,
    Dave.

  • How to encrypt file on linux using Gnupg command in Java Embedding in BPEL.

    Hi All,
    I am trying to invoke a command script using the java embedding in BPEL Process.I am using the below code to execute the particular command to encrypt the file :-
    try {    
            Runtime rt = Runtime.getRuntime();    
    Process pr = rt.exec(new String[] {"/bin/bash", "-c", "/u01/GnuPG/bin/gpg", "-e", "-r", "Developer","/u01/oracle/ConfigFiles/Adapter_controlDir/abc.csv"});    
             int exitVal = pr.waitFor();            
            String result = "SUCCESS: Process exit with " + exitVal;         
            addAuditTrailEntry("result = "+result);      
            setVariableData("outputVariable","payload","/client:processResponse/client:result",result);    
    } catch(Exception e) {    
            e.printStackTrace();      
      String result = "FAILURE: Exception with " + e.toString();    
            addAuditTrailEntry("result = "+result);      
            setVariableData("outputVariable","payload","/client:processResponse/client:result",result);    
    The above statement does nothing. I am not sure what command i need to use to access to the command line.
    When i try this particular statement from linux machine command prompt :- /u01/GnuPG/bin/gpg -e  -r  Developer /u01/oracle/ConfigFiles/Adapter_controlDir/abc.csv
    It works absolutely fine and it creates the encrypted files also.
    Please suggest , which command i need to use from the java embedding.
    Please suggest!!
    Regards,
    Shah

    I think, you can try, writing these commands into a separate shell script and call that shell script from bpel via Java embedding. However, you might not get a return response.. but you can still give a shot.
    Hope it helps.

  • Problem trying to run java embedded in Xscale -PXA270

    Hi all,
    I have a Arcom Zeus (Xscale -PXA270, ARMv5, 5TE), and I'm trying to install java embedded for armv5 (headless). My system is debian/linux, gcc (), kernel 2.6.16-28 (cannot upgrade) and glibc (). My /proc/cpuinfo is:
    Processor : XScale-PXA270 rev 7 (v5l)
    BogoMIPS : 517.73
    Features : swp half thumb fastmult edsp
    CPU implementer : 0x69
    CPU architecture: 5TE
    CPU variant : 0x0
    CPU part : 0x411
    CPU revision : 7
    Cache type : undefined 5
    Cache clean : undefined 5
    Cache lockdown : undefined 5
    Cache format : Harvard
    I size : 32768
    I assoc : 32
    I line length : 32
    I sets : 32
    D size : 32768
    D assoc : 32
    D line length : 32
    D sets : 32
    Hardware : Arcom ZEUS
    Revision : 0000
    Serial : 0000000000000000
    My /proc/meminfo is:
    MemTotal: 127684 kB
    MemFree: 13532 kB
    Buffers: 4688 kB
    Cached: 70400 kB
    SwapCached: 0 kB
    Active: 71760 kB
    Inactive: 32680 kB
    HighTotal: 0 kB
    HighFree: 0 kB
    LowTotal: 127684 kB
    LowFree: 13532 kB
    SwapTotal: 0 kB
    SwapFree: 0 kB
    Dirty: 0 kB
    Writeback: 0 kB
    Mapped: 39200 kB
    Slab: 7036 kB
    CommitLimit: 63840 kB
    Committed_AS: 161180 kB
    PageTables: 848 kB
    VmallocTotal: 319488 kB
    VmallocUsed: 66072 kB
    VmallocChunk: 253116 kB
    I think all system requirements are respected!
    I have installed the package but when I try to execute "java", using "./java", it state that the file is not found, which typically means (when the file exists :D), that it is not compiled for the system in question. So, I have compiled a simple helloworld in C and compile it, to compare the output of the file command, between my program and the "java" executable:
    * a.out: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.6.12, dynamically linked (uses shared libs), for GNU/Linux 2.6.12, not stripped
         * java: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped
    The only two differences are "version 1 (ARM)" or "version 1 (SYSV) - can it be the EABI? - and Kernel version 2.6.12 to 2.6.14.
    Can someone help me understand what is the problem and if it can be solved by modifying my system (but not the kernel version)?.
    Thanks in advance!

    Hi,
    forgot to state libc6 version = 2.7-18;
    and gcc version = 4.4.3
    thanks!

  • Reading Opaque data from jms queue  and decoded  in java embedding

    Hi ,
    Objective:Fetch text message from queue and print it from java embedding in BPEL
    I am fetching text message from a jms queue using JMS adapter in BPEL.Then converting the opaque data(Base64 binary)to string using java embedding.My build got successful but I am getting runtime error at the time of deployment.
    I have added fabric-runtime.jar file into SCA-INF\lib folder as well as project library directory.
    <extensionActivity>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    <![CDATA[//Write your java code below e.g.        
         System.out.println("Hello, World");       
    //   String input = ((Element)getVariableData("Receive1_Consume_Message_InputVariable")).getTextContent();              
      // String inputName = (String)getVariableData("input");     
      String input = (String)getVariableData("Receive1_Consume_Message_InputVariable");            
    //Receive1_Consume_Message_InputVariable.opaque          
          System.out.println("input:"+input);          
          addAuditTrailEntry(input);           
          Base64Decoder Decoder = new Base64Decoder();             
         try {            
          String decoded = Base64Decoder.decode(input);            
          setVariableData("Variable_opaque_decoded",decoded);            
          addAuditTrailEntry(decoded);           
    catch(UnsupportedEncodingException uee)
    uee.printStackTrace();
    }]]>
    </bpelx:exec>
    </extensionActivity>
    Error:
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    HTTP error code returned [500]
    Error message from server:
    There was an error deploying the composite on AdminServer: Error occurred during deployment of component: BPELProcess1 to service engine: implementation.bpel, for composite: JMSToDBInsert: ORABPEL-05250
    Error deploying BPEL suitcase.
    error while attempting to deploy the BPEL component file "C:\Oracle\Middleware\user_projects\domains\soa_domain\servers\AdminServer\dc\soa_0fb06e23-bac3-4753-aae9-0fc4b54b4dd1"; the exception reported is: java.lang.RuntimeException: failed to compile execlets of BPELProcess1
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    Check server log for more details.
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    #### Deployment incomplete. ####
    Error deploying archive file:/C:/SOA Suite/SOA_POC/Client2JMSapps/Client2JMSapps/JMSToDBInsert/deploy/sca_JMSToDBInsert_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Could you guys please help me regarding this?
    Thanks & Regards,
    Souvik
    Edited by: Souvik Pal on Apr 16, 2012 9:40 PM

    You probably want to try the SOA Suite forum for OSB questions.
    SOA Suite
    There is an excellent book also:
    http://jeffdavies.org/
    The documentation goes over the fundamentals, but the book will be better for step by step examples.

  • Add & use custom jars in "Java embedding" component

    I need to generate pdf file in process.
    So I included "Java embedding" component, and write my code. For clarity example:
    com.itextpdf.text.Document document = new com.itextpdf.text.Document( 
                        com.itextpdf.text.PageSize.A4, 50, 50, 50, 50); 
              try { 
                   com.itextpdf.text.pdf.PdfWriter pdf = com.itextpdf.text.pdf.PdfWriter 
                             .getInstance(document, new java.io.FileOutputStream("c:\\text.pdf")); 
                   document.open(); 
                   document.add(new com.itextpdf.text.Paragraph("This is test message")); 
                   catch (com.itextpdf.text.DocumentException de) { System.err.println(de.getMessage());  }
                   catch (Exception de) { System.err.println(de.getMessage());}
              document.close();Im using external jar file, of course I add it to classpath (right click soa project -> properties -> libraries and classpath ->add jar).
    But I get folowing error (no during compilation, but during deploying):
    Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "SimpleProcess" of composite "default/SOAProject!1.0*soa_9f8e80a4-346d-424e-9e12-1b69e2024e58"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    [04:35:23 PM] Check server log for more details.
    [04:35:23 PM] Error deploying archive sca_SOAProject_rev1.0.jar to soa_server1 [[fe80:0:0:0:5968:cb45:2001:f6ce]:8001] 
    [04:35:23 PM] ####  Deployment incomplete.  ####
    [04:35:23 PM] Error deploying archive file:/C:/Projects/SOAProject/deploy/sca_SOAProject_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)where ist the problem???
    Edited by: user1175491 on Nov 2, 2010 4:39 PM

    Ajaykumar, can u please write me what exactly append to bpel:exec part (which classes include?)? it looks now:
    <bpelx:exec name="GeneratePDF" version="1.5" language="java">
    <![CDATA[
                  com.itextpdf.text.Document document = new com.itextpdf.text.Document(  
                        com.itextpdf.text.PageSize.A4, 50, 50, 50, 50);  
              try {  
                   com.itextpdf.text.pdf.PdfWriter pdf = com.itextpdf.text.pdf.PdfWriter  
                             .getInstance(document, new java.io.FileOutputStream("c:\\text.pdf"));  
                   document.open();  
                   document.add(new com.itextpdf.text.Paragraph("This is test message"));  
                   catch (com.itextpdf.text.DocumentException de) {System.err.println(de.getMessage());}
                   catch (java.lang.Exception de) {System.err.println(de.getMessage());}  
              document.close();]]>
    </bpelx:exec>Edited by: user1175491 on Nov 2, 2010 5:07 PM
    Edited by: user1175491 on Nov 2, 2010 5:08 PM

  • Java Embedding Activity in 11.1.1.2

    hi all,
    For using a java embedding avtivity in my BPEL Composite project in 11g (11.1.1.2) wat are the JAR files i need to include in my project (in 10g fo using java embedding activity we use jar files like orabpel.jar....).??
    wen i deploy a process with java embedding im getting this issue
    Error(24,40): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "BPELProcessageCalc" of composite "default/Project2!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    any help pls
    Thanks,
    karthik
    Edited by: karthik !! on Mar 13, 2010 1:03 PM

    Hi,
    I have placed the related jars in SCA_INF/lib and recompiled from jdev and deployed it to a SAR file.
    But when i am trying to deploy the SAR from em console to SOA server still the same error is poping up.
    Deploying on "/Farm_SOA_domain/SOA_domain/soa_server1" ...
    Deploying on "/Farm_SOA_domain/SOA_domain/soa_server1" failed!
    Error during deployment: Error occurred during deployment of component: CallOIM to service engine: implementation.bpel for composite: SOAComposite1: ORABPEL-01005
    Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "CallOIM" of composite "default/SOAComposite1!2.1*da3e25db-154e-46b0-869e-9f33a408f386"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    Any pointers will be more helpfull.
    Thanks,
    Sowmya

  • Java Embedding Weird XML Node Error

    Ok, I am going crazy. I have a java embedding node that takes a date string in, changes it to a different format and creates another date that contains the current time. if I run this in java to code run ok and there are no issues. At the end of the java I print out the string and they are exactly what I want. The thing that is going on is when I set the 2 string BPEL variables in the java embedding, when I try to reference them the 2nd time,I get a weird node object error. I get through the first pass ok. when I try to reference Test1 or Test2 on the 2nd pass I get the error below. Its like when I set the variable currentDB2UpdateDate and currentDB2CurrTimeDate it does something to them. Instead of setting it to just the string it seems to set it to some kind of object.
    I have 3 steps here. Assign -> Java Embedding -> Assign.
    Assign 1 => Initialize 2 String variables to X.
    <code>
    <assign name="Assign_2">
    <copy>
    <from expression="string('X')"/>
    <to variable="currentDB2UpdateDate"/>
    </copy>
    <copy>
    <from expression="string('X')"/>
    <to variable="currentDB2CurrTimeDate"/>
    </copy>
    </assign>
    </code>
    Java Embedding =>
    <code>
    String currentFileDate = (String)getVariableData("currentFileDate");
    String currentDate = "";
    try
    SimpleDateFormat sdfSource = new SimpleDateFormat("MM/dd/yyyy");
    Date date = sdfSource.parse(currentFileDate);
    SimpleDateFormat sdfDestination = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    currentFileDate = sdfDestination.format(date);
    catch(ParseException pe)
    System.out.println("Parse Exception : " + pe);
    try
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    currentDate = sdf.format(cal.getTime());
    catch(Exception pe)
    System.out.println("Parse Exception : " + pe);
    System.out.println("currentFileDate : " + currentFileDate.toString());
    System.out.println("currentDate : " + currentDate.toString());
    setVariableData("currentDB2UpdateDate",currentFileDate);
    setVariableData("currentDB2CurrTimeDate",currentDate);
    </code>
    Assign 3 =>
    <code>
    <assign name="Assign_1">
    <copy>
    <from variable="currentDB2UpdateDate"/>
    <to variable="Test1"/>
    </copy>
    <copy>
    <from variable="currentDB2CurrTimeDate"/>
    <to variable="Test2"/>
    </copy>
    </assign>
    </code>
    <code>
    <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>Invalid to part type.
    When performing the assign operation, the to node 2010-07-17 12:00:00 is invalid.
    The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element.
    Verify the node value at line number 819 is not null and is an instance of org.w3c.Element.
    </summary></part></selectionFailure></bpelFault>
    </code>
    The 2nd pass to this throws the following error when trying to set Test1 and Test2 again... Its like it is setting the variable to an object and not just the string. I tried using toString() in the setVariable too and it didn't work. I don't get it.
    Edited by: 806312 on Dec 1, 2010 8:13 AM
    Edited by: 806312 on Dec 1, 2010 8:26 AM

    I am also facing a similar issue.There is selection failure in assignment to local variable of BPEL .
    PFB the logs :
    parts: {{
    summary=&amp;lt;summary&amp;gt;Invalid to part type.
    When performing the assign operation, the to node false is invalid.
    The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element.
    Verify the node value at line number 3577 is not null and is an instance of org.w3c.Element.
    &amp;lt;/summary&amp;gt;}
    Here is the code:
    <copy>
    <from expression="xpath20:add-dayTimeDuration-to-dateTime($calculatednpexectime,'P200YT')"/>
    <to variable="calculatednpexectime"/>
    </copy>
    It seems as if Oracle is not accepting the date format .
    Is there some issue with local variables of new version of BPEL ??

  • Issue with Java Embedding task in BPEL

    Newbe: i have java embedded task in my bpel process which returns one variable(Written java code in editor as it is only 2 lines of code). when i tried to deploy this i am getting the following compiler error in Jdeveloper
    Error(36,39): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "BPELSampleProcess" of composite "default/BpelSampleProj!1.4"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    please suggest me what are the jars needed and where to be placed.

    Try this
    Random randomGenerator = new Random();
    int randomInt = randomGenerator.nextInt(100);
    setVariableData("outputVariable","payload","/client:BPEL_Process/client:result",randomInt);
    Delete this line public class ChSam
    Edited by: KrishnaChaitanya on Nov 25, 2010 9:30 PM

  • Cannot use Java Embedding in Jdeveloper 11.4

    Hi,
    I am using Jdeveloper 11.1.1.4.0 . I am using a Java Embedding Activity in my BPEL and when i compile the project, the error which is coming is SCAC 50012. The same is working in 11.1.1.3.0 Jdeveloper Version.
    The code i am using in Java Embedding activity is
    Logger logger = Logger.getLogger("oracle.soa.Logger");
    LogFormatter.configFormatter(logger);     
    String var1 = ((oracle.xml.parser.v2.XMLElement) getVariableData("inputVariable","payload","/client:process/client:input")).getFirstChild().getNodeValue();
    logger.info("Message from Logging level:Info"+var1 );
    Please help me with this...
    Thanks,
    N
    Edited by: Naresh on Jul 13, 2011 10:47 AM

    I got the Java Embedding Activity working...,I used the following imports in my BPEL....
    <bpelx:exec import="java.util.logging.Logger"/>
    <bpelx:exec import="java.util.logging.Level"/>
    <bpelx:exec import="oracle.fabric.logging.LogFormatter"/>
    <bpelx:exec import="org.w3c.dom.*"/>
    <bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    Hope this helps anyone who have been struggling like me before...
    Thanks,
    N

  • Java Editor in Linux

    hi all,
    can someone suggest a good Java Editor for Linux? I'm currently using the BlueFish Editor and i press the DOT nothing is come out, i hope that to get an editor where the members can come out after the dot is presses. By doing this, it will minimise a lot of typing error. I had try to install the JCreator on my system, but the setup cannot run on Linux.

    u mean just copy the installation to the
    /usr/local??
    Because i dun have the root permission and the
    installation file has been downloaded at the desktopIf you don't have root permissions (and can't get them) then you probably will not be able to copy the JDK to /usr/local . You don't need the JDK to be anywhere in particular so if it is installed in your home directory then leave it there. Just make sure your 'path' is set correctly!
    To check you have it configured right, use
    java -version
    and it should report
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

  • Error in linking by using arm-linux-g++

    Hi
    I use arm-linux-g++ to link my program, and get the following error message:
    "/usr/local/BerkeleyDB.4.5b/bdb-4.5.so: could not read symbols: ?????"
    The question marks is post by system, I don't know what it is on earth.
    But it was no problem using gcc/g++ to compile and link the program for PC version. I generated the MAKEFILE by qmake.
    And the configuration in it showed below:
    INCPATH = -I/qt/qt-embedded-arm-3.3.6/mkspecs/qws nux-arm-g++ -I. -I. -I../..
    /include -I.moc/release-shared-mt-emb-arm/ -I /usr/local/BerkeleyDB.4.5/include
    LIBS = $(SUBLIBS) -L/qt/qt-embedded-arm-3.3.6 b -lqte-mt -ldl -lpthread -L/usr/local/BerkeleyDB.4.5 b -ldb-4.5 -g
    My arm-linux-gcc/ arm-linux-g++ version is 2.95.3, my system is Red Hat Enterprise 4.2. And I am using C++.
    I think that it should be the problem linking configuration, but I do not know how to make it correct.

    I found the answer!!
    1.Modify the configure file of Berkeley DB
    #tar zxfv db-4.x.tgz
    #cd db-4.x/build_unix
    #vi /dist/configure
    Insert the following lines to configure file
    CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc
    AR=/opt/host/armv4l/bin/armv4l-unknown-linux-ar
    RANLIB=/opt/host/armv4l/bin/armv4l-unknown-linux-ranlib
    STRIP=/opt/host/armv4l/bin/armv4l-unknown-linux-strip
    #../dist/configure prefix=/opt/db host=arm41-unknown-linux
    (Then, lib and include directories will be installed into /opt/db)
    OR
    #env CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc \
    AR=/opt/host/armv4l/bin/armv4l-unknown-linux-ar \
    RANLIB=/opt/host/armv4l/bin/armv4l-unknown-linux-ranlib \
    STRIP=/opt/host/armv4l/bin/armv4l-unknown-linux-strip \
    ../dist/configure prefix=/opt/db host=arm41-unknown-linux
    2.Install with this configuration
    #make
    #make install
    #vi /etc/ld.so.conf
    3.Append the lib path of BDB into this file, now the path is /opt/db/lib
    #ldconfig
    4.Compile and link my program again, everything is OK!!! :)

Maybe you are looking for

  • Photoshop CS4 64bit  Slow on a Dell Covet M6400

    hello all, i have patiently read all the posts on the forum about the slow issues and supossedly how to fix them (kapersky etc..). I have yet to be able to configure photoshop cs4 64bit to run smoothly.. here is my config... Dell Precision Covet m640

  • Multiple websites on one server

    I've been trying to create multiple (two) websites on one server, with little luck. One sight works fine. I've tried creating a DNS entry for the new one, but I'm not sure what to set the IP to. I've tried many configurations of IP/hostname but nothi

  • Ff no reproduce video en Android 4.4. Ff doesn't play video in Android 4.4.

    Hola. Tengo una Samsung Galaxy Tab 4 con Android 4.4 Kit Kat. Es imposible ver videos en Firefox. En otros navegadores los videos se ven bien, pero no en Firefox. De ninguna versión. Ahora mismo tengo Ff37, pero el mismo problema existe en todas las

  • How to create a motion tween?? :S

    Hii I know it is very easy. Right click>create motion tween>drag to where I would like the text/object to move BUT Sometimes it doesn't seem to work when i drag the text. It will work the first time and for the second text on the frame it won't work.

  • Calculating Total Ending Inventory

    Hello BW Gurus, I have a reporting question for you. Please reply back as soon as possible as I am nearing the deadline. The scenario is as below: I need to calculate the Total Ending Inventory and the formula is as below: Total Ending Inventory = ‘A