Bug! Hot-deploying the same bean more than once results in a DeploymentException!
Hi all,
Anyone else having this problem? When re-deploying an EJB within a
running WL server 4.5.1 w/ sp9 more than once results in the following
DeploymentException. The first time we re-deploy it works fine, but any
re-deployments after that fail.
This is potentially fatal in that if we have to make more than one
change to a bean over time and re-deploy those changes, we have to cycle
the server, which is NOT acceptable for a production environment!
Any clues or workarounds would be greatly appreciated.....Thanks!
BP
[xxxx.xxxx.com] < /pkg/bea > java -classpath
/pkg/bea/classes:/pkg/bea/lib/weblogicaux.jar weblogic.deploy -redeploy
xxxxxxx file:/pkg/bea/classes/OurSessionBean.jar
weblogic.ejb.common.DeploymentException: Unable to create bean
classloader:
weblogic.ejb.common.DeploymentException: loading EJB JAR
/local/pkg/bea/depot/weblogic-4.51/classes/OurSessionBean.jar; nested
exception is:
java.io.EOFException
java.io.EOFException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:35)
at java.io.EOFException.<init>(EOFException.java:43)
at java.io.DataInputStream.readUnsignedShort(Compiled Code)
at
weblogic.utils.classfile.LineNumberTable_attribute$line_num_struct.read(Compiled
Code)
at
weblogic.utils.classfile.LineNumberTable_attribute.read(Compiled Code)
at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
at weblogic.utils.classfile.Code_attribute.read(Compiled Code)
at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
at weblogic.utils.classfile.ClassMember.read(Compiled Code)
at weblogic.utils.classfile.MethodTable.read(Compiled Code)
at weblogic.utils.classfile.ClassFile.read(Compiled Code)
at weblogic.utils.classfile.ClassFile.<init>(Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(Compiled
Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.redeploy(Compiled
Code)
at
weblogic.ejb.internal.EJBJarDeployment.redeploy(EJBJarDeployment.java:629)
at
weblogic.ejb.internal.EJBManagerImpl.redeploy(EJBManagerImpl.java:266)
at
weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:169)
at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
at
weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(Compiled
Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
at java.lang.Throwable.fillInStackTrace(Native Method)
at
weblogic.rmi.extensions.BasicRequest.sendReceive(BasicRequest.java:44)
at
weblogic.ejb.common.EJBManager_WLStub.redeploy(EJBManager_WLStub.java:312)
at weblogic.deploy.deploy(deploy.java:129)
at weblogic.deploy.runBody(deploy.java:79)
at weblogic.utils.compiler.Tool.run(Tool.java:55)
at weblogic.deploy.main(deploy.java:140)
how about undeploy an already deployed bean first and then trying to redeploy.
becoz i know there's an option like that with DDDeploy. I am talking of 5.1 but the
logic should probably work in 4.5 too.
Try doing it and see what happens.
-Vikas
Blah Blah wrote:
Hi all,
Anyone else having this problem? When re-deploying an EJB within a
running WL server 4.5.1 w/ sp9 more than once results in the following
DeploymentException. The first time we re-deploy it works fine, but any
re-deployments after that fail.
This is potentially fatal in that if we have to make more than one
change to a bean over time and re-deploy those changes, we have to cycle
the server, which is NOT acceptable for a production environment!
Any clues or workarounds would be greatly appreciated.....Thanks!
BP
[xxxx.xxxx.com] < /pkg/bea > java -classpath
/pkg/bea/classes:/pkg/bea/lib/weblogicaux.jar weblogic.deploy -redeploy
xxxxxxx file:/pkg/bea/classes/OurSessionBean.jar
weblogic.ejb.common.DeploymentException: Unable to create bean
classloader:
weblogic.ejb.common.DeploymentException: loading EJB JAR
/local/pkg/bea/depot/weblogic-4.51/classes/OurSessionBean.jar; nested
exception is:
java.io.EOFException
java.io.EOFException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:35)
at java.io.EOFException.<init>(EOFException.java:43)
at java.io.DataInputStream.readUnsignedShort(Compiled Code)
at
weblogic.utils.classfile.LineNumberTable_attribute$line_num_struct.read(Compiled
Code)
at
weblogic.utils.classfile.LineNumberTable_attribute.read(Compiled Code)
at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
at weblogic.utils.classfile.Code_attribute.read(Compiled Code)
at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
at weblogic.utils.classfile.ClassMember.read(Compiled Code)
at weblogic.utils.classfile.MethodTable.read(Compiled Code)
at weblogic.utils.classfile.ClassFile.read(Compiled Code)
at weblogic.utils.classfile.ClassFile.<init>(Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(Compiled
Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.redeploy(Compiled
Code)
at
weblogic.ejb.internal.EJBJarDeployment.redeploy(EJBJarDeployment.java:629)
at
weblogic.ejb.internal.EJBManagerImpl.redeploy(EJBManagerImpl.java:266)
at
weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:169)
at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
at
weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(Compiled
Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
at java.lang.Throwable.fillInStackTrace(Native Method)
at
weblogic.rmi.extensions.BasicRequest.sendReceive(BasicRequest.java:44)
at
weblogic.ejb.common.EJBManager_WLStub.redeploy(EJBManager_WLStub.java:312)
at weblogic.deploy.deploy(deploy.java:129)
at weblogic.deploy.runBody(deploy.java:79)
at weblogic.utils.compiler.Tool.run(Tool.java:55)
at weblogic.deploy.main(deploy.java:140)
Similar Messages
-
FindBy() Method finds the same bean more than once
I am desperate.
Can anyone at least tell me if they ever heard of a problem similar to this in a CMP Entity Bean?
PROBLEM: My findByMemberOrHash(MemberLocal, String) method returns a Collection with FOUR references to the same Entity Bean from a table that has only one Entity Bean persisted in it!
Yet, my findByMember(MemberLocal) and findByHash(String) both work perfectly and return a Collection with only one element -- the single Entity Bean in the table.
Here is the relevant code and table info:
My Entity Beans are named LoggedIn and are persited in a MySql table named loggedings that has but 3 columns:PK: PrimaryKey (Integer).
HASH: persistance field (String).
members-pk: relationship field (Foreign Key to Member Bean table (Integer)For this test the table persisted a single Bean. Here is the data base SELECT:mysql> SELECT * FROM loggedins;
+----+------+------------+
| PK | HASH | members_pk |
+----+------+------------+
| 40 | X | 1 |
+----+------+------------+
1 row in set (0.00 sec)Here is my logger output from the server:
LoggerBean is a Session bean that is processing the login.
To test, I had it run three findBy()s ... Member Or Hash, Member Only, and Hash OnlyINFO [LoggerBean] Print out findByMemberOrHash()
INFO [LoggerBean] 0: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean] 1: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean] 2: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean] 3: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean]
INFO [LoggerBean] Print out findByMember()
INFO [LoggerBean] 0: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean]
INFO [LoggerBean] Print out findByHash()
INFO [LoggerBean] 0: LoggedInBean: PK(40) Hash(X) Member_pk(1)I am lost for any ideas.
Its too trivial a test to break it down any further.
Especially since the single parameter SELECTs work perfectly.
Here is my ejb-jar.xml code:<query>
<query-method>
<method-name>findByMemberOrHash</method-name>
<method-params>
<method-param>
org.america3.go.server.ejb.entity.MemberLocal
</method-param>
<method-param>
java.lang.String
</method-param>
</method-params>
</query-method>
<ejb-ql>
SELECT OBJECT(c) FROM LoggedInSchema c
WHERE c.members_pk = ?1 OR c.hash = ?2
</ejb-ql>
</query>I am desperate.
Can anyone at least tell me if they ever heard of a problem similar to this in a CMP Entity Bean?
PROBLEM: My findByMemberOrHash(MemberLocal, String) method returns a Collection with FOUR references to the same Entity Bean from a table that has only one Entity Bean persisted in it!
Yet, my findByMember(MemberLocal) and findByHash(String) both work perfectly and return a Collection with only one element -- the single Entity Bean in the table.
Here is the relevant code and table info:
My Entity Beans are named LoggedIn and are persited in a MySql table named loggedings that has but 3 columns:PK: PrimaryKey (Integer).
HASH: persistance field (String).
members-pk: relationship field (Foreign Key to Member Bean table (Integer)For this test the table persisted a single Bean. Here is the data base SELECT:mysql> SELECT * FROM loggedins;
+----+------+------------+
| PK | HASH | members_pk |
+----+------+------------+
| 40 | X | 1 |
+----+------+------------+
1 row in set (0.00 sec)Here is my logger output from the server:
LoggerBean is a Session bean that is processing the login.
To test, I had it run three findBy()s ... Member Or Hash, Member Only, and Hash OnlyINFO [LoggerBean] Print out findByMemberOrHash()
INFO [LoggerBean] 0: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean] 1: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean] 2: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean] 3: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean]
INFO [LoggerBean] Print out findByMember()
INFO [LoggerBean] 0: LoggedInBean: PK(40) Hash(X) Member_pk(1)
INFO [LoggerBean]
INFO [LoggerBean] Print out findByHash()
INFO [LoggerBean] 0: LoggedInBean: PK(40) Hash(X) Member_pk(1)I am lost for any ideas.
Its too trivial a test to break it down any further.
Especially since the single parameter SELECTs work perfectly.
Here is my ejb-jar.xml code:<query>
<query-method>
<method-name>findByMemberOrHash</method-name>
<method-params>
<method-param>
org.america3.go.server.ejb.entity.MemberLocal
</method-param>
<method-param>
java.lang.String
</method-param>
</method-params>
</query-method>
<ejb-ql>
SELECT OBJECT(c) FROM LoggedInSchema c
WHERE c.members_pk = ?1 OR c.hash = ?2
</ejb-ql>
</query> -
How do I repeat the same row more than once in report 10g
How do I repeat the same row more than once in report 10g
So I can print the bar code more than once
in report;
Edited by: user11106555 on May 9, 2009 5:50 AMGREAT THAN X MAN
It is already working, but with the first ROW
select ename from emp
CONNECT BY ROWNUM<=5
ENAME
SMITH
SMITH
SMITH
SMITH
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
BUT I want this result
Item1
Item2
Item3
to
Item1
Item1
Item1
Item2
Item2
Item2
Item3
Item3
Item3 -
How do I get itunes to not list the same artist more than once?
How do I get ituens to not list the same artist more than once? I have tried editing the info, sorting different ways and sometimes it works and sometimes not...it's very frustrating to me to have the same artist listed multiple times...
Setting a common Album Artist for each Album does most of the work. For deeper problems see Grouping tracks into albums.
In general you need to make sure that all the values in the tags are used consistently. Same spelling, same capitalization, same accents, no leading, trailing, or multiple spaces, and each value of Artist, Album Artist or Album should only be associated with one value of Sort Artist, Sort Album Artist or Sort Album respectively.
tt2 -
what if I bought the same game more than once, How can I claim a refund from I tunes store?
You can try contacting iTunes Support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
How to retrict user cannot open the same form more than once (Forms 6i)
Our users always open the same forms more than once. For example the customer form, the user may access a customer record in the first form, however, he will open a new customer form to edit the same record, the result is he cannot save the record because the record is locked in the first customer form.
How can I control the user cannot open the same form more than 1 time.
Best Regards,
KaneThe customer form is only an example, I found there will cause a lot of problems is I cannot control the user from calling 1 program more than 1 than within application. Sometimes a user (not good in using computer) will overlap the form for many times.....
Is there any simple way to do that?...can I have some PL/SQL statement or build-in functions that let me easily found our what forms the user has already opened, then I can control whether I let him open this form or not.
Urgent...please
Thanks -
HT204370 Can I rent the same movie more than once?
Can I rent the same movie more than once?
Yes, as long as you do so within the 24/48 hour period.
(73178) -
How to call the same query more than once with different selection criteria
Hi,
Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
Sales organization XX
Income 2008 Income 2009
Customer A 10 20
Customer B 30 0
Sales organization YY
Income 2008 Income 2009
Customer A 20 5
Customer B 50 10
Now, I need this. At the selection screen of query, user fill variable charakteristic "Sales organization" with interval XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
Thank you very much
J.Hello,
thanks to all for cooperation. Finally we solved this issue with the following way..
User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
J. -
How can I add the same song more than once?
how can I add the same song to my ipod shuffle more than once?
Thanks. I tested it, and found that I can create a bookmark in FolderA, and them manually copy it to FolderB, FolderC, and FolderD.
Once that is done, I tried the old method of "Bookmarks" --> "Bookmark This Page" and added it to FolderE. When I did that, it deleted the copy in FolderD but left the other three alone!
This is fine with me. I personally think this is a bug, because I don't think that Firefox should ever delete a bookmark without asking me (or at least, informing me). But now that I understand the algorithm, I can work around it. Thanks! -
Getting the same text more than once
I keep getting the same numerous texts more than once from my friends and one of my friends even said that they were getting my texts out of order. Is it my phone or the network?
It's easy to burn another copy of a DVD if you have already burnt a copy of it before. Just click the "Format" icon in the toolbar. It will pop up with a window with some options. You shouldn't have to change any of these options, just make sure that the Output Device is set to your DVD drive, which it should be set to by default. Just click the "Burn" button, pop in a DVD, and you're good to go.
If you've made a few changes to the DVD, you can use the "Build/Format" button in the toolbar. It will pop up with a window similar to that of the Format window. Click "Build & Burn." It will tell you that a VIDEO_TS directory already exists, and it can reuse as much of it as possible. You can then click "Reuse" to build the new portions of the DVD, and then it will burn it on a DVD.
Hope this helps. -
everything that needs to be done on the keyboard is effected - letters, numbers, backspace, directionals, delete, home, end, page up, page down, '''all keys that are pressed more than once''' It does not matter what webpage I am on.
PLEASE HELP
this is very frustratingYou may have switched on an accessibility feature called FilterKeys by keeping the Shift key pressed for too long.
* http://www.microsoft.com/enable/products/windowsxp/default.aspx
*http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/access_filterkeys_turnon.mspx?mfr=true -
How can I bookmark the same site more than once?
I have a large number of bookmarks, organized into many folders.
Sometimes I want two copies of the same bookmark, in different folders. But Firefox 3 does not seem to permit this. If the bookmark already exists, in _any_ folder, adding it to a different folder deletes the earlier copy.
REPRO: Go to a page with a fixed URL. Choose "Bookmark This Page", select FolderA in your bookmark folders, and press Done. Now choose "Bookmark This Page" again, and this time choose FolderB. EXPECTED RESULT: The page in question should now appear in both FolderA and FolderB. ACTUAL RESULT: The page is in FolderB, but _not_ in FolderA.
Is there any way to avoid this? I use folders to save myself a lot of time. For example, when I need to work on a paper for one of my classes, I go to the appropriate bookmark folder and choose "Open All in Tabs". When I want to work on a different class, I go to a different folder and choose "Open All in Tabs." But I am unfortunately prevented from placing a site in both folders!Thanks. I tested it, and found that I can create a bookmark in FolderA, and them manually copy it to FolderB, FolderC, and FolderD.
Once that is done, I tried the old method of "Bookmarks" --> "Bookmark This Page" and added it to FolderE. When I did that, it deleted the copy in FolderD but left the other three alone!
This is fine with me. I personally think this is a bug, because I don't think that Firefox should ever delete a bookmark without asking me (or at least, informing me). But now that I understand the algorithm, I can work around it. Thanks! -
Flash form error, can't use the same name more than once? need workaround
I've always written my forms to have multiple buttons, one
for updating and one for deleting. so in html I would do this:
<input type=submit name=action value=Update>
<input type=submit name=action value=Delete>
so I'm trying the same thing with flash forms in cold fusion:
<cfinput label="Update" name="action" type="submit"
value="Update">
<cfinput label="Delete" name="action" type="submit"
value="Delete">
but now I get this message:
2 Errors found.
Error /index.cfm:334
id 'action' was already defined on line 333
Error /index.cfm:335
id 'action' was already defined on line 333
Is there a way to make this work or do I have to either
create a special action_delete or a new form? I'd like to keep the
logic the way I like.
Any suggestions?
Thanks,
JohnI was hoping to do logic like this
<cfparam name="action" default="list">
<cfif action equal "list">
<cfelseif action equal "update">
<cfelseif action equal "detail">
<cfelseif action equal "delete">
</cfif>
So I just converted everything to html and things work the
way I like. thanks anyway. The forms don't really buy me anything. -
Migrating Transports via CHaRM to the same system more than once
Good Day;
Does anyone know if CHaRM has the capabilities to migrate transports (within a maintenance cycle) to the same system multiple times?
Let me explain.
When we move a maintenance cycle (release) through our landscape we move from;
Development system - Quality system - Volume system. Then to production
UAT is being done in both the quality system and the volume system.
Once all testing is complete, we refresh the volume system with a fresh copy of the production system and re-import all the transports. This is to allow our BASIS team to do regression (batch) and load testing.
Is there a way to use CHaRM to migrate the transports or is this something that needs to be done manually (as it is today).
Thanks All,
Regards
Don NewtonJust Ceaning up
-
I used to be ale to buy the same song severl times. Now Itumes says Ialready pjurchased it do I want to download it agsain for free. I do not I need to by it again for my customer.
Purchasing music for your customers via your own iTunes Store account is a violation of the terms of use of the iTunes Store, which states that all purchases are for your own personal use. If you want to give tracks to someone else, you have to gift them though the iTunes Store's gifting mechanism. That's the only legal way to give tracks to someone else.
Regards.
Maybe you are looking for
-
IPod video not recognized by iTunes after bad disconnect
I recently disconnected my iPod without ejecting it first, (disk mode is enabled), and I had done it a few times before without a problem, so I figured why not. But this time it didn't work out. All of my music, videos etc are seemingly erased from t
-
CS6 update failure - error code U44M1I210
Hi, I've not been able to install any updates of any of the CS applications, since purchase. They all fail, with the same error code. Can anyone help with this? The full text of the log is below. Thank you for shedding any light! Dominic. DPS Desktop
-
Can I use the iMac Screen as an external screen for a PC laptop ?
can I use the iMac Screen as an external screen for a PC laptop ?
-
XMLParser for PL/SQL ORA-20100
I am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1 When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below. SQL> execute domsamp
-
Firefox suddenly crashing at specific websites (eg, media sites)
On May 23, 2012, Firefox suddenly began crashing whenever I would click on any link at various websites -- especially the Globe & Mail (www.theglobeandmail.com/), but also some Firefox Help pages, the Java.com download page, etc, etc. I've subsequent