Trying to use JDO objects as DTO over EJB???

I have implemented the implemented the seralize interface in my JDO object
classes. My JDO classes are only a data framework, I use them on both my
EJB tier and I would like to use them on the web tier.... My thinking was to
serialize the object graph and pass it between the EJB and web tier.... This
seemed like a very good and easy way to painless move my object graph
around. However, I am getting compile problems trying to compile the EJB
methods.
I have tried two variations on the method signature:
public String testDeal (Deal myDeal) and
public Deal testDeal (String name)
where Deal is the root of my JDO object graph. The compile time error that
results by trying to have a JDO enhanced class in the EJB method signature
is shown below.
IS THIS A LIMATION OF JDO or am I doing something wrong?
Second question
=============
If I can't pass a JDO object as my Data Transfer object then I have to use
my fall back idea.... I am currently sub-classing the JDO with a simple
wrapper class. I can sucessfully pass these non-JDO classes as DTO's.....
but I have a simple question.... What is an elegant way of using DTO's to
populate a inheritance structure? This is not really a Java
question....but my problem is that I have a list of a base class that I am
carry around... the list can an one of many subclasses in it... I can easily
determine the type of the class that I get out... but to then use this DTO
to create an a JDO ojbect class instance without a case statement has me
stumped... I hoped this was a common pattern and that someone had an
elegent way to do this mapping..... I thought of a utility class or a
logical to physical mapping structure similar to Struts action mapping, but
I was wondering if there was a better way. Thanks for any suggestions.
java.lang.ExceptionInInitializerError: java.util.MissingResourceException:
Can't find bundle for base name javax.jdo.Bundle, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:6
95)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:667)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:547)
at javax.jdo.I18NHelper.loadBundle(I18NHelper.java:143)
at javax.jdo.I18NHelper.<init>(I18NHelper.java:49)
at javax.jdo.I18NHelper.getInstance(I18NHelper.java:61)
at javax.jdo.spi.JDOImplHelper.<clinit>(JDOImplHelper.java)
at aqueduct.Customer.<clinit>(Customer.java)
at java.lang.reflect.Field.getLong(Native Method)
at com.ibm.rmi.io.ObjectStreamClass.init(ObjectStreamClass.java:495)
at
com.ibm.rmi.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:167)
at com.ibm.rmi.io.ObjectStreamClass.lookup(ObjectStreamClass.java:120)
at com.ibm.rmi.util.RepositoryId.createHashString(RepositoryId.java:627)
at com.ibm.rmi.util.RepositoryId.createForJavaType(RepositoryId.java:786)
at com.ibm.rmi.util.RepositoryId.createForAnyType(RepositoryId.java:871)
at com.ibm.rmi.util.RepositoryId.createForAnyType(RepositoryId.java:855)
at com.ibm.tools.rmic.iiop.Type.setRepositoryID(Type.java:990)
at com.ibm.tools.rmic.iiop.CompoundType.initialize(CompoundType.java:733)
at com.ibm.tools.rmic.iiop.ValueType.initialize(ValueType.java:241)
at com.ibm.tools.rmic.iiop.ValueType.forValue(ValueType.java:101)
at com.ibm.tools.rmic.iiop.CompoundType.makeType(CompoundType.java(Compiled
Code))
at
com.ibm.tools.rmic.iiop.CompoundType$Method.<init>(CompoundType.java(Compile
d Code))
at
com.ibm.tools.rmic.iiop.CompoundType.addAllMethods(CompoundType.java(Compile
d Code))
at com.ibm.tools.rmic.iiop.ValueType.initialize(ValueType.java:230)
at com.ibm.tools.rmic.iiop.ValueType.forValue(ValueType.java:101)
at com.ibm.tools.rmic.iiop.CompoundType.makeType(CompoundType.java(Compiled
Code))
at
com.ibm.tools.rmic.iiop.CompoundType$Method.<init>(CompoundType.java(Compile
d Code))
at
com.ibm.tools.rmic.iiop.CompoundType.addAllMethods(CompoundType.java:1279)
at
com.ibm.tools.rmic.iiop.RemoteType.isConformingRemoteInterface(RemoteType.ja
va:207)
at com.ibm.tools.rmic.iiop.RemoteType.initialize(RemoteType.java:156)
at com.ibm.tools.rmic.iiop.RemoteType.forRemote(RemoteType.java:75)
at
com.ibm.tools.rmic.iiop.CompoundType.addRemoteInterfaces(CompoundType.java:1
411)
at
com.ibm.tools.rmic.iiop.ImplementationType.initialize(ImplementationType.jav
a:151)
at
com.ibm.tools.rmic.iiop.ImplementationType.forImplementation(ImplementationT
ype.java:77)
at com.ibm.tools.rmic.iiop.StubGenerator.getTopType(StubGenerator.java:128)
at com.ibm.tools.rmic.iiop.Generator.generate(Generator.java:263)
at sun.rmi.rmic.Main.doCompile(Main.java:547)
at sun.rmi.rmic.Main.compile(Main.java:137)
at sun.rmi.rmic.Main.main(Main.java:786)
error: An error has occurred in the compiler; Please visit the URL
http://www.ibm.com/java/jdk/support for information on
investigating/reporting this problem. 1 error RMIC Command returns RC = 1.
The problems which stopped RMIC are displayed, and have also been recorded
in the log file.

