Can't invalidate the CMP bean's cache. Please help
Dear all,
The ClassCastException raised while calling:
(weblogic.ejb.CachingLocalHome)home).invalidate (Arrays.asList(primaryKeys));
The CMP bean uses optimistic concurrency and caching between transactions.
<b> Please advice what weblogic-ejb-jar.xml attributes may be set to cause Weblogic generate proper Home stub that may be cast to CachingLocalHome?</b>
P.S. weblogic-ejb-jar.xml :
<weblogic-enterprise-bean>
<ejb-name>MyEntity</ejb-name>
<entity-descriptor>
<entity-cache>
<concurrency-strategy>Optimistic</concurrency-strategy>
<cache-between-transactions>True</cache-between-transactions>
</entity-cache>
</entity-descriptor>
</weblogic-enterprise-bean>
check the documentation for invalidation of RO entity beans there is example code to invalidate on OCE.
http://e-docs.bea.com/wls/docs81/ejb/entity.html#ChoosingaConcurrencyStrategy
Similar Messages
-
i was listening to a you tube clip. i guess i didn't click off the actual clip, because now when i turn on my computer the clip audio plays. i can't locate the file to delete it. please help.
Quit Safari.
Hold the shift key down and relaunch Safari.
Empty Caches
Safari > Preference > Advanced
Checkmark the box for "Show Develop menu in menu bar".
Develop menu will appear in the Safari menu bar.
Click Develop and select "Empty Caches" from the dropdown.
Best. -
Where can i download the WEB ADI installer? Please help
Where can i download the WEB ADI installer? Please help
Hi
Please follow the below steps.
Add Responsibility to the user
System Admin -->Security --> User --> Define
Assign ‘Desktop Integration Manager’ and 'Desktop Integration' responsibility to your user. This responsibility has the menu ‘Desktop Integration Manager Menu’ and 'Desktop Integration Menu' associated with it.
Set Profile Option
System Admin --> Profile --> System
Set profile option ‘BNE Allow No Security Rule’ to ‘Yes’ at site level.
Enable Macros for Excel 2007
Enable macros for Microsoft Excel.
if you are able to follow above steps then u can create integrators.
Thanks
Manoj -
Why I can not view the CMP bean created tables in cloudscape?
Hi:
I have deploy a CMP entity bean which will automatic create a table named ToolBeanTable.
I can find the table exist in cloudscape and its structure thought JDBC tool.
But I can not view the data, the error is said that the table is not existed.
Why?
Thanks!
John LeeHello,
I also had the same problem when I am using Microsoft SQL Server Management Studio 2012. I created a new table. When I select * from mytable, it can execute and I can see the table in the results part, but I can localize the table in left part "database"
menu. Actually, I suspect there is something missing in the Databases folder. When I am using SQL management studio in another machine, I can see a folder called tables under Database, which hold all the newly created tables. But I could not find it here.
On bottom, it may indicate the table is in "master" folder, but I can not find it either. Within "master" folder, there are "Views", "Synonyms", "Programmability", "Service Broker", "Storage", "Security" I already refreshed the Databases folder several times.
Can anyone kindly help me?
Thanks,
Feifei -
after there being an error in trying to update the software it said i have to restore my phone which i have done but says time remaining is about 24 hours . can you please help ? i just want to switch my phone on again .
Hello lyndsey1430,
From what I can gather, it sounds like you're having issues restoring your device. After reviewing your post, I have located an article that can help in this situation. It contains helpful advice concerning recovery mode:
If you can't update or restore your iPhone, iPad, or iPod touch
Use recovery mode
You might need to use recovery mode to restore your device in these cases:
iTunes doesn't recognize your device or says it's in recovery mode.
You see the Apple logo onscreen for several minutes with no progress bar.
You see the Connect to iTunes screen.
Learn what to do if you see the progress bar onscreen for several minutes.
To put your device into recovery mode, follow these steps:
Turn off your device and leave it off.
Plug in your device's USB cable to a computer with iTunes.
Hold down the Home button on your device as you connect the USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.
When you see this screen, release the Home button. If you don't see this screen, try steps 1 through 3 again.
When your device is connected, iTunes will open. You'll see a message saying that iTunes has detected an iPhone, iPad, or iPod touch in recovery mode.
Use iTunes to restore your device. Restoring in recovery mode will erase your device. If you previously synced with iTunes or iCloud, you might be able to restore from your backup.
Get more help
Learn what to do if you don't see your device in iTunes for OS X, or in iTunes for Windows.
If you put your device into recovery mode by mistake, restart it. Or you can wait 15 minutes and your device will exit recovery mode by itself.
Thank you for contributing to Apple Support Communities.
Cheers,
BobbyD -
I can't install the QuickTime!!! Please help!!!
I can't install the QuickTime. "The QT installer write: A newer version of QuickTime is already installed. This installation cannot proceed while the newer version of QuickTime is installed."
But I not installed QT, I have not QT on my PC (WIN XP SP3)!!!
I'd like install QT after iTune!
Please help me anybody!!!C:\WINDOWS\Installer will show .msi files. Right click and go to Properties then Summary will show what application they pertain to.
If you go to Start>Search>For Files or Folders>All files and folders, then type in .msi and do a Search. Then place your mouse pointer on one of these .msi a window will appear showing the info, which maybe easier.
At some point QT was installed on the computer and removed. Old QT .msi installation files were not. This is why you are having a problem.
http://support.microsoft.com/kb/290301 -
I have up dated my ipad 2 to osi70.2 and can't open the control centre by swiping up from the bottom as shown on web. Is there a setting I need to change?
Swipe up from bottom of screen.
Control Center
http://support.apple.com/kb/HT5858 -
Problem with CMP bean and MySQL: please help me!!!
Hi,
I am using J2EE Sun server 1.3 and Mysql 4.0 database with its MySQL Connector/J 3.0.
The driver connection to the database is fine since "Generate Default SQL" in deploytool gives "SQL generation complete".
However, I can't have a simple row with one text field called test being created in my mysql table called test.
Of course , the mysql server is started and the test table set for use.
Here is my code (I try to access my database from a servlet using a CMP Entity bean):
try{
Context initial = new InitialContext();
Object objref = initial.lookup(EntityHome.JNDI_NAME);
EntityHome home = (EntityHome)PortableRemoteObject.narrow(objref,EntityHome.class);
Entity test= home.create("zob");
/*EntityHome home = (EntityHome)PortableRemoteObject.narrow(objref,EntityHome.class);
catch (Exception ex){ out.println("exception message : " + ex.getMessage()+"</body></html>");}
I get the following exception message :
RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"EntityCMPTable" WHERE "test" = 'zob'' at line 1"; nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"EntityCMPTable" WHERE "test" = 'zob'' at line 1"
I would be very grateful for help since I have a close deadline for this!!!!!!!!
Thank you very much in advance dear java experts!!!!!!!
Hallo
I have the same problem and the same configuration.
Do you have a solution for this problem ??
Thanks
Georg -
[Solved] Can't remember the name of this tool, please help!
I spended my afternoon searching the forums trying to remember the name of an useful tool i readed about here (i think).
I need something which can inspect data passing over fifos and sockets between processes.
Can someone point me in the right direction?
Thanks!
Last edited by kokoko3k (2010-07-21 07:04:00)vipe?
-
How can i display the days of the month in my report, please help
dear all
my table name is day_close_table
it contains these columns:
product_code number,
the_date date,
sale_qty number,
buy_qty number
price number
i need to make report like the fiollowing
product : 10144 from: 1-jan-2006 to :10-jan-2006
days | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
Sale | 50| 10| 20| 15|10|5 | 6 | 11|12|6 |
buy |10 | 20 | 10| 0 | 0 | 0 | 10| 1 | 1| 1|
i created two query and i decieded to join them
the first one is to display days in horizon direction
my query is:
SELECT TO_CHAR(THE_DATE,'DD-MONTH')D,
FROM HS_DAY_CLOSE;
my question is how can i display the records in horizone direction
please helpi solved this problem using this query
SELECT STOCK_CODE, COUNTRY_ID,
SUM(DECODE(to_char(the_date,'dd') ,'01', buy_qty)) "1",
SUM(DECODE(to_char(the_date,'dd') , '02', buy_qty)) "2",
SUM(DECODE(to_char(the_date,'dd') , '03', buy_qty)) "3",
SUM(DECODE(to_char(the_date,'dd') , '04', buy_qty)) "4",
SUM(DECODE(to_char(the_date,'dd') , '05', buy_qty)) "5",
SUM(DECODE(to_char(the_date,'dd') , '06', buy_qty)) "6",
SUM(DECODE(to_char(the_date,'dd') , '07', buy_qty)) "7",
SUM(DECODE(to_char(the_date,'dd') , '08', buy_qty)) "8",
SUM(DECODE(to_char(the_date,'dd') , '09', buy_qty)) "9",
SUM(DECODE(to_char(the_date,'dd') , '10', buy_qty)) "10",
SUM(DECODE(to_char(the_date,'dd') , '11', buy_qty)) "11",
SUM(DECODE(to_char(the_date,'dd') , '12', buy_qty)) "12",
SUM(DECODE(to_char(the_date,'dd') , '13', buy_qty)) "13",
SUM(DECODE(to_char(the_date,'dd') , '14', buy_qty)) "14",
SUM(DECODE(to_char(the_date,'dd') , '15', buy_qty)) "15",
SUM(DECODE(to_char(the_date,'dd') , '16', buy_qty)) "16",
SUM(DECODE(to_char(the_date,'dd') , '17', buy_qty)) "17",
SUM(DECODE(to_char(the_date,'dd') , '18', buy_qty)) "18",
SUM(DECODE(to_char(the_date,'dd') , '19', buy_qty)) "19",
SUM(DECODE(to_char(the_date,'dd') , '20', buy_qty)) "20",
SUM(DECODE(to_char(the_date,'dd') , '21', buy_qty)) "21",
SUM(DECODE(to_char(the_date,'dd') , '22', buy_qty)) "22",
SUM(DECODE(to_char(the_date,'dd') , '23', buy_qty)) "23",
SUM(DECODE(to_char(the_date,'dd') , '24', buy_qty)) "24",
SUM(DECODE(to_char(the_date,'dd') , '25', buy_qty)) "25",
SUM(DECODE(to_char(the_date,'dd') , '26', buy_qty)) "26",
SUM(DECODE(to_char(the_date,'dd') , '27', buy_qty)) "27",
SUM(DECODE(to_char(the_date,'dd') , '28', buy_qty)) "28",
SUM(DECODE(to_char(the_date,'dd') , '29', buy_qty)) "29",
SUM(DECODE(to_char(the_date,'dd') , '30', buy_qty)) "30",
SUM(DECODE(to_char(the_date,'dd') , '31', buy_qty)) "31"
FROM HS_DAY_CLOSE
GROUP BY STOCK_CODE,COUNTRY_ID -
I can not fine the Entity Bean's advantage than Java Bean?
I can not fine the Entity Bean's advantage than Java Bean,
can you tell me, thanks a lot?I can not fine the Entity Bean's advantage than Java
Bean,
can you tell me, thanks a lot?I think you should read more of the EJB Spec. You'll find your answer there. But mainly with entities you can have the container manage all the lifecyle of the Bean (transactions, caching, creation, etc...). But entities are not only to map columns in the database, they are supposed to have business code. See more by reading the spec.
MSB -
How can I see the stored files in cache?
How can I see the stored files in cache? I need them!
Thanks for helping me.The History menu lets you revisit the page where you can drag any page element from it.
How would you sort through thousands (tens of thousands) of files found in a cache? -
How can I deploy the setting of clear cache on exit for all users?
How can I deploy the setting of clear cache on exit for all users?
Note that Firefox disables the disk cache if you use "Clear history when Firefox closes" to clear the cache (see about:cache), so you can either disable the disk cache via its related pref or set the prefs related to clearing this data,but then other items that have a check-mark by default are cleared as well.
*browser.cache.disk.enable
*privacy.clearOnShutdown.cache
*privacy.sanitize.sanitizeOnShutdown
You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
pref("general.config.filename", "mozilla.cfg");
These functions can be used in the mozilla.cfg file:
defaultPref(); // set new default value
pref(); // set pref, but allow changes in current session
lockPref(); // lock pref, disallow changes
See also:
*http://kb.mozillazine.org/Locking_preferences
*http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
*http://mike.kaply.com/2014/01/08/can-firefox-do-this/ -
Can anybody please suggest the way i can get all the indexes on a cache
Can anybody please suggest the way i can get all the indexes on a cache?
Hi,
If you want to just see what there is at the moment, the StorageManager mbean IndexInfo attribute shows the toString() representation of the extractor of each index.
If you want to get it programmatically, you can get hold of it by sending an entry-processor to a key, then casting the entry to BinaryEntry, and calling BinaryEntry.getBackingMapContext().getIndexMap() to get the same Map<ValueExtractor,MapIndex> of indexes which the index aware filters get.
Best regards,
Rob -
I migrated my software/documents from another laptop so don't have the disk to reinstall. Please help! Can't open any Microsoft Office software, like Word (for 2008), and stuck in a loop?
Whenever I select Word Microsoft Setup Assistant appears, asks for feedback, then after selecting okay (both on saying yes or no to feedback) goes on to a registration page. When I click on this it says I've already registered so I just click okay, and then move on to a update page. After this, if I click on Word, the process repeats itself.
As I said, I don't have the disk to reinstall, and can't find the Office Settings to delete as many pages have suggested I should try. Safe Boot restarting also hasn't worked... Really stuck and need Word very soon for work.
If you can help, that would be great, and feel free to ask any questions about the situation as I'm not an expert here.
Cheers,
JackFirst, export your contact from iCloud.com and save them on your computer in a safe spot some where (like you desktop). Use this to help you do this: http://support.apple.com/kb/PH3606
Next, on both of your devices, go to Settings > iCloud and turn on contacts and select Merge. Then turn off contacts and select 'Delete form my [device]' when prompted.
Now go back to iCloud.com and select a contact (yes they will all be messed up again) and select Command+A on a Mac or Control+A on a PC to select all of the contacts. Tap the delete key on your keyboard (or right click /control click a contact and select delete).
You iPhone, iPad and iCloud.com should not be empty for contacts.
Go back to Settings > iCloud on both devices and turn on contacts again (you should not see merge this time).
Next, go back to iCloud.com and import your contacts (those exported .vcards). You can either drag and drop them into the empty contacts list in your web browser, or you can use the gear icon to import.
You cleaned up contacts should import correctly into iCloud.com and sync to both of your devices.
Good luck.
Maybe you are looking for
-
Associating .doc files with open office
I have open office installed on my iMac. When I open an MS Word document using the basic File--->Open it opens it with no problem. However, when I click on it I get an error dialog that says the "script could not be run because. -43" How can I associ
-
I've got four apps that are frozen in update - how do I fix this
My iPad is experiencing frozen apps after downloading app updates - how can this be fixed?
-
Can't convert type to outlines
I recently purchased CS5, and find there's a feature I'd like in Illustrator that doesn't appear to work. The option Type>Create Outlines is grayed out. I'm using Mac OS X 10.6. Is this another instance of a feature only available on Windows? Is ther
-
As of today ff13 does not display pictures on ny daily news site
i'm puzzled - all was well yesterday but today, when i go to ny daily news, no pictures will load. none of my other news websites are effected in ff. using ie8 ny daily news loads properly.
-
download problem for my mac it keep on say safari is open when its not