Error EJB:010116 and what is the best fix?
I got an EJB:010116 error and need some advice on how to fix it (quickly, I am
running out of time).
My basic understanding of the problem is:
1. I defined a many2many relationship with a join table, say ProviderEJB to ProviderKeyEJB,
the cmr field for ProviderEJB is providerKeys and a correcponding abstract method
with default transaction-attribute (not specified):
abstract public Set getProviderKeys();
2. generated code with ejbgen 215
3. deployed to weblogic 8.1 SP1 JDK141_03
4. at run time, my facade session ejb find a local ejb instance of ProviderEJB,
call its method getProviderKeys() to get a set of local instance of ProviderKeyEJB.
all works OK up to this point.
5. then the facade session ejb try to iterate through this set of object and at
this point I got an exception from weblogic:
java.lang.IllegalStateException: [EJB:010116]Attempted to access the collection
valued cmr field, 'providerKeys' for bean 'ProviderEJB', outside of the scope
of a transaction. All access to the collection must be performed during the transaction
in which the collection was initially retrieved.
6. Very clear message. I can understand the meaning of it. However, the getProviderKeys()
method was declared abstract and was generated and implemented by ejbgen. So how
can I access this collection INSIDE of the transaction?
In general, does that mean I will have to turn off the transactions on my entity
beans and let the facade session ejbs to manage the transactions? if so, why do
I need the CMP entity beans in the first place?
So assume I have to do this way, does that mean I have to add the ejbgen tag "transaction-attribute
= Supported" for those methods that I do not want to have a transaction?
On another separate issue, just read weblogic 8.1 doc on ejbs and it recomends
that do not use facade session beans and DTO (value objects) from the web tie,
simply access local entity beans directly. Any experience on this, in terms of
design issues. Obviously I understand it will go faster without a facade, but
what about clean architect of your software design?
Many thanks and best regards.
Charles
Hi,
for this particular case, you should implement a transfer routine at IObj level (general TAB in RSD1/0MATERIAL)
the code is as easy as
TRANSLATE RESULT TO UPPER CASE.
RETURNCODE = 0.
this will be executed whenever you load 0MATERIAL.
hope this helps....
Olivier.
Similar Messages
-
I have an iMac purchased new about 5 years ago with OS 10.4.11. I would like to upgrade to Lion. I currently have a 2.33 GHz Intel Core 2 Duo processor with 2 GB of ram. Can I upgrade to Lion, and what is the best way to do so?
From what I read here:
http://www.tuaw.com/2011/06/06/lion-...u-2-gb-of-ram/
s long as they already have Snow Leopard 10.6.8 installed in it.All a person needs to do with that type of iMac is to upgrade/max out their Ram. They claim that an Interl iMac with Core 2 Duo is all that is needed, as long as it has OS 10.6.8 installed. They say you don`t need the "Core i3, Core i5, Core i7, or Xeon processor"
But I wonder about the RAM speed, the iMac 2.33Ghz uses DDR2 SDRAM, which I believe is rated at 667Mhz. Lion maybe installed but it might be problems running smoothly or not?
Did some quick checking and the iMacs apple is selling this year use 1333MHz DDR3 SDRAM.
The only thing to do is to make sure you have a good back-up, Install your RAM and install Snow Leo, then wait a couple of hours and install Lion.
Good Luck -
How do I delete music from my iPhone and what is the best way to add and delete music?
How do I delete music from my iPhone and what is the best was to add and delete music to the iPhone?
See Here...
iPhone User Guide
and here
http://www.apple.com/support/iphone/syncing/ -
What is this Hour Glass Model and what is the best order of dimensions
What is this Hour Glass Model and what is the best order of dimensions in Essbase cube (Block storage model)
Dimension order has a huge impact on performance.. The worst case I ever saw was in a pre-sales situation where an outline was thrown together very quickly by someone not experienced with Essbase. A rather small retrieval took 3 minutes despite the fact that there was absolutely no data in the database! Rearranging the dimensions made retrievals instantaneous..
Tim Tow
Applied OLAP, Inc -
My iPhone 4S will not sync with the music I have selected in iTunes. Has anyone else had this issue and what is the best way to fix it.
Hi,
Setting up syncing
Before setting up syncing you should download and install the latest version of iTunes. Wi-Fi syncing requires iTunes 10.5 or later and iOS 5 or later. You can change your sync options at any time. Each time you sync, content is synced between your iOS device and computer to reflect new, updated, or deleted content.
USB syncing
Open iTunes.
Connect the iOS device to your computer using the included USB cable and select it in iTunes under Devices on the left-hand side. Some tabs may not appear if you do not have corresponding content in your library. For example if you do not have any podcasts in your library, the corresponding Podcast tab will not appear.
Click Apply, in the lower-right corner of the screen, to sync.
Wi-Fi syncing
Open iTunes
To set up Wi-Fi syncing, connect your iOS device to your computer with the included USB cable. Select your device under Devices on the left-hand side.
In the Summary tab, select "Sync with this [device] over Wi-Fi".
Whenever the computer and the iOS device are on the same network, the iOS device will appear in iTunes, and you can sync it. The iOS device will sync automatically when all of the following are true:
The iOS device is plugged in to power
iTunes is open on the computer
The iOS device and the computer are on the same Wi-Fi network
While the iOS device appears in the left-hand column of iTunes, you can select the content tabs and configure sync options.
Click Apply or Sync to sync the iOS device.
Hope this helps -
I get power cuts in France. I need a ups emergency power supply. What spec do I need and what is the best manufacturer? I have a Mac Pro from 2007 2 x 3 ghz dual core intel xeon. I would like a machine which will work with a replacement Mac Pro which I will be getting in the next few months. Alan Boyle
1500VA 865Watt
APC in some/most countries
Cyberpower - what I used to replace APC
You do not need pure sine-wave or SMART series which are top price but considered besr may be over-kill -
What's the best fix for a slow computer?
What's the best fix for a slow computer?
What model computer? What are your primary uses and apps?
First thing anyone can do is replace or upgrade the system boot drive to SSD. Makes a very nice improvement.
How new or old is it? What version of OS X is it running?
Maybe it won't run faster but could run better with more RAM.
Take a look at all the tabs in Activity Monitor. If not on the Dock, go into Applications/Utilities and open it and keep it on the dock. Can tell you what is using your processor the most, RAM usage, disk and network I/O.
Don't install things that aren't needed. That can be counter intuitive to some but 'less is more' and some just really pull a computer system down. Security programs, "clean up programs" and others.
General purpose Mac troubleshooting guide:
Isolating issues in Mac OS X
Creating a temporary user to isolate user-specific problems:
Isolating an issue by using another user account
Identifying resource hogs and other tips:
Using Activity Monitor to read System Memory and determine how much RAM is being used
Starting the computer in "safe mode":
Mac OS X: What is Safe Boot, Safe Mode?
To identify potential hardware problems:
Apple Hardware Test
General Mac maintenance:
Tips to keep your Mac in top form -
Database connection and what is the best method
Hi - I am new at this, so hopefully someone can point me in the right direction.
looking at a project costing form where specific users need to complete a form with some prepopulated data expense data
The data is in a local Access database at the moment, with plans on moving it to a web sql tables.
Overview
I would like to be able to open a main form, select various criteria
(ie select Project Number)
push button to load data the specific project data
push button to extend reader functionality and save as with a new name based on project number
After review, push button to send PDF to user by email (email address is in the loaded data).
User is able to save data locally on his PC (save capability with the extended reader functions)
When user finished, he can send pdf back to me for data upload to the database
Question 1:
I am looking at the ODBC connection strings and javascript to do this.
Is this possible? If so, what is the best way to do this?
Question 2:
Once the "extend features" has been used, can javascripts be used to load different data or extended the Reader functions can only be done after the data is loaded?
Any help or assistance as to where to look would be greatly appreciated.As long as your database provides an ODBC driver then it can be used to access the DB. Please see my answers below for the rest of your queries.
Paul
I would like to be able to open a main form, select various criteria (ie select Project Number) push button to load data the specific project data
<answer> This is doable. There are samples published but note that it will involve some javascript coding to accomplish
push button to extend reader functionality and save as with a new name based on project number
<answer> This woudl have to be done through Acrobat and woudl involve some manual intervention. Do you intend on sending the form with the data connection information to them? I woudl recommend that a separate form be used for this. The data connection may cause problems for them when they open the form (remember that they will not have access to the DB).
After review, push button to send PDF to user by email (email address is in the loaded data).
<answer> not an issue
User is able to save data locally on his PC (save capability with the extended reader functions)
When user finished, he can send pdf back to me for data upload to the database
<answer> The form that they have will not be able to do DB connections so I woudl send back just the data. Then you can import it into your version of the form (that does DB connections) and you can do the update from that.
Question 1:
I am looking at the ODBC connection strings and javascript to do this.
Is this possible? If so, what is the best way to do this?
<comment> I just did a presentation on this topic .....here is the playback recording. It also has samples that show how to do it.
http://adobechats.adobe.acrobat.com/p69655795/
Question 2:
Once the "extend features" has been used, can javascripts be used to load different data or extended the Reader functions can only be done after the data is loaded?
<commment> The RE functionality in Reader will only allow them to save the PDF locally. I do not know how big this project is but if this is only for a few users, then I woudl buy Acrobat for your people (this gives them the ability to do the DB connection as well as RE to allow for the Customer to save the form locally). If this is a large project I woudl go down the LiveCycle Server path and woudl pre-populate the forms on the server. Note that this would be at least a 100K solution whereas the Acrobat woudl be the price of Acrobat times the number of users that you have.
Make sense? -
What data does SNMP return and what is the best way to explore it?
Hi All
I have some queries about using SNMP on Cisco devices.
1. What is the best way to get an idea of what data MIBs can return?
I have entered the commmand "show snmp mib". However, the number of MIBs generated is huge!
2. Can you enter a command on the Cisco device itself that returns snmp data?
e.g. if I want to see what data a MIB entry returns, can I interrogate it on the Cisco device itself rather than having to rely on network management software?
The reason I ask is that we are currently looking for Network Management Software. However, I have no idea what data SNMP can return, therefore don't know if what the Management Software offers is comprehensive or not.
Any suggestions on how best to get an idea the data SNMP can generate plus any other suggestions are very welcome!
Thanks
JohnGenerally speaking, snmp can query about any parameter of the system. An enterprise class device has almost all conceivable parameters instrumented thus. A device's inventory (chassis, cards, ports, power supplies, software image, etc.) and the state of its interfaces and traffic they are carrying are among the primary ones.
You can query a device's snmp variables remotely "by hand" using an open source distribution of a tool like snmpwalk. You need to know what you're looking for - i.e., the exact oid (object ID) string or else you get a long reply like you alluded to. It also helps to have the actual MIB you are querying against locally so that the output you get will be human-readable. Otherwise you'll get long numeric strings (the snmp oid) followed by alphanumeric values which may or may not make sense at first glance depending on the oid being queried. A MIB's purpose is to add that abstraction layer / interpretation to make the output more useful to the operator.
The purpose of an NMS (very generally speaking) is to give an even higher layer of abstraction to organize the querying and reporting of all these various data into a useful system with dashboards, graphs, reports etc. -
Can you use Apple TV 1 and Tv 2 together And what is the best setup
Hey guys
Can you use Apple TV 1 and Tv 2 together?
And if you can what is the best setup with teh two devices above and the need to hook it to one TV.
Thanks in advance.
-DavidWelcome to the Apple Community.
If I understand correctly you want to use both the Apple TV's with one TV.
There wouldn't be a problem with that, they will each need there own network connection and should be connected to different AV inputs on the TV so that you can switch between each Apple TV as a source with your TV remote.
If you don't have two HDMI ports on the TV, the Apple TV 1 will connect by component cables, if this isn't possible you would need to get yourself an HDMI switch. -
What causes the itunes.msi error and what is the best way to fix it?
i have windows xp. when trying to update to itunes 8.2-the installer can not locate the Itunes.msi file. i found the file but the installer can't use it. this is also the case when i try to delete itunes and/or reinstall.
what causes this error and could someone point me in the right direction as how to fix this.
also i can't open itunes without having my ipod connected..so annoying. is that normal?
thanks. =)Apple will exchange your iPod for a refurbished one for $199 for 64 GB 4G and $99 for the other 4Gs. They do not fix yours.
Apple - iPod Repair price
A third-party place like the following maybe less. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Replace the screen yourself if you are up to it
iPod Touch Repair – iFixit -
SATA still around for some time ? and what is the best HD configuration ?
Hi,
I want to add 4x1tb hard drives to my mac. But before investing in it, I would like to know if SATA technology will be around for quite some time or is there new technology coming soon ?
Also I am thinking of configuring 2x1tb's as striped raid and other 2x1tb's as time machine back up in mirrored raid config..
I am planning on buying WD Caviar Blacks as per recommendation. Do you guys think this setup will be the best option performance wise ?just saw this post particularly for WD Caviar's in Raid config. Any comments ??
These drives run hot but that seems to be the same for most 1TB drives. I'd recommend some direct cooling.
Western Digital does not support running these drives in a RAID configuration. I bought 5 of these drives. 1 was DOA (likely due to shipping as the bubble wrap was popped in areas) and one other will fall out of a RAID set every 2 days. According to WD it is because the drive enters a deep recovery cycle and the RAID controller times it out. Why it needs to enter a deep recovery cycle so often is a question they won't answer. Western Digital wants you to pay more for their RAID edition drives which don't enter the deep recovery cycle. I've never has this problem with other HD manufacturers (before these drives I used mainly Hitachi and Seagate with hardware RAID controllers). I use Areca RAID controllers which have worked great for me in the past. The 3 remaining drives I have work fine but WD won't replace this drive just because it fails in a RAID array.
Other Thoughts: You would think we should be able to run HDs in a RAID array without having to spend extra for a drive designed to operate 24x7 when that is not the intended use.
Here are some of the replies from Western Digital support:
"The WD Caviar Black SATA drive is not a RAID edition drive. When creating a RAID, we recommend that you use our RAID edition drives. We cannot guarantee RAID functionality of our desktop drives for reasons listed in the article below.
Title: What is the difference between Desktop edition and RAID (Enterprise) edition hard drives?
URL: http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/stdadp.php?p_faqid=1397&pcreated=1131638613 "
"It is normal to experience dropouts in RAID arrays with desktop drives. I recommend returning or exchanging the drives to the place of purchase for RAID edition drives, or contact your RAID controller manufacturer to see if they can provide a RAID controller that can see drives that are in a deep recovery cycle. " -
What is difference between BI & BOJ and what is the best roadmap
Dear Sir,
I am confussed about as what is the difference between SAP BI /BW implementation appraoch or BOJ approach .
Say if a company presently running ECC6 , want to go for implementing BI functionality , so that users can use effectively the SAP data for the routine decision making by using KPIs monitoring or DashBoard type functionality .
To have such a BI in place , do we require to implement BI / BW and then BOJ . Or only BOJ is enough , if so then what are the limitations .
We request you to kindly help us on these issues pl .
Rgds
Sania Agarwalathere is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
Kind Regards,
John Naguib
Technical Consultant/Architect
MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Please remember to mark your question as answered if this solves your problem -
i'm exporting my movie in mpeg4, 1960X1080, for streaming.
all the movie is going well, but there is some cubes in the sky, and also, some frames jumpes.
I treid few times, but its always the same.
Thank you,LenaYou should transcode the Nikon clips to Pro Res 422 before you import them to your project. That can be done in Compressor or MPEG Streamclip. Let FCP automatically determine the best sequence settings, based on your first clip. Export your project as Quick Time Movie, current settings. If you need an MP4 with h.264, MPEG Streamclip can make it for you.
Russ -
Hi all,
Can I store my iTunes file in the cloud, so that my wife and I can access it from various devices.
Devices would include 2 iPhone 6S, 2 iPad2s, couple of iPods and a MacBook Air.
We can't save all the music to a hard drive due to storage size.
If we save it to the Cloud, can we create playlists and only download these as /when we need them?
Thanks in advance,
EdHi,
Your music needs to be in your iTunes library on your computer or on an external drive. Read this user topic Make and keep a backup of your iTunes library, and only stream from the cloud.
You can only use one Apple ID with match. For your wife to get access to your music in the cloud, you will need to use your Apple ID
Subscribe to iTunes Match - Apple Support
Manage your associated devices in iTunes - Apple Support
Jim
Maybe you are looking for
-
My Iphone 4 isn't working, It got wet and now I have it in a bag of rice. I heard that I should not try to turn it on or mess with the power button, so I haven't. It makes sounds when I get a text message but the screen is blank., I have tried to con
-
My ipod is more problematic than a bad boyfriend! I need help
I've had so many problems with Itunes and Ipod, recent ones being these: I can't update to 1.2 firmware (And I've tried a lot!!) AND my purchased content hasn't been playing on my ipod for about 3 months now. I've tried ejecting and plugging back in,
-
Hello, I am having an aesthetic problem with my q10 that i just got today. I was entering some contacts into my phone when I realized that the ALT key is activated whenever I add phone numbers. When I first got the phone the ALT key did not light up
-
Unable to run Groovy scripts within procedure
Hi all, We are managing to automate objects promotion to PROD environment using Groovy. The thing is that we are able to run the script in the Groovy tool successfully, but we are not able to run the same script within a procedure in ODI. The version
-
Fscommand when the swf inside html table
in the html file , when I put the swf file inside a table, the fscommands does not work. how do i make it work? should i make any changes in the html? ? notice: when the swf is out side the table , it is working fine.