Brian,
I have used this approach quite successfully with BEA WebLogic Server 7.0.
The JDO enhanced class can act as both the DAO for persistence, and the DTO
in its transient form. The client can rely on network class loading, so long
as you package your EJB-JAR or EAR to contain the JDO jars.
I think your compile problem is probably just a classpath issue.
Ben
"Brian Smith" <[email protected]> wrote in message
news:[email protected]...
>
>
>
I have implemented the implemented the seralize interface in my JDO object
classes. My JDO classes are only a data framework, I use them on both my
EJB tier and I would like to use them on the web tier.... My thinking wasto
serialize the object graph and pass it between the EJB and web tier....This
seemed like a very good and easy way to painless move my object graph
around. However, I am getting compile problems trying to compile the EJB
methods.
I have tried two variations on the method signature:
public String testDeal (Deal myDeal) and
public Deal testDeal (String name)
where Deal is the root of my JDO object graph. The compile time errorthat
results by trying to have a JDO enhanced class in the EJB method signature
is shown below.
IS THIS A LIMATION OF JDO or am I doing something wrong?
Second question
=============
If I can't pass a JDO object as my Data Transfer object then I have to use
my fall back idea.... I am currently sub-classing the JDO with a simple
wrapper class. I can sucessfully pass these non-JDO classes as DTO's.....
but I have a simple question.... What is an elegant way of using DTO's to
populate a inheritance structure? This is not really a Java
question....but my problem is that I have a list of a base class that I am
carry around... the list can an one of many subclasses in it... I caneasily
determine the type of the class that I get out... but to then use this DTO
to create an a JDO ojbect class instance without a case statement has me
stumped... I hoped this was a common pattern and that someone had an
elegent way to do this mapping..... I thought of a utility class or a
logical to physical mapping structure similar to Struts action mapping,but
I was wondering if there was a better way. Thanks for any suggestions.
java.lang.ExceptionInInitializerError: java.util.MissingResourceException:
Can't find bundle for base name javax.jdo.Bundle, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:6
95)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:667)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:547)
at javax.jdo.I18NHelper.loadBundle(I18NHelper.java:143)
at javax.jdo.I18NHelper.<init>(I18NHelper.java:49)
at javax.jdo.I18NHelper.getInstance(I18NHelper.java:61)
at javax.jdo.spi.JDOImplHelper.<clinit>(JDOImplHelper.java)
at aqueduct.Customer.<clinit>(Customer.java)
at java.lang.reflect.Field.getLong(Native Method)
at com.ibm.rmi.io.ObjectStreamClass.init(ObjectStreamClass.java:495)
at
com.ibm.rmi.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:167)
>
at com.ibm.rmi.io.ObjectStreamClass.lookup(ObjectStreamClass.java:120)
at com.ibm.rmi.util.RepositoryId.createHashString(RepositoryId.java:627)
at com.ibm.rmi.util.RepositoryId.createForJavaType(RepositoryId.java:786)
at com.ibm.rmi.util.RepositoryId.createForAnyType(RepositoryId.java:871)
at com.ibm.rmi.util.RepositoryId.createForAnyType(RepositoryId.java:855)
at com.ibm.tools.rmic.iiop.Type.setRepositoryID(Type.java:990)
at com.ibm.tools.rmic.iiop.CompoundType.initialize(CompoundType.java:733)
at com.ibm.tools.rmic.iiop.ValueType.initialize(ValueType.java:241)
at com.ibm.tools.rmic.iiop.ValueType.forValue(ValueType.java:101)
atcom.ibm.tools.rmic.iiop.CompoundType.makeType(CompoundType.java(Compiled
Code))
at
com.ibm.tools.rmic.iiop.CompoundType$Method.<init>(CompoundType.java(Compile
d Code))
at
com.ibm.tools.rmic.iiop.CompoundType.addAllMethods(CompoundType.java(Compile
d Code))
at com.ibm.tools.rmic.iiop.ValueType.initialize(ValueType.java:230)
at com.ibm.tools.rmic.iiop.ValueType.forValue(ValueType.java:101)
atcom.ibm.tools.rmic.iiop.CompoundType.makeType(CompoundType.java(Compiled
Code))
at
com.ibm.tools.rmic.iiop.CompoundType$Method.<init>(CompoundType.java(Compile
d Code))
at
com.ibm.tools.rmic.iiop.CompoundType.addAllMethods(CompoundType.java:1279)
at
com.ibm.tools.rmic.iiop.RemoteType.isConformingRemoteInterface(RemoteType.ja
va:207)
at com.ibm.tools.rmic.iiop.RemoteType.initialize(RemoteType.java:156)
at com.ibm.tools.rmic.iiop.RemoteType.forRemote(RemoteType.java:75)
at
com.ibm.tools.rmic.iiop.CompoundType.addRemoteInterfaces(CompoundType.java:1
411)
at
com.ibm.tools.rmic.iiop.ImplementationType.initialize(ImplementationType.jav
a:151)
at
com.ibm.tools.rmic.iiop.ImplementationType.forImplementation(ImplementationT
ype.java:77)
atcom.ibm.tools.rmic.iiop.StubGenerator.getTopType(StubGenerator.java:128)
>
at com.ibm.tools.rmic.iiop.Generator.generate(Generator.java:263)
at sun.rmi.rmic.Main.doCompile(Main.java:547)
at sun.rmi.rmic.Main.compile(Main.java:137)
at sun.rmi.rmic.Main.main(Main.java:786)
error: An error has occurred in the compiler; Please visit the URL
http://www.ibm.com/java/jdk/support for information on
investigating/reporting this problem. 1 error RMIC Command returns RC = 1.
The problems which stopped RMIC are displayed, and have also been recorded
in the log file.

