Read this : ejb , cocoon and jboss

Integrating cocoon with jBoss
Download cocoon-war-2.1.7.war and then we have to deploy that to the jboss server , to deploy that , we started jboss server in standard mode and then copied the cocoon war file to /usr/local/jboss-4.0.0/server/standard/deploy/ folder and in the server console we got the message saying that the perticular war file is being deployed .Then run the cocoon home page using http://localhost:8080/cocoon-war-2.1.7/ .
Deploying ejb in cocoon
To deployment ejb in cocoon you should have an ejb container , so we have to integrate ejb with any application server , here we are using jBoss server. Here i'm using a js (java script ) file to invoke an ejb client , i'm using the command
var query = new Packages.hibernate.logging.Query();
where hibernate.logging is the package and Query is the bean's client , and Packages is the inbuilt keyword for accessing packages. Then from the client you can call the bean class as we normally calling the bean. If you are using data base in the bean you have to configure the cocoon.xconf file as
<datasources>
<jdbc logger="core.datasources.personnel" name="personnel">
<pool-controller max="10" min="5"/>
<dburl>jdbc:hsqldb:hsql://localhost:9002</dburl>
<user>sa</user>
<password/>
</jdbc>
<jdbc name ="hibernatedbds">
<pool-controller min = "5" max = "10" />
<dburl>jdbc:postgresql://192.168.0.129:5432/hibernatedb</dburl>
<user>xxxxx</user>
<password/>
</jdbc>
and in the bean calss we can access the database as
public String xxxxxxx(String user, String password,Session session) throws RemoteException
     try
     if(session == null)
          System.out.println("Session is null");
     Transaction tx = session.beginTransaction();
     org.hibernate.Query q = session.createQuery("from      hibernate.logging.User as user where user.users = :users and      user.password = :passwords");
     q.setString("users",user);
     q.setString("passwords",password);
     List list = q.list();
     tx.commit();
     if(list.isEmpty())
          return "false";
     catch(Exception e)
          e.printStackTrace();
          System.out.println("Called EJB");
          return "true";
and in the client program we'll give
String value = remote.Validate(user,password,session);
to access the remote method
when the program is ready and compiled create the jar file and then deploy it to the deploy folder of jboss and a copy od the same jar file to the cocoon/WEB-INF/lib/. Then you can run the program .

And ? What happens next?
Gosh! That suspense is killing me...

Similar Messages

  • EJB 3 and JBoss 5!!

    Hi,
    Currently I am working on EJB 3 and JBoss 5. I am new to this kind of environment. Now the present application is running on different platform. Basically when the customer/shop owner swipes a card in POS system we get message. Now I need to listen existing port and need to get that message then process it through using EJB3. We are not using servlets. JSP's , JMS.
    Is there anyway to start a thread to listen on port when the EJB is deployed? or Is there anyway to listen on port using JBoss or EJB?
    What is the best way to do it?
    Thanks in advance.
    Bachi.

    Yeah we can do that. In fact I tried it and it worked but as a stand alone application. I need to make sure that listens on the port when the application server starts or when the ejb is deployed. That is the problem here. In my first question I mentioned that we are not using JSP's right if there is any solution through servlets or JSP's I would like to use them.
    Here is the program which runs as standalone. Unfortunately I got this program from online :)
    import java.io.BufferedOutputStream;
    import java.io.IOException;
    import java.io.OutputStreamWriter;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class BeanSocket implements Runnable {
         private Socket connection;
         private String TimeStamp;
         private int ID;
         Runnable runnable;
         BeanSocket(Socket s, int i) {
              this.connection = s;
              this.ID = i;
         public  static void main(String args[]){
              int port = 19999;
              int count = 0;
              try {
                   ServerSocket socket1 = new ServerSocket(port);
                   System.out.println("MultipleSocketServer Initialized");
                   while (true) {
                        Socket connection = socket1.accept();
                        Runnable runnable = new BeanSocket(connection, ++count);
                        Thread thread = new Thread(runnable);
                        thread.start();
              } catch (Exception e) {
         public void run() {
              try {
                   // need to wait 10 seconds to pretend that we're processing
                   // something
                   try {
                        Thread.sleep(1000);
                   } catch (Exception e) {
                        e.printStackTrace();
                   TimeStamp = new java.util.Date().toString();
                   String returnCode = "MultipleSocketServer repsonded at " + TimeStamp + (char) 13;
                   BufferedOutputStream os = new BufferedOutputStream(connection.getOutputStream());
                   OutputStreamWriter osw = new OutputStreamWriter(os, "US-ASCII");
                   osw.write(returnCode);
                   osw.flush();
              } catch (Exception e) {
                   System.out.println(e);
              } finally {
                   try {
                        connection.close();
                   } catch (IOException e) {
    }Edited by: bachi. on Jun 28, 2009 12:00 PM
    Edited by: bachi. on Jun 28, 2009 12:02 PM

  • I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • Can anyone read this Console log and tell me what is "librariand" ?

    I've been having "librariand" showing up every 2-3 minutes in my log. can anyone read this Console log and tell me what is "librariand" and what's the problem behind this ?
    11-08-14 9:53:37.009 AM librariand: new client - cancelling idle timeout
    11-08-14 9:53:37.010 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:53:37.010 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:53:37.010 AM librariand: client connection is invalid: Connection invalid
    11-08-14 9:53:37.010 AM librariand: no clients - starting idle timer
    11-08-14 9:53:37.011 AM librariand: new client - cancelling idle timeout
    11-08-14 9:53:37.011 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:53:37.012 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:53:37.012 AM librariand: client connection is invalid: Connection invalid
    11-08-14 9:53:37.012 AM librariand: no clients - starting idle timer
    11-08-14 9:53:37.013 AM librariand: new client - cancelling idle timeout
    11-08-14 9:53:37.014 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:53:37.014 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:53:37.015 AM librariand: client connection is invalid: Connection invalid
    11-08-14 9:53:37.015 AM librariand: no clients - starting idle timer
    11-08-14 9:53:37.015 AM librariand: new client - cancelling idle timeout
    11-08-14 9:53:37.015 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:53:37.016 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:53:37.016 AM librariand: client connection is invalid: Connection invalid
    11-08-14 9:53:37.016 AM librariand: no clients - starting idle timer
    11-08-14 9:53:37.017 AM librariand: new client - cancelling idle timeout
    11-08-14 9:53:37.017 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:53:37.017 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:53:37.018 AM librariand: client connection is invalid: Connection invalid
    11-08-14 9:53:37.019 AM librariand: no clients - starting idle timer
    11-08-14 9:56:39.802 AM librariand: new client - cancelling idle timeout
    11-08-14 9:56:39.803 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:56:39.803 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:56:39.804 AM librariand: client connection is invalid: Connection invalid
    11-08-14 9:56:39.804 AM librariand: no clients - starting idle timer
    11-08-14 9:57:11.575 AM librariand: new client - cancelling idle timeout
    11-08-14 9:57:11.576 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:57:11.576 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:57:11.577 AM librariand: no ubiquity account configured, not creating collection
    11-08-14 9:57:11.577 AM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 9:57:11.577 AM librariand: client connection is invalid: Connection invalid
    11-08-14 9:57:11.577 AM librariand: no clients - starting idle timer

    I completely uninstalled the following:
    Removed Evernote.app
    Removed User/Library/Preferences/com.evernote.Evernote.plis
    Removed User/Library/Applications Support/Evernote
    and still get to see these logs when restart:
    11-08-14 7:57:03.263 PM librariand: new client - cancelling idle timeout
    11-08-14 7:57:03.263 PM librariand: no ubiquity account configured, not creating collection
    11-08-14 7:57:03.263 PM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 7:57:03.264 PM helpd: unable to get sandbox extensions: The operation couldn’t be completed. (LibrarianErrorDomain error 10 - Unable to configure the collection.)
    11-08-14 7:57:03.265 PM librariand: no ubiquity account configured, not creating collection
    11-08-14 7:57:03.265 PM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    11-08-14 7:57:03.265 PM librariand: client connection is invalid: Connection invalid
    11-08-14 7:57:03.265 PM librariand: no clients - starting idle timer
    11-08-14 7:57:13.753 PM librariand: new client - cancelling idle timeout
    11-08-14 7:57:13.767 PM librariand: no ubiquity account configured, not creating collection
    11-08-14 7:57:13.767 PM librariand: error in handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
    any other solution ?

  • HEY MSI. READ THIS (regarding ICH5R and compatibility with WD Raptors)

    The following issue has not been resolved.  Seems like several people have given up and are just using the onboard Promise controller.  
    Thread on issues regarding WD Raptors configured in RAID via ICH5R
    Does it not suprise you that nobody is using Raptors on the ICH5R?? hmmm?? (Maybe because they can't.)
    I have requested RMA service with Western Digital to try different hard drives. Now I am on my 2nd RMA.  If it does not work (even with both drives using the B5P bridgechip) then IT IS CLEAR THAT YOUR MOTHERBOARD WAS MANUFACTURED WITH A DEFECT.  And thus people using this board who want to use RAID with 2 Raptor drives on the ICH5R should be entitled to a replacement board or even their money back.  I AM NOT JOKING.  I think it's something quite serious because the need and demand from users are being neglected and it seems as though MSI won't bother trying to resolve this issue and hopes to silence this issue by ignoring it.  
    Mods... please do not delete or lock this thread.  And people who are still in the same boat as I am and are just about to give up or have done so already... please let your voices be heard here!
    When I get my 2nd replacement Raptor (hopefully it's a B5P) I will do further testing and let everyone know if it solves the issue.

    Interestingly, I bought my raptors before I came across this thread, and found that I had problem of having my raptors being detected by the ICH5R.  At that time, I also have a HighPoint 1520 Raid PCI card on my mobo.
    Guess what, after I removed the HighPoint 1520 Raid PCI card, I am able to have my raptors plug to the ICH5R connectors and being detected.  I'm running it at Raid 0 now, as my boot drive.  
    The two raptors' DCM is HBCAJAB, not sure if this information is useful.  Both drives were made in Malaysia.  
    The thread I am referring to https://forum-en.msi.com/addreply.php?threadid=43273&sid=.

  • Droid X2 Owners with Freezes/lockups READ THIS!! and VZ/MOTO employees!!!

    I am COMPLETLEY convienced the Freeze/lockup has something to do with the SD card or SD card slot. i retored my phone to 100% stock yesterday, NO bloatware removed etc...ran so nice all day, this morning i decided to put the SD card that came with it back in the phone, formatted it, and BOOM within 15 min, SCreen lock up
    MOTO and VZ, you need to look into this. i think that is the issue on the freezes. im going to maybe call and see if i can get a replacement....
    **also has happend with a seperate 32 Gig SD card*** SD card slots bad???

    Interesting.....if you are running GB, then that's probably your problem. I have had an original DX since Nov 2010 and up until August when they released GB, I had absolutely no problems with the phone. Once GB got installed to the DX, the SD card started having serious issues. The card the phone came with just up and completely corrupted right after GB got installed on the phone, and then the replacement card that I was forced to go buy (VZW refused to replace it but that's an entirely different story) has had problems 3 seperate times since I installed it into the phone since the end of August....seems like every 3-4 weeks the SD card suddenly has file system errors and I cannot read anything on it (computer won't even recognize it), so I end up losing pictures, ringtones and other things to the point that I have regularly back everything up to my computer just to make sure I can keep these pictures and ringtones.  They're not all that important pictures, but still....if I was able to go 9 months on Froyo with NO problems with the SD card (or phone for that matter), then how come 2 months since VZW pushed the GB update to the phones are there regular occurences......something is fishy in Denmark with all these sudden problems
    I would hope that VZW and Moto would realize the problems increased ten-fold since GB was pushed and actively attempt to fix them once and for all, but I truly believe they view it as the phone being EOL (no NEW phones are sold anymore) that the issues are no longer of a big concern to them. Seems like the only answer is that as we are able to do so, just upgrade to a different phone. I know for a fact that I will NEVER get another Motorola phone.....the DX is a great phone, but Moto, and to an extent VZW, have truly caused the phone to go down the proverbial toilet, which is a shame

  • Kernal Panic Could you guys read this error messages and explain to me pls?

    Interval Since Last Panic Report: -15 sec
    Panics Since Last Report: 1
    Anonymous UUID: C9D85673-BDE7-4851-9C75-89207D85BCF5
    Sun Oct 24 20:39:29 2010
    panic(cpu 2 caller 0x2a7c84): Double fault at 0x00257604, thread:0xdff7b7c, trapno:0x8, err:0x0,registers:
    CR0: 0x80010033, CR2: 0x5c7d7f88, CR3: 0x00100000, CR4: 0x00000660
    EAX: 0x71465000, EBX: 0x0000000e, ECX: 0x02f52ebc, EDX: 0x00000000
    ESP: 0x5c7d7f90, EBP: 0x5c7d80c8, ESI: 0x00000001, EDI: 0x5c7d81c0
    EFL: 0x00010206, EIP: 0x00257604
    Backtrace (CPU 2), Frame : Return Address (4 potential args on stack)
    0x55095fb8 : 0x21b455 (0x5cf328 0x55095fec 0x2238b1 0x0)
    0x55096008 : 0x2a7c84 (0x591330 0x59142b 0x257604 0xdff7b7c)
    0x550960f8 : 0x29f8f2 (0x0 0xd089e04d 0x2b74c809 0xe8c1c889)
    0x5c7d80c8 : 0x2a880f (0x2f52ebc 0x71465000 0x0 0x1)
    0x5c7d81a8 : 0x29e9a8 (0x5c7d81c0 0x0 0x5c7d8b38 0x121b864)
    0x5c7d81b8 : 0x121b864 (0xe 0x9b30048 0x5c7d0010 0x4f0010)
    0x5c7d8b38 : 0x11fa14c (0x462be000 0xec26700 0x0 0x0)
    0x5c7d8b78 : 0x11fa4b8 (0x462be000 0xec26700 0x46 0x226d39)
    0x5c7d8bb8 : 0x156c6df (0x462be000 0x91c1980 0x4 0x0)
    0x5c7d8be8 : 0x4fbdbe (0x91c1980 0x0 0x1 0xf129600)
    0x5c7d8c08 : 0x4fbdd9 (0x91c1980 0x0 0x5c7d8c38 0x52acb5)
    0x5c7d8c28 : 0x156ca48 (0x91c1980 0xb0 0x1 0x5502d000)
    0x5c7d8c58 : 0x121092d (0x91c1980 0xec26900 0xb0 0xec73f00)
    0x5c7d8c98 : 0x11fb663 (0x462be000 0xeb35900 0x69732072 0x223d657a)
    0x5c7d8cd8 : 0x11fb9e0 (0x462be000 0x0 0x2f3c3e2f 0x74636964)
    0x5c7d8d38 : 0x11fbe44 (0x462be000 0x0 0x0 0x0)
    0x5c7d8d78 : 0x11fa0ec (0x462be000 0x0 0x0 0x0)
    0x5c7d8db8 : 0x11fa4b8 (0x462be000 0xeb35a00 0x3c3e2f22 0x3e79656b)
    0x5c7d8df8 : 0x156c6df (0x462be000 0xf11ac40 0x4 0x0)
    0x5c7d8e28 : 0x4fbdbe (0xf11ac40 0x0 0x1 0xf120600)
    0x5c7d8e48 : 0x4fbdd9 (0xf11ac40 0x0 0x65746e69 0x3e726567)
    0x5c7d8e68 : 0x156ca48 (0xf11ac40 0x52444920 0x223d4645 0x22373535)
    0x5c7d8e98 : 0x121092d (0xf11ac40 0x66666666 0x63666666 0x36343830)
    0x5c7d8ed8 : 0x11fb663 (0x462be000 0xec6f000 0x693c3e79 0x6765746e)
    0x5c7d8f18 : 0x11fb9e0 (0x462be000 0x0 0x692f3c31 0x6765746e)
    0x5c7d8f78 : 0x11fbe44 (0x462be000 0x0 0x0 0x0)
    0x5c7d8fb8 : 0x11fa0ec (0x462be000 0x0 0x0 0x0)
    0x5c7d8ff8 : 0x11fa4b8 (0x462be000 0xebdc700 0x52444920 0x223d4645)
    0x5c7d9038 : 0x156c6df (0x462be000 0xf12b740 0x4 0x0)
    0x5c7d9068 : 0x4fbdbe (0xf12b740 0x0 0x1 0xee2c200)
    0x5c7d9088 : 0x4fbdd9 (0xf12b740 0x0 0x79656b3c 0x2f3c373e)
    0x5c7d90a8 : 0x156ca48 (0xf12b740 0x303e2234 0x37303478 0x35353535)
    Backtrace continues...
    Kernel Extensions in backtrace (with dependencies):
    com.apple.iokit.IOSurface(74.0)@0x1568000->0x1572fff
    com.apple.driver.AppleIntelHDGraphics(6.1.8)@0x11f8000->0x12a4fff
    dependency: com.apple.iokit.IOPCIFamily(2.6)@0x926000
    dependency: com.apple.iokit.IONDRVSupport(2.1)@0x959000
    dependency: com.apple.iokit.IOGraphicsFamily(2.1)@0x937000
    BSD process name corresponding to current thread: WebKitPluginHost
    Mac OS version:
    10F569
    Kernel version:
    Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386
    System model name: MacBookPro6,1 (Mac-F22589C8)
    System uptime in nanoseconds: 5913215493818
    unloaded kexts:
    com.apple.driver.AppleFileSystemDriver 2.0 (addr 0xffd000, size 0x12288) - last unloaded 91404022801
    loaded kexts:
    com.apple.driver.AppleHWSensor 1.9.3d0 - last loaded 25880438044
    com.apple.filesystems.autofs 2.1.0
    com.apple.driver.AGPM 100.12.12
    com.apple.driver.AppleMikeyHIDDriver 1.2.0
    com.apple.driver.AppleHDA 1.8.7f1
    com.apple.driver.AppleMikeyDriver 1.8.7f1
    com.apple.driver.AudioAUUC 1.4
    com.apple.driver.AppleUpstreamUserClient 3.3.2
    com.apple.driver.SMCMotionSensor 3.0.0d4
    com.apple.kext.AppleSMCLMU 1.5.0d3
    com.apple.DontSteal_Mac_OSX 7.0.0
    com.apple.driver.AudioIPCDriver 1.1.2
    com.apple.driver.ACPISMCPlatformPlugin 4.1.2b1
    com.apple.driver.AppleLPC 1.4.12
    com.apple.GeForce 6.1.8
    com.apple.driver.AppleGraphicsControl 2.8.63
    com.apple.driver.AppleIntelHDGraphics 6.1.8
    com.apple.driver.AppleIntelHDGraphicsFB 6.1.8
    com.apple.driver.AppleUSBTCButtons 1.8.1b1
    com.apple.driver.AppleUSBTCKeyboard 1.8.1b1
    com.apple.driver.AppleIRController 303.8
    com.apple.iokit.SCSITaskUserClient 2.6.5
    com.apple.iokit.IOAHCIBlockStorage 1.6.2
    com.apple.BootCache 31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.driver.AppleUSBHub 4.0.0
    com.apple.driver.AppleFWOHCI 4.7.1
    com.apple.iokit.AppleBCM5701Ethernet 2.3.8b2
    com.apple.driver.AirPortBrcm43224 425.16.2
    com.apple.driver.AppleAHCIPort 2.1.2
    com.apple.driver.AppleEFINVRAM 1.3.0
    com.apple.driver.AppleSmartBatteryManager 160.0.0
    com.apple.driver.AppleUSBEHCI 4.0.2
    com.apple.driver.AppleUSBUHCI 4.0.2
    com.apple.driver.AppleACPIButtons 1.3.2
    com.apple.driver.AppleRTC 1.3.1
    com.apple.driver.AppleHPET 1.5
    com.apple.driver.AppleSMBIOS 1.6
    com.apple.driver.AppleACPIEC 1.3.2
    com.apple.driver.AppleAPIC 1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient 105.10.0
    com.apple.security.sandbox 0
    com.apple.security.quarantine 0
    com.apple.nke.applicationfirewall 2.1.11
    com.apple.driver.AppleIntelCPUPowerManagement 105.10.0
    com.apple.driver.DspFuncLib 1.8.7f1
    com.apple.driver.AppleProfileReadCounterAction 17
    com.apple.driver.AppleProfileTimestampAction 10
    com.apple.driver.AppleProfileThreadInfoAction 14
    com.apple.driver.AppleProfileRegisterStateAction 10
    com.apple.driver.AppleProfileKEventAction 10
    com.apple.driver.AppleProfileCallstackAction 20
    com.apple.driver.AppleSMBusController 1.0.8d0
    com.apple.iokit.IOFireWireIP 2.0.3
    com.apple.iokit.IOSurface 74.0
    com.apple.iokit.IOBluetoothSerialManager 2.3.7f1
    com.apple.iokit.IOSerialFamily 10.0.3
    com.apple.driver.AppleHDAController 1.8.7f1
    com.apple.iokit.IOHDAFamily 1.8.7f1
    com.apple.iokit.IOAudioFamily 1.7.6fc2
    com.apple.kext.OSvKernDSPLib 1.3
    com.apple.iokit.AppleProfileFamily 41
    com.apple.driver.AppleSMC 3.0.1d2
    com.apple.driver.IOPlatformPluginFamily 4.1.2b1
    com.apple.driver.AppleSMBusPCI 1.0.8d0
    com.apple.nvidia.nv50hal 6.1.8
    com.apple.NVDAResman 6.1.8
    com.apple.iokit.IONDRVSupport 2.1
    com.apple.iokit.IOGraphicsFamily 2.1
    com.apple.driver.BroadcomUSBBluetoothHCIController 2.3.7f1
    com.apple.driver.AppleUSBBluetoothHCIController 2.3.7f1
    com.apple.iokit.IOBluetoothFamily 2.3.7f1
    com.apple.driver.AppleUSBMultitouch 205.32
    com.apple.iokit.IOUSBHIDDriver 4.0.2
    com.apple.driver.AppleUSBMergeNub 4.0.0
    com.apple.driver.AppleUSBComposite 3.9.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.5
    com.apple.iokit.IOBDStorageFamily 1.6
    com.apple.iokit.IODVDStorageFamily 1.6
    com.apple.iokit.IOCDStorageFamily 1.6
    com.apple.driver.XsanFilter 402.1
    com.apple.iokit.IOAHCISerialATAPI 1.2.4
    com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.5
    com.apple.iokit.IOUSBUserClient 4.0.0
    com.apple.iokit.IOFireWireFamily 4.2.6
    com.apple.iokit.IO80211Family 311.1
    com.apple.iokit.IONetworkingFamily 1.9
    com.apple.iokit.IOAHCIFamily 2.0.4
    com.apple.iokit.IOUSBFamily 4.0.2
    com.apple.driver.AppleEFIRuntime 1.3.0
    com.apple.iokit.IOHIDFamily 1.6.5
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 6
    com.apple.driver.DiskImages 283
    com.apple.iokit.IOStorageFamily 1.6.1
    com.apple.driver.AppleACPIPlatform 1.3.2
    com.apple.iokit.IOPCIFamily 2.6
    com.apple.iokit.IOACPIFamily 1.3.0
    Model: MacBookPro6,1, BootROM MBP61.0057.B0A, 2 processors, Intel Core i7, 2.66 GHz, 4 GB, SMC 1.57f17
    Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 512 MB
    Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
    Memory Module: global_name
    AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.10.131.16.1)
    Bluetooth: Version 2.3.7f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: TOSHIBA MK5055GSXF, 465.76 GB
    Serial ATA Device: HL-DT-ST DVDRW GS23N
    USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfd100000
    USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0xfd110000
    USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0xfd120000
    USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfa100000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0237, 0xfa120000
    USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8218, 0xfa113000
    I sent my macbook to the apple store because of the Kernal panic and got it back yesterday
    and today I had kernal panic TWICE again.
    Please, I would like to know what is wrong with my macbook
    Could you guys tell me what is wrong?
    Thanks

    JihyunYun93 wrote:
    Interval Since Last Panic Report: -15 sec
    Panics Since Last Report: 1
    ... Could you guys tell me what is wrong?
    I am no expert, but I did not see anything that I recognize as "the problem." In cases like this, diagnosing kernel panics is a step-by-step process. Start by disconnecting all peripherals and restart the Mac to see if the problem goes away. If the problem remains, continue with the next suggestion and repeat until you find the problem. Then you will know what to fix.
    Start here for help resolving your kernel panic: http://www.thexlab.com/faqs/kernelpanics.html
    Another KP help site: http://www.index-site.com/kernelpanic.html
    Apple's 10.6 help article: http://docs.info.apple.com/article.html?path=Mac/10.6/en/8965.html
    Apple's KP knowledge base article: http://support.apple.com/kb/HT1392
    In-depth KP info: http://developer.apple.com/mac/library/technotes/tn2002/tn2063.html
    Message was edited by: EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.4); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.4)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod touch 4.1

  • Can someone read this crash log and tell me whats wrong please

    Anonymous UUID:       7F4336E4-C6DA-0238-7240-8EEE20983BFD
    Thu Aug  7 16:08:47 2014
    panic(cpu 1 caller 0xffffff80082dc24e): Kernel trap at 0xffffff7f8a16f9f1, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0xffffef811ed3bf00, CR3: 0x000000000af8f000, CR4: 0x0000000000000660
    RAX: 0xffffff801a37e000, RBX: 0x0000000000000000, RCX: 0xffffff801a37e000, RDX: 0xfffffffffffffffe
    RSP: 0xffffff811ed3be80, RBP: 0xffffef811ed3bf30, RSI: 0x000000000001e558, RDI: 0x0000000000000000
    R8:  0x00000000e0000000, R9:  0x0000000000000005, R10: 0x0000000000000920, R11: 0xffffffffffffffff
    R12: 0x0000098becc6e2c0, R13: 0xffffff8103ea5148, R14: 0x0000000000000000, R15: 0x000000000001e558
    RFL: 0x0000000000010097, RIP: 0xffffff7f8a16f9f1, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0xffffef811ed3bf00, Error code: 0x0000000000000000, Fault CPU: 0x1
    Backtrace (CPU 1), Frame : Return Address
    0xffffff811ed3bb10 : 0xffffff8008222f79
    0xffffff811ed3bb90 : 0xffffff80082dc24e
    0xffffff811ed3bd60 : 0xffffff80082f3746
    0xffffff811ed3bd80 : 0xffffff7f8a16f9f1
    No mapping exists for frame pointer
    Backtrace terminated-invalid frame pointer 0xffffef811ed3bf30
          Kernel Extensions in backtrace:
             com.apple.driver.AppleIntelCPUPowerManagement(217.92.1)[CF28958D-CA8A-3A79-911C -78217F5DDAF2]@0xffffff7f8a16d000->0xffffff7f8a197fff
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    13E28
    Kernel version:
    Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
    Kernel UUID: BBFADD17-672B-35A2-9B7F-E4B12213E4B8
    Kernel slide:     0x0000000008000000
    Kernel text base: 0xffffff8008200000
    System model name: MacBook5,1 (Mac-F42D89C8)
    System uptime in nanoseconds: 10496577769475
    last loaded kext at 10313995154133: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f8a5ad000, size 49152)
    last unloaded kext at 10380528075061: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f8a5ad000, size 32768)
    loaded kexts:
    com.apple.filesystems.smbfs 2.0.2
    com.apple.driver.AudioAUUC 1.60
    com.apple.filesystems.autofs 3.0
    com.apple.driver.AppleBluetoothMultitouch 80.14
    com.apple.driver.AppleHWSensor 1.9.5d0
    com.apple.iokit.IOBluetoothSerialManager 4.2.6f1
    com.apple.driver.AGPM 100.14.28
    com.apple.driver.AppleMikeyHIDDriver 124
    com.apple.driver.AppleHDA 2.6.3f4
    com.apple.driver.AppleUpstreamUserClient 3.5.13
    com.apple.GeForceTesla 8.2.4
    com.apple.driver.AppleSMCLMU 2.0.4d1
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.6f1
    com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
    com.apple.driver.AppleMikeyDriver 2.6.3f4
    com.apple.driver.AppleLPC 1.7.0
    com.apple.driver.AppleBacklight 170.3.5
    com.apple.driver.AppleMCCSControl 1.2.5
    com.apple.iokit.IOUserEthernet 1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.AppleHWAccess 1
    com.apple.driver.SMCMotionSensor 3.0.4d1
    com.apple.driver.AppleUSBTCButtons 240.2
    com.apple.driver.AppleUSBTCKeyboard 240.2
    com.apple.driver.AppleIRController 325.7
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 35
    com.apple.iokit.SCSITaskUserClient 3.6.6
    com.apple.driver.XsanFilter 4
    Model: MacBook5,1, BootROM MB51.007D.B03, 2 processors, Intel Core 2 Duo, 2.4 GHz, 8 GB, SMC 1.32f8
    Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x01BA, 0x202020202020202020202020202020202020
    Memory Module: BANK 0/DIMM1, 4 GB, DDR3, 1333 MHz, 0x01BA, 0x202020202020202020202020202020202020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.6f1 14216, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: TOSHIBA MK2553GSX, 250.06 GB
    Serial ATA Device: HL-DT-ST DVDRW  GS21N
    USB Device: Built-in iSight
    USB Device: BRCM2046 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: IR Receiver
    Thunderbolt Bus:

    You, or someone, has installed the incorrect spec ram. Your MacBook 5,1 requires
    RAM Type:
    PC3-8500 DDR3
    Min. RAM Speed:
    1066 MHz
    You should replace it with the correct ram. I'd recommend ram from either OWC http://eshop.macsales.com or Crucial http://www.crucial.com

  • Can someone please read this crash log and tell me what to do?

    Anonymous UUID:       7F4336E4-C6DA-0238-7240-8EEE20983BFD
    Thu Aug  7 16:08:47 2014
    panic(cpu 1 caller 0xffffff80082dc24e): Kernel trap at 0xffffff7f8a16f9f1, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0xffffef811ed3bf00, CR3: 0x000000000af8f000, CR4: 0x0000000000000660
    RAX: 0xffffff801a37e000, RBX: 0x0000000000000000, RCX: 0xffffff801a37e000, RDX: 0xfffffffffffffffe
    RSP: 0xffffff811ed3be80, RBP: 0xffffef811ed3bf30, RSI: 0x000000000001e558, RDI: 0x0000000000000000
    R8:  0x00000000e0000000, R9:  0x0000000000000005, R10: 0x0000000000000920, R11: 0xffffffffffffffff
    R12: 0x0000098becc6e2c0, R13: 0xffffff8103ea5148, R14: 0x0000000000000000, R15: 0x000000000001e558
    RFL: 0x0000000000010097, RIP: 0xffffff7f8a16f9f1, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0xffffef811ed3bf00, Error code: 0x0000000000000000, Fault CPU: 0x1
    Backtrace (CPU 1), Frame : Return Address
    0xffffff811ed3bb10 : 0xffffff8008222f79
    0xffffff811ed3bb90 : 0xffffff80082dc24e
    0xffffff811ed3bd60 : 0xffffff80082f3746
    0xffffff811ed3bd80 : 0xffffff7f8a16f9f1
    No mapping exists for frame pointer
    Backtrace terminated-invalid frame pointer 0xffffef811ed3bf30
          Kernel Extensions in backtrace:
             com.apple.driver.AppleIntelCPUPowerManagement(217.92.1)[CF28958D-CA8A-3A79-911C -78217F5DDAF2]@0xffffff7f8a16d000->0xffffff7f8a197fff
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    13E28
    Kernel version:
    Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
    Kernel UUID: BBFADD17-672B-35A2-9B7F-E4B12213E4B8
    Kernel slide:     0x0000000008000000
    Kernel text base: 0xffffff8008200000
    System model name: MacBook5,1 (Mac-F42D89C8)
    System uptime in nanoseconds: 10496577769475
    last loaded kext at 10313995154133: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f8a5ad000, size 49152)
    last unloaded kext at 10380528075061: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f8a5ad000, size 32768)
    loaded kexts:
    com.apple.filesystems.smbfs 2.0.2
    com.apple.driver.AudioAUUC 1.60
    com.apple.filesystems.autofs 3.0
    com.apple.driver.AppleBluetoothMultitouch 80.14
    com.apple.driver.AppleHWSensor 1.9.5d0
    com.apple.iokit.IOBluetoothSerialManager 4.2.6f1
    com.apple.driver.AGPM 100.14.28
    com.apple.driver.AppleMikeyHIDDriver 124
    com.apple.driver.AppleHDA 2.6.3f4
    com.apple.driver.AppleUpstreamUserClient 3.5.13
    com.apple.GeForceTesla 8.2.4
    com.apple.driver.AppleSMCLMU 2.0.4d1
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.6f1
    com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
    com.apple.driver.AppleMikeyDriver 2.6.3f4
    com.apple.driver.AppleLPC 1.7.0
    com.apple.driver.AppleBacklight 170.3.5
    com.apple.driver.AppleMCCSControl 1.2.5
    com.apple.iokit.IOUserEthernet 1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.AppleHWAccess 1
    com.apple.driver.SMCMotionSensor 3.0.4d1
    com.apple.driver.AppleUSBTCButtons 240.2
    com.apple.driver.AppleUSBTCKeyboard 240.2
    com.apple.driver.AppleIRController 325.7
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 35
    com.apple.iokit.SCSITaskUserClient 3.6.6
    com.apple.driver.XsanFilter 4
    Model: MacBook5,1, BootROM MB51.007D.B03, 2 processors, Intel Core 2 Duo, 2.4 GHz, 8 GB, SMC 1.32f8
    Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x01BA, 0x202020202020202020202020202020202020
    Memory Module: BANK 0/DIMM1, 4 GB, DDR3, 1333 MHz, 0x01BA, 0x202020202020202020202020202020202020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.6f1 14216, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: TOSHIBA MK2553GSX, 250.06 GB
    Serial ATA Device: HL-DT-ST DVDRW  GS21N
    USB Device: Built-in iSight
    USB Device: BRCM2046 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: IR Receiver
    Thunderbolt Bus:

    You, or someone, has installed the incorrect spec ram. Your MacBook 5,1 requires
    RAM Type:
    PC3-8500 DDR3
    Min. RAM Speed:
    1066 MHz
    You should replace it with the correct ram. I'd recommend ram from either OWC http://eshop.macsales.com or Crucial http://www.crucial.com

  • There was a problem reading this document (117)

    Dear Designers
    I am facing a strange problem while doing test presentment in Adobe output designer. When i do a test presentment with my dat file which is meant for fax (^job newFax   -fform01F.MDF) , i see the pdf (consist of 2 pages ) but as soon as i scroll down to next page (Pg 2)  of my pdf ; it giving me a Adobe reader error pop up "There was a problem reading this document (117)" and when i click OK and comes to page 2 (i'm seeing the content of Pg2 curerntly) and scroll back to page 1 the data on page 2 goes blank. What could be the possible reason for  this ? I assume the flaw is on Adobe reader side , but please brighten me with the knowledge if there is some issue on dat file side.
    Any possible guidance or help would be highly appreciated
    thanks
    jaY

    Sorry, I do not quite understand what your problem is:
    you have a problem with signing in to the ExportPDF service ?
    you have a problem opening PDF files ?  If so, are these local or online documents?
    P.S. Reader XI and earlier will no longer support Document Cloud PDF services as of May 20; see https://forums.adobe.com/docs/DOC-5891

  • Reading an XML file and write the contents to another xml file in java

    Hi,
    I am new to xml parsing.My requirement is that I am getting a message (xml) using ibm MQ in the ByteArrayInputStream format.I have to read this xml message and write to another file.
    I am creating a POC for this.
    First I used simple reading and writing concept but the output is "java.io.FileInputStream@3e25a5 "
    Sample xml file
    - <Client>
    <ClientId>1234</ClientId>
    <ClientName>STechnology</ClientName>
    <DTU_ID>567</DTU_ID>
    <ClientStatus>ACTIVE</ClientStatus>
    - <LEAccount>
    <ClientLE>678989</ClientLE>
    <LEId>56743</LEId>
    - <Account>
    <AccountNumber>9876543678</AccountNumber>
    </Account>
    </LEAccount>
    - <Service>
    <Cindicator>Y2Y</Cindicator>
    <PrefCode>980</PrefCode>
    <BSCode>876</BSCode>
    <MandatoryContent>MSP</MandatoryContent>
    </Service>
    </Client>
    code:
    import java.io.ByteArrayInputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class ByteArrayInputStreamToXml {
         public static void main(String srg[]) throws IOException{
              InputStream inputStream= new FileInputStream("C:\\soft\\test2\\sample1.xml");
              byte currentXMLBytes[] = inputStream.toString().getBytes();
              ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(currentXMLBytes);
              OutputStream out = new FileOutputStream("C:\\soft\\test\\data.xml");
              int read=0;
              byte[] bytes = new byte[1024];
              while((read = byteArrayInputStream.read(bytes))!= -1){
              out.write(bytes, 0, read);
              out.write( '\n' );
              inputStream.close();
              out.flush();
              out.close();
              System.out.println("New file created!");
    Please suggest me how can I use DOM/SAX parser ,I can see several code on net for reading xml file using SAX/DOM parser but writing an xml file after reading it using ByteArrayInputStream I am not getting .A help through some example Link will also be helpful for me.
    Thanks
    Sumit
    Edited by: user8687839 on Apr 30, 2012 2:37 AM
    Edited by: user8687839 on Apr 30, 2012 2:43 AM

    Thanks I got the result.
    package com.sumit.collections;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class ByteArrayInputStreamToXml {
         public static void main(String srg[]) throws IOException{
              InputStream inputStream= new FileInputStream("C:\\soft\\test2\\sample1.xml");
              ByteArrayOutputStream buffer = new ByteArrayOutputStream();
              int nRead; byte[] data = new byte[1024];
              while ((nRead = inputStream.read(data, 0, data.length)) != -1) {
              buffer.write(data, 0, nRead); } buffer.flush();
              byte currentXMLBytes[]= buffer.toByteArray();
              /* byte currentXMLBytes[] = inputStream.toString().getBytes();*/
              ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(currentXMLBytes);
              OutputStream out = new FileOutputStream("C:\\soft\\test\\data.xml");
              int read=0;
              byte[] bytes = new byte[1024];
              while((read = byteArrayInputStream.read(bytes))!= -1){
              out.write(bytes, 0, read);
              out.write( '\n' );
              inputStream.close();
              out.flush();
              out.close();
              System.out.println("New file created!");
    }

  • How read a pdf file and change TableCell height after reading it using itext api

    I have created a pdf form file using itext ( see class CreatingFormClass ) with itext PdfPTable and PdfPCell. It is done successfully .
    Now I  read this pdf file and filling this pdf file(see class FillingFormClass  ) and at this point i want to change  PdfPCell height () according to Items.
    It is possible or Not???
    My code is given below.
    Thanx in advance
    public class FillPdfFormMainClass {
    public static  String RESULT1 = "E:/BlankForm.pdf";
        public static  String RESULT2 = "E:/FilledForm.pdf";
        public static void main(String[] args) throws DocumentException, IOException {
            String empName="Rakesh Kumar Verma";
                    // This part is Dynamic. It can be 1 item Or can be 25 items
            String listOfItem="Item 1 \n Item 2 \n Item 3\n Item 4 \n Item 5 \n Item 6 \n Item 7 \n Item 8 \n Item 9";
            CreatingFormClass example = new CreatingFormClass(0);
            example.createPdf(RESULT1);
            FillingFormClass class1 = new FillingFormClass();
            class1.manipulatePdf(RESULT1, RESULT2,empName,listOfItem);
    public class CreatingFormClass implements PdfPCellEvent {
        protected int tf;
        public CreatingFormClass(int tf) {
            this.tf = tf;
        public void createPdf(String filename) throws DocumentException, IOException {
            Document document = new Document();
            PdfWriter.getInstance(document, new FileOutputStream(filename));
            document.open();
            PdfPCell cell;
            PdfPTable table = new PdfPTable(2);
            table.setWidths(new int[]{1, 2});
            table.addCell("Name:");
            cell = new PdfPCell();
            cell.setCellEvent(new CreatingFormClass(1));
            table.addCell(cell);
            table.addCell("Item List:");
            cell = new PdfPCell();
            cell.setCellEvent(new CreatingFormClass(2));
            cell.setFixedHeight(60);
            table.addCell(cell);
            document.add(table);
            document.close();
        public void cellLayout(PdfPCell cell, Rectangle rectangle, PdfContentByte[] canvases) {
            PdfWriter writer = canvases[0].getPdfWriter();
            TextField text = new TextField(writer, rectangle, String.format("text_%s", tf));
            text.setBackgroundColor(new GrayColor(0.95f));
            switch (tf) {
                case 1:
                    text.setText("Enter your name here...");
                    text.setFontSize(8);
                    text.setAlignment(Element.ALIGN_CENTER);
                    break;
                case 2:
                    text.setFontSize(8);
                    text.setText("Enter Your Address");
                    text.setOptions(TextField.MULTILINE);
                    break;
            try {
                PdfFormField field = text.getTextField();
                writer.addAnnotation(field);
            } catch (IOException ioe) {
                throw new ExceptionConverter(ioe);
            } catch (DocumentException de) {
                throw new ExceptionConverter(de);
    public class FillingFormClass {
        public void manipulatePdf(String src, String dest,String empName,String listOfItem) throws IOException, DocumentException {
            PdfReader reader = new PdfReader(src);
            PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(String.format(dest, empName)));
            AcroFields form = stamper.getAcroFields();
            form.setField("text_1", empName);
            form.setField("text_2", listOfItem);
            stamper.close();
            reader.close();

    Hi,
    I am facing the same problem. Please help me out. I just want to read a PDF file as bytes from one location and write it as another pdf file in some other location with a diolog box prompting to open or save in the location where we want.
    I executed the following code:
    try{
    File report =new File(location);
    BufferedInputStream in=new BufferedInputStream(new FileInputStream(report));
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachment; filename=" + report.getName());
    OutputStream outs = response.getOutputStream();
    int readlen;
    byte buffer[] = new byte[ 256 ];
    while( (readlen = in.read( buffer )) != -1 )
    outs.write( buffer, 0, readlen );
    outs.flush();
    outs.close();
    in.close();
    response.setStatus(HttpServletResponse.SC_OK);
    } catch (FileNotFoundException fileNotFoundException) {
    PrintWriter out= response.getWriter();
    out.print("<center><Font color = 'RED'><b>"+PxDSLUtils.getApplicationProperty("label.error.CTM_E017")+"</b></Font></center>");
    Though it prompts with open, save dialog box when i try to open directly or when i save it some where locally and then open it i am getting the following message " File is repaired ot damaged.Operation failed." Any idea about what can be done??? Its very urgent.Please suggest.
    I am not convetin to string just reading and writng as bytes itself.
    Thanks in advance,
    Mani

  • Read this: cocoon , ejb and jboss

    hi all ,
    read this , working on cocoon .
    Integrating cocoon with jBoss
    Download cocoon-war-2.1.7.war and then we have to
    deploy that to the jboss server , to deploy that , we
    started jboss server in standard mode and then copied
    the cocoon war file to
    /usr/local/jboss-4.0.0/server/standard/deploy/ folder
    and in the server console we got the message saying
    that the perticular war file is being deployed .Then
    run the cocoon home page using
    http://localhost:8080/cocoon-war-2.1.7/ .
    Deploying ejb in cocoon
    To deployment ejb in cocoon you should have an ejb
    container , so we have to integrate ejb with any
    application server , here we are using jBoss server.
    Here i'm using a js (java script ) file to invoke an
    ejb client , i'm using the command
    var query = new Packages.hibernate.logging.Query();
    where hibernate.logging is the package and Query is
    the bean's client , and Packages is the inbuilt
    keyword for accessing packages. Then from the client
    you can call the bean class as we normally calling the
    bean. If you are using data base in the bean you have
    to configure the cocoon.xconf file as
    <datasources>
    <jdbc logger="core.datasources.personnel"
    name="personnel">
    <pool-controller max="10" min="5"/>
    <dburl>jdbc:hsqldb:hsql://localhost:9002</dburl>
    <user>sa</user>
    <password/>
    </jdbc>
    <jdbc name ="hibernatedbds">
    <pool-controller min = "5" max = "10" />
    <dburl>jdbc:postgresql://192.168.0.129:5432/hibernatedb</dburl>
    <user>xxxxx</user>
    <password/>
    </jdbc>
    and in the bean calss we can access the database as
    public String xxxxxxx(String user, String
    password,Session session) throws RemoteException
         try
         if(session == null)
              System.out.println("Session is null");
         Transaction tx = session.beginTransaction();
         org.hibernate.Query q = session.createQuery("from
    hibernate.logging.User as user where user.users =
    :users and      user.password = :passwords");
         q.setString("users",user);
         q.setString("passwords",password);
         List list = q.list();
         tx.commit();
         if(list.isEmpty())
              return "false";
         catch(Exception e)
              e.printStackTrace();
              System.out.println("Called EJB");
              return "true";
    and in the client program we'll give
    String value = remote.Validate(user,password,session);
    to access the remote method
    when the program is ready and compiled create the jar
    file and then deploy it to the deploy folder of jboss
    and a copy od the same jar file to the
    cocoon/WEB-INF/lib/. Then you can run the program .
    regards
    Peeths

    And ? What happens next?
    Gosh! That suspense is killing me...

  • EJB annotations are not documented , versus Hibernate and JBoss seam do

    I have an application that contains EJB3 annotations, Hibernate Annotations and JBoss Seam annotations in the java code.
    When I generate the javadoc, the Hibernate and JBoss Seam annotations show by the side of the members and methods who has them, like, for example
    @Name(value="authenticator")
    @Scope(value=SESSION)
    @AutoCreate
    public class AuthenticatorImpl
    <dt>extends java.lang.Object </dt><dt>implements </dt>
    or, another example,
    h3. facesContext{noformat}@In(value="org.jboss.seam.faces.facesContext",
    create=true)
    private javax.faces.context.FacesContext facesContext{noformat}
    However, none of the EJB3 annotations included in the code are being dieplayed in the javadocs.
    Does someone knows if there is any reason why this should happen?
    This is my javadoc command:
    javadoc -version -d doc2 -sourcepath src\model;src\action -classpath "lib/core.jar;lib/jboss-embedded-api.jar;lib/jsr250-api.jar;classes/test;lib/hibernate.jar;lib/log4j.jar;lib/testng.jar;lib/ojdbc14.jar;lib/hibernate-commons-annotations.jar;lib/hibernate-search.jar;lib/hibernate-entitymanager.jar;lib/drools-compiler.jar;lib/richfaces-impl.jar;lib/jboss-cache.jar;lib/jboss-seam.jar;lib/janino.jar;lib/hibernate-annotations.jar;lib/richfaces-api.jar;lib/ejb-api.jar;lib/mvel14.jar;lib/jbosssx.jar;bootstrap;lib/jbpm-jpdl.jar;lib/commons-beanutils.jar;lib/lucene-core.jar;lib/jgroups.jar;lib/jsf-api.jar;lib/jboss-el.jar;lib/el-api.jar;lib/antlr-runtime.jar;lib/jstl.jar;classes/model;lib/antlr.jar;lib/persistence-api.jar;lib/jsf-facelets.jar;classes/action;lib/richfaces-ui.jar;lib/mail.jar;lib/drools-core.jar;lib/jboss-seam-debug.jar;lib/hibernate-validator.jar;lib/servlet-api.jar;lib/jta.jar" -private mil.navy.med.rota.model mil.navy.med.rota.security mil.navy.med.rota.action.util mil.navy.med.rota.action.util.mpd mil.navy.med.rota.action.mpd mil.navy.med.rota.action.referrals mil.navy.med.rota.model.referrals mil.navy.med.rota.action.trainman mil.navy.med.rota.model.trainman -use -version -author -splitindex
    The version of javadoc used is
    Standard Doclet 1.6.0.0_3
    Aticipated thanks!

    Nevermind, the issue was that my persistence.xml did not contain the following property:
    <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
    Therefore, the tables were not being created upon deployment.
    Still, I would expect to see entity beans listed in the WebLogic console.

  • EJB and JBOSS

    Hi, My company is currently trying to migrate from Weblogic to JBoss.
    We have all the jar, war, and xml file.
    However, I'm not familiar with all these.
    Could someone explain to me what;s the appropriate things to do.
    All i know is that putting the war or jar file in a certain directory on Weblogic would result in those files being deployed.
    Would JBoss work the same way?
    Can I just put these files and will it get deployed?
    I have looked through the web and mostly what they're talking about is creating ejbs from scratch (and .ear file also new thing to me) ... which is too technical for me.
    Can someone suggest a solution please.
    I'm a newbie to this technology.
    All help/reply would be a great help.
    thanks in advance.

    Greetings,
    Would JBoss work the same way?
    Can I just put these files and will it get deployed?Yes, JBoss offers a similar deployment strategy. Presuming you are using JBoss 3.x and starting with default configuration you would place your components into ${JBOSS_HOME}/server/default/deploy and JBoss will auto-deploy them - er, assuming there are no errors in your components... ;) If there are errors then these will either be displayed on the console or in the 'console log' file depending on your startup strategy.
    I have looked through the web and mostly what they're
    talking about is creating ejbs from scratch (and .ear
    file also new thing to me) ... which is too technical
    for me.
    Can someone suggest a solution please.
    I'm a newbie to this technology.Where most of your difficulties are likely to play is in configuring your application's infrastructure - i.e. resources, security model, transactions, etc. Application Servers tend to differ quite a bit on such things (rather, on how to do them...), and JBoss is no exception. Furthermore, JBoss does not have a native GUI for these things which may complicate the matter even more. The best place to start for configuration issues is with the JBoss 3.0.x QuickStart Guide. This book-length guide provides a lot more detail on these matters than might be expected from typical "quick start" document and is available in PDF format for free from the JBoss site Documentation page. While you're there, it is worth-while to investigate the commercial documentation offerings on the same page...
    All help/reply would be a great help.
    thanks in advance.Regards,
    Tony "Vee Schade" Cook

Maybe you are looking for