Similar Messages

  • Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge

    Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge is missing, so not clear how to import. Overall it seems unstable. Am I doing something wrong? Trying to evaluate before buying so working on a trial version (14 days left), but a bit concerned with Captivate 8 Performance. Please help! :-

    Hi Vikram and Lilybiri,
    Thanks for your responses :-)
    I'm working on Windows 8.1... I think that I may have found the issue... I was saving the file in a project directory rather than the default My Captivate Projects folder...
    Perhaps Captivate was struggling to find resources it needed?
    It hasn't crashed for a while now, though it is struggling - I'm working with a 54 slide PPT presentation that is linked and it takes a very long time to interact.
    Sometimes it says that I've removed slides, which I haven't?
    Best,
    Christy.

  • HT201272 I have been trying to use my money for well over a month but iTunes want questions its a voucher not my bant accaunt  I wouldn't trust you with my bank account  you manage to make me feel like a criminal  trying to get my On my way! Money I phone

    All I want is to use my voucher and this is really annoying me I phoned your sercerity some time ago and answered there questions on the phone but the same questions on the iPad won't work I've been made to feel like a criminal  it's a voucher not a bank account  I had put voucher in before with no problems until this stupid question came up now I don't have there phone number I did phone someone but I think she had problems understanding English  in not the criminal here I'm not the one holding my money you lot are

    We are all itunes users just like you.  We are not Apple.
    You can reset your security questions.
    Rescue email address and how to reset Apple ID security questions

  • Using JDO from webdynpro component.

    Hi,
    I am using JDO to access the database.I have created the persistance layer, businees layer following the tutorial "getting started with JDO".  they are using Servlets and html as front end. But i need to use webdynpro as front end.can we acess the methods in the business logic from the webdynpro component?
    If yes, can you please let me know how to access Database form webdynpro components?
    Thanks in Advance,
    Lakshmi.

    Hallo Lakshmi,
    It is technically possible to wrap JDO classes/interfaces using the new JavaBean ModelImport (read WebLog /people/david.beisert/blog/2004/10/26/webdynpro-importing-java-classes-as-model)
    But this is usually not desirable to achieve optimal scalability and performance.
    Why? JDO objects generally require holding locks of the persistent objects they represent. By binding these objects directly in Web Dynpro contexts, locks would remain attained as long as the user interaction is taking place. JDO theoretically could better adress this, but SAP's implementation currently does not allow attaching/detaching JDO objects from the transaction.
    => the best way of doing this, is by using JDO objects only as DataTransport objects. Someone familiar with JDO should know how this design pattern works. This means, that these JDO objects are not themselves persistent, but are only used to hold transient data. These JDO classes can be imported into Web Dynpro (using the JavaBean model) and bound to Web Dynpro contexts. But persisting the data means to hand the DTOs over to a service layer, which then copies the data, acquires the locks, and saves and commits the data to the persistent storage.
    No tutorials for such a scenario exist at the moment.
    Greetings, Bertram

  • JDO object id problem when working with an appserver

    Hi,
    I'm running into a problem when passing a JDO object id as an argument to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object is not
    Serializable, I'm passing the object id to the bean constructor, so that the
    bean can look up the object again, this time in the appserver, and wrap it,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on the fly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main" java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no security manager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

    Hi David,
    I'm trying to use JDO to completely replace Entity Beans. Of course, this
    leaves me with an important question: how do you make the JDO object
    available remotely? My answer is to wrap JDO objects with a stateful
    session bean, and pass through method calls made on the bean to the JDO
    object. Both the bean and the JDO object will implement some interface, so
    you can use an object in a client without any knowledge as to whether it is
    a bean or a JDO object. ( Important note: I can get away with this because
    of another cool Solarmetric product, the session bean creator, which
    enhances a simple java object into a session bean )
    Now, once I have some interface implementation, maybe a local persistent
    object, maybe a remote object, I will want to do something with it. There
    are a couple considerations here. First, if I want to edit the object, I
    need to make sure a transaction gets started. I do this by having my
    session beans take care of starting and committing transactions. Since I
    have written my own JDO Factory that takes care of synchronizing PM caches
    across transactions, this has the effect of keeping all my caches in the
    appserver up-to-date as well ( more on that if you're interested ). So, in
    order to call a 'set' method, I need to ensure that the object I have is in
    it's "remote" state, so-to-speak.
    So I created an interface called RemotePersistentObject, which all these
    other interfaces extend. It includes two methods, getRemoteObject (), and
    getObjectId (). The reason for getObjectId (), instead of
    getPersistentObject (), is that often times you don't want your JDO objects
    to be Serializable, especially if you have JDO objects that you want to
    guarantee remain unique ( say, no two Stock objects have the same ticker
    symbol ). Besides, you want the remote object to represent the same
    concept, and as soon as you serialize the persistent object, you have a copy
    of the original JDO object that will no longer do nice things you'd like it
    to do, like get updated when some transaction in a different thread modifies
    a field.
    So, to get around this serialization issue, I just pass the JDO object id to
    the bean, and have the bean lookup and wrap the appropriate JDO object on
    the server. I wrote a couple optional base classes that provide a lot of
    the functionality for this, since it turns out that wrapping a
    non-serializable JDO object is non-trivial. The problem there is that when
    the bean passivates, it serializes the state of the session bean... oops.
    So the base classes take care of keeping a transient reference to the actual
    object, while keeping a non-transient ref to the object id. All attempts to
    use the actual JDO object are filtered through a getObject () method, which,
    if the transient ref has disappeared due to bean passivation, looks up the
    object in a read-only PM again.
    Hmmmm. Lots of stuff here. I'll stop here and answer any questions (
    criticisms ) you may have.
    -Eric
    "David Ezzio" <[email protected]> wrote in message
    news:[email protected]...
    Eric,
    Curious minds want to know: what are you up to here? I found this to
    be a very interesting post, and I would like to know more about the
    architecture you are using and its motivation if you can share it.
    David Ezzio
    Eric Lindauer wrote:
    Hi,
    I'm running into a problem when passing a JDO object id as an argument
    to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object isnot
    Serializable, I'm passing the object id to the bean constructor, so thatthe
    bean can look up the object again, this time in the appserver, and wrapit,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on thefly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main"java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no securitymanager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

  • Not able to use Client Object Model in Visual Webpart SandBox Solution?

    Hi,
    I am trying to use client object model in visual webpart in sandbox solution but i am getting unexpected error but if i remove client object model code webpart works fine?
    any help is appreciated.
    Regards,
    Gaurav Verma

    Check this article for your answer
    How to leverage the Client Object Model in a Sandbox Visual Web Part
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Inventory Management using Custom Object 07

    Hi Guys,
    I have been trying to use custom object 07 as Inventory.
    I have renamed custom object 07 as Inventory. I have verified that already a relationship exists between this custom object and Products. So, I modified the Inventory Page Layout to make the products related information section visible. I have created access profiles and role appropriately. I was able to see the products related information section in the Inventory detail page but I didn't see any means of associating records with the inventory like buttons.
    Did I miss any step? Also could you point me to documentation related to custom objects?
    Thanks and Regards
    Naren B

    Hi Bobb. Thanks for the reply.
    My requirement doesn't require any reports to be developed. So, I didn't think about it. I tried to use custom object 7 for as Inventory. So, i just renamed Custom object 7 as Inventory. Already there is a relationship existing between custom object 7 and products. So, I went to the related information layout of Inventory(CO-7) and used the standard information layout provided for products. But, I didn't find any buttons to associate a product in the related information section under inventory. My main requirement is to manage inventory transactions. When a shipment is receiving the available quantity and the quality of the product have to be changed accordingly and so on. Currently I am using custom objects 1,2 and 3 for this purpose and i was able to achieve the requirement. Don't know what was wrong. May be the button was disabled purposefully. I will check it out and i will let you know. Can you explain in brief in two to three steps the procedure you followed ?
    Thanks and Regards
    Naren

  • Exception when trying to create pool Object

    I've been trying to get the forte 4.0ee ProductRichClient example for container managed beans to work.
    After the deployment to Sun One I got following exception when I'm using the client:
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO:
    ---------AppClient Container--------
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main setTagetServerProperties
    INFO: ACC001:Using ClientContainer file: [C:\Sun\AppServer7\appserv\domains\domain1\server1\config\sun-acc.xml].
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC014: ORB host name: [NOD]
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC013: ORB port number: [3700]
    18.10.2002 10:56:21 com.sun.enterprise.appclient.AppContainer preInvoke
    INFO: ACC007: Initiating Login ...
    18.10.2002 10:56:21 com.iplanet.ias.appclient.Main <init>
    INFO: ACC009: Load Application Class: [CMPClient.SwingClient]
    18.10.2002 10:56:23 com.iplanet.ias.appclient.Main <init>
    INFO: Application main() finished normally
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(Unknown Source)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at CMPServer._ProductHome_Stub.create(Unknown Source)
    at CMPClient.SwingClient.AddRow_ButtonActionPerformed(SwingClient.java:127)
    at CMPClient.SwingClient.access$100(SwingClient.java:24)
    at CMPClient.SwingClient$2.actionPerformed(SwingClient.java:89)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1525)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1582)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
    at java.awt.Container.dispatchEventImpl(Container.java:1568)
    at java.awt.Window.dispatchEventImpl(Window.java:1581)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Caused by: java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.postInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:33)
    at CMPServer._ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getPooledEJB(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:25)
    ... 9 more
    Caused by: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
    at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(Unknown Source)
    ... 15 more
    Any thoughts on why this exception is being thrown?
    Thanks for any help!
    Richard

    this sample has been tested by the SunONE TOOLs QA
    and is working. Please check your deployment descriptors
    and use the cmp samples which come with S1AS to see if your
    descriptors are correct.

  • Caught Exception when trying to create pool Object

    Hi All,
    When a stateless session bean is looking up the entity bean following 'could not create pool object' exception is throwing.
    [14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5070: Exception creating stateless session bean : [java.lang.reflect.InvocationTargetException]
    [14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5017: Exception while running preinvoke : ejbName = [ConfigSessionBean]
    [14/Jan/2003:09:12:50] SEVERE ( 1048):
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: c
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
    at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB:
    java.lang.reflect.InvocationTargetException
    at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(Unknown Source)
    ... 13 more
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
    at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    I have also specified the following properties in the sunejbjar.xml for the session bean.
    <ejb>
    <bean-pool>
    <steady-pool-size>2</steady-pool-size>
    <resize-quantity>5</resize-quantity>
    <max-pool-size>200</max-pool-size>
    <pool-idle-timeout-in-seconds>3600</pool-idle-timeout-in-seconds>
    </bean-pool>
    </ejb>
    --Muthu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Muthu,
    To find out whether the problem is with container setting or with your application, can you create a simple stateless session bean and check if it works fine. If it works fine send me ejb-jar.xml and sun-ejb-jar.xml for your application.
    Deepak

  • Trying to use Web LCID property to get the List name in client object Model

    Hi ,
    I am trying to change the "Personal Documents" list NoCrawl property under MySite using SharePoint Client Object Model. As we use  web.Lists.GetByTitle("Personal
    Documents"); method to get the list,but here problem is :for different language List name is in their language.So I tried to use LCID property of the WEB and
    have taken key-value pair (PersonalSiteOnet_List_PersonalDocuments) from the resource file for that language from 14 hive.
    Example:I have selected Spanish language .there are so many LCID for Spanish language but Microsoft has given only one language pack for Spanish.
    Then,My Question is that
    "All LCID for Spanish language are using same Spanish language pack dictionary file OR something else"
     

    Hi,
    According to your post, my understanding is that your requirement is getting list in different language.
    Here are two ways for your reference:
    1. We can use getById method instead, so that we can avoid the language issue.
    2. We can use an array to store the different list name in different language in you JavaScript code, then use the code snippet below to get the list:
    var userLcid =_spPageContextInfo.currentLanguage;
    var localizedStrings = {
    ListName: {
    _1033: "EnglishName",
    _3082: "SpanishName"
    var listName=localizedStrings.ListName["_" + userLcid];
    var list=web.Lists.getByTitle(listName);
    More information:
    http://msdn.microsoft.com/en-us/library/hh670609.aspx
    http://wellytonian.com/2012/11/language-packs-sharepoint-2010/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • PS CS5 Extended on Windows -  When trying to use the clone stamp and/or healing brush as soon as I move the cursor over the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  W

    PS CS5 Extended on Windows
    When trying to use the clone stamp and/or healing brush as soon as I move the cursor from the toolbar over to the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  This just started tonight.  What's causing this weird behaviour?

    What are the settings in Window > Clone Source?

  • How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?

    How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?
    The system I'm have is a Mac-mini that had SL on it and no SuperDrive.  I have also call Apple Support and they have really have not been to much help over 1st did my up grade to Lion and Installed the Lion Server.... it lost my SSL that I paid for and kill almost on of my server setting, plus kill all my web servers (using apache vhosts), and not to say the LDAP will even let remote users login to your laptops.
    PS: There is no way that I'm going to buy a Install USB from Apple... They have over billed me over $300.00 because the Apps Store still has bugs (Glad I did not write that App/Service)
    If there is anyone that can give in the information to create a USB install stick, I would be very thinkful.

    Here you are bro, courtesy of "softpedia.com"....brilliant site!!!
    If you ever had problems with your Mac OS X installation you know that the first thing you should do is to check the startup volume using Disk Utility.
    After the check has ended and, if the errors exceed a certain level of seriousness, the Disk Utility application will require you to restart your Mac and use its Mac OS X Install disc counterpart.
    Other users may have to reinstall OS X altogether, but will find, or already know, that their SuperDrive (a CD/DVD reader and write combo drive) is not functioning properly and it will not be able to read the Install disc.
    Although this might happen to Mac OS X Leopard users due to faultyhardware, the vast majority of problematic SuperDrives will be encountered inside Snow Leopard running Macs.
    This is due to the updated SuperDrive firmware included in either the Install disc or the software updates one has to install to reach the latest version of OS X, namely 10.6.6.
    This can be fixed by flashing the SuperDrive’s stock firmware using free command line tools that one can find for free online (I will write about this process also, but at a later time because this article only focuses on allowing you to create your own alternative USB boot disc).
    If you are reading this last bit of information with skepticism, than you should know that it happened to me too. Despite all my tries to make it work properly, the SuperDrive kept on munching any inserted DVDs and just popped them out in about twenty seconds.
    The workaround to this issue was to create my own Leopard bootable USB memory stick. I am not suggesting a Snow Leopard bootable stick mainly because there are lots of users that have decided to buy the cheaper, Upgrade version, which I have not tested and, therefore, I’m not sure if it will work properly once written to a USB disk.
    And now, here are the exact steps you should follow in order to obtain a fully bootable Leopard (or Lion) Install disc.
    Step 1 (If you already have the Leopard install disc DMG file you can skip to Step 2)
    Launch Disk Utility (you can find it inside /Applications/Utilities). Here select the Leopard Install disc in the list of drives on the left and click on the New Image menu entry at the top of the window. A save message will appear where you will have to select the Desktop as a destination.
    Step 2
    After Disk Utility has finished creating the Leopard DMG, insert your USB stick and erase all data and reformat the disk. To do this select the USB in the list of drives on the left and, after clicking on the Erase tab on the right side of the window, choose the Mac OS Extended (Journaled) format and click the Erase button beneath.
    Step 3
    After the USB has been reformatted, download the SuperDuper app from HERE and launch it. Once SuperDuper starts, you will only have to select the DMG in the Copy drop-down menu, your USB memory stick on the right and hit the “Copy Now” button.
    One can also use Disk Utility for this task but creating a bootable USB stick failed 2 out 4 times when copying the DMG to the stick (with the exact same settings each time). Creating the bootable stick using SuperDuper proved to be the perfect way to do it because it worked each of the 4 times I tested it.
    The steps above can also be used to create a bootable Mac OS X Lion USB by using the InstallESD.dmg image you can find inside the Lion installer (named “Install Mac OS X Lion.app”) downloaded from the Mac App Store in the /Applications folder.
    To locate the InstallESD.dmg right click the Lion installer, select the “Show Package Contents” entry, go inside the “Contents” folder, and from there into the “SharedSupport” folder. Inside this folder you can find the InstallESD.dmg you can use to create your own bootable Mac OS X Lion USB stick. To do so, go to the third step described above and use the InstallESD.dmg as the DMG to be copied to your USB disc.
    That’s it! Once the process ends you will have a fully bootable Leopard (or Lion) USB disk that you can use as an alternative to the Apple’s DVD Install disc that comes bundled with all Macs.
    To use your newly created bootable disk you will have to restart the Mac, press and hold the OPTION key until the StartupManager appears. Here, select the Mac OS X Install disk using your keyboard arrows and press return to start from the selected drive.

  • I purchase Adobe Elements Photoshop 12 & Premiere 12 together from a camera shop in town.  When I tried to use the Premiere, it splashed "created with the trial verson" over all of the photos. How can this unsightly watermark be removed. It has severely h

    I purchased  Adobe Elements Photoshop 12 & Premiere 12 together from a camera shop in town.  When I tried to use the Premiere, it splashed "created with the trial version" over all of the photos. How can this unsightly watermark be removed. It has severely hampered my timeline to start and finish this project. Why would a purchase software product purport to be a "trial" version?

    This indicator will appear when you have not registered your product or typed in the serial number for the product.
    Once you've added the serial number, any future products will not display this indicator.
    To remove this this indicator from videos created before you added the serial number, you'll need to delete the rendered files.

  • I bought my iPhone on Friday and when I tried to use it to make a           call the screen had turned green - as if a green filter had been placed over it.  When I turned the phone sideways the color turned to magenta. Anyone else have this problem?

    I bought my iPhone on Friday and when I tried to use it to make a call (after I had left the store)  the screen had turned green - as if a green filter had been placed over it.  When I turned the phone sideways the color turned to magenta. Anyone else have this problem? I plan on exchanging the phone but can't get there until later this week.

    Next time you post here, you might think about using a title and the provide your description below.

  • What is the use Business objects over WAD.

    Hi Folks,
    what is the use Business objects over WAD.
    How sap bw is going to use Business Objects.
    Thanks,
    Cheta.

    hi,
    A business object is a master record within the Measurement System, and is defined as part of the measurement class within Customizing.
    Examples of business objects are wells, well completions, and measurement points.
    Once the measurement object is maintained, it is saved with the business object so that when viewed, the measurement object is part of the business object.
    regards,
    Siddharth.

Maybe you are looking for