I get a NullPointerEx when ADF tries to get Entity Cache
Hello! I'm using ADF JDeveloper 11.1.2.1.0.
I'm having a hard time tracing back a bug I'm experiencing. When I try to commit some data that involves setting properties across many view links and entities, I get a weird error near the end:
<22/05/2012 12:20:49,208> <SEVERE> <BaseLoggerImpl> <logException> java.lang.NullPointerException
at oracle.jbo.server.EntityImpl.getEntityCache(EntityImpl.java:4665)
at oracle.jbo.server.EntityImpl.getAttributeInternal(EntityImpl.java:3371)
at br.com.cds.gtj.gco.model.gco.entity.MovimentoMaterialImpl.getConsultaUltmSeqcMovmMaterialView(MovimentoMaterialImpl.java:647)
at br.com.cds.gtj.gco.model.gco.entity.MovimentoMaterialImpl.getUltmSeqcMovmMatl(MovimentoMaterialImpl.java:676)
at br.com.cds.gtj.gco.model.gco.entity.NotaFiscalPedidoImpl.recebeNotaFiscalPedido(NotaFiscalPedidoImpl.java:1208)
Whats really curious about this error is that, if I try the commit operation again right after getting the nullpointerexception, everything goes smoothly and the process is completed. What could cause this kind of error, and why would a second try make it work?
Thanks in advance,
Daniel
It's a very simple VO. It has a query that returns a value I need from the database. I could very well solve this by making a procedure with this query and programmatically executing this procedure from the entity X, but I'm interested in figuring why this is happening and what am I doing wrong.
I will paste the query here, but I suspect my problem is with the entity. I tried creating other view accessors and tried calling their "get" methods, and none of them can return the RowSet, all ending on the same error in the stack trace: EntityCache -> NullPointerException.
Heres the query:
SELECT
MAX(MovimentoMaterial.SEQC_MOVM_MATL) AS UltmSeqc
FROM
MOVIMENTO_MATERIAL MovimentoMaterial
WHERE
MovimentoMaterial.ALMX_MOVM_MATL = :varAlmxMovmMatl AND
MovimentoMaterial.CODG_GRPO_MATL_MOVM_MATL = :varCodgGrpoMatlMovmMatl AND
MovimentoMaterial.CODG_SUBS_MATL_MOVM_MATL = :varCodgSubsMatlMovmMatl AND
MovimentoMaterial.NUM_SEQC_MATL_MOVM_MATL = :varNumSeqcMatlMovmMatl
My objective is to set the bind Variables in this query, and get the value for UltmSeqc, which I will use for future procedures.
Being so, I tried to get the rowset, and from it execute the setNamedBindVariable stuff to get the result from this query. Why can't I get a RowSet from this view, given that I created it's accessor inside the entity X?
Similar Messages
-
I purchased Elements 13. When I tried to install it I get the error message that it is not supported by Vista. What do I do now?
If you can't install Windows 7 or higher or get a new computer with Windows 7 or higher, you won't be able to run Photoshop Elements 13.
There are many inexpensive refurbished or "off lease" computers available at very reasonable cost. Here is one example (scroll down):
Computers & Tablets, Desktop PCs, All Desktop PCs, Refurbished - Newegg.com -
I plugged in my brand new nano to my husbands desktop to get it registered, but had a problem mid way through when I tried to used an apple login that already existed. Now it's not registered and the computer won't recognize my device. How do I fix this?
iPod not recognized in 'My Computer' and in iTunes for Windows
Call U.S. iPod and Mac technical support: 1-800-APL-CARE (1-800-275-2273) to register your iPod Nano. -
User gets "This network connection does not exist" when she tryes to log on to Terminal Server (2008 R2)
I got more than 100 users. Shes the only one getting is. We tried four computers (All Windows 7 Pro)
Nothing useful in event viewer to mention.Hi,
Thank you for posting in Windows Server Forum.
Does that user able to login previously?
From your comment, it seems that there is some permission issue with that user. As you have checked that user with different system also. Please check that user is added under “Remote Desktop User” local group and also allowed “Allow log on through
Remote Desktop service” permission under group policy. Also please check that when user tries to login it uses “Domainname\Username” format.
In addition for a try, also check by disabling firewall on one particular system.
To add users and groups to the Remote Desktop Users group by using Local Users and Groups snap-in:
1. Click Start > Administrative Tools, Open Computer Management.
2. In the console tree, click the Local Users and Groups node.
3. In the details pane, double-click the Groups folder.
4. Double-click Remote Desktop Users, and then click
Add.
5. In the Select Users dialog box, click Locations to specify the search location.
6. Click Object Types to specify the types of objects you want to search for.
7. Type the name you want to add in the Enter the object names to select (examples) box.
8. Click Check Names.
When the name is located, click OK.
More information:
Remote Desktop disconnected or can’t connect to remote computer or to Remote Desktop server (Terminal Server) that is running Windows Server 2008 R2
http://support.microsoft.com/kb/2477176/en-us
Hope it helps!
Thanks,
Dharmesh -
I have a Pc (Toshiba) and I have an Ipod touch and I want to sync all my songs on my ipod to my PC on itunes. When I tried syincing my ipod to my computer it only synced the purchased songs on to my PC. How do I purchase all of my songs ans not just the purchased ones?
you have to pay to get a program like CopyTrans here is the link: http://www.copytrans.net/download.php
-
I rented a movie on my iPad that stopped downloading and when I tried to download it again it said I had to go to the iTunes Store but there were no downloads there. How do I get my movie to work!
What is your current connection via speedtest.net
Make sure DNS is set to auto (settings - general - network)
If on wifi try ethernet -
When I tried to buy ankimobile for my iPad, I got a message that my account was not accepted in the Australian store, and to transfer to the U.S. store. I don't know how I got to the Australian store and I tried but can't figure out how to get back so I can buy the ankimobile. I have never gotten this message before and never even knew there was more than one store. Is the ankimobile an Australian app? What should I do?
Meadowlark2How to Change the Country for iTunes & App Store Accounts
http://osxdaily.com/2013/05/24/change-country-itunes-app-store/
Cheers, Tom -
I have OSX 10.7 Lion. I set up a separate email account for my wife. All of a sudden when she tries to enter and website from email we get the following error message. JavaScript; The notnull validator has already been loaded. From there we can't seem to go any where. When you hit OK it just keeps appearing and the only way to get out of it is to quit Safai. If you try and got directly to Safari you get the same error message and can't go any further. Please help.
What you are experiencing is 100% related to Malware.
Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
You can try these free programs to scan for malware, which work with your existing antivirus software:
* [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
* [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
* [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
* [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
* [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
[http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
Did this fix your problems? Please report back to us! -
When i tried to sync my new iPhone to Itunes, I accidentally clicked on sync with my ipod, instead of creating a new one. So now my iphone is the replica of my ipod, deleting my contacts and pictures etc. Is there a way to get it restored?
Only if a backup of the iPhone with all that data on it exists. If one does, restore the iPhone using that backup.
-
i hope someone gets this who can help me. i don't find anything helpful in the help section of icloud. i'm using my 4th generation itouch for about 3 weeks with the ical. but today when i tried to edit an event or add an event a window would pop up and say "event can't be saved" or "no calendar chosen" or something like "this event doesn't belong with this calendar" and stuff like that.
can you please help me fix this?You could repartition your drive to have a different OS X with the older iTunes there, and the newer iTunes on the existing partition. Back up everything beforehand. See Kappy's advice in this thread. Partitioning my Hard Drive
-
Hello! I bought an iPod touch 3rd gen at a pawn shop and when i tried to set it up, it would not connect to my iTunes OR Wifi so that I could finish set up. Is there anything I can do to fix this before i take it back and get my money back?
Take it back for a refund.
-
I bought my iPhone 4 open line in Vancouver, Canada last week for use here in my home base in Bangkok, Thailand. But when I tried using my Thai sim, I get a very weak signal, if not a weak signal, then a no service status. I also have very weak wifi reception. What do I do?
I already tried the following:
a. Turned the phone off and then on.
b. Checked all wifi connections – no problem given that all our laptops and desktops can connect seamlessly.
c. I tried restoring the phone to original factory settings via itunes
d. Tried resetting the phone.
e. Tried different microsims from all networks
f. However, all methods failed given that the network reception is very weak and often reflects – “no service”. And with regards to the wifi reception It has difficulty in reading even the signal right in front of the wifi router.
I went to two Apple resellers here in Bangkok and requested that they please look at my Iphone and have it serviced. I was frustrated when they said that given that I bought my phone in Canada, they are not able to support me and should instead try to contact the Apple store in Canada.
I went to apple.ca website and went to the expresslane support and I was said to register and callback. Tried calling the 1800 number but given that I was in Thailand I had difficulty getting a connection.1st sentence, 4th page of the iPhone warranty found here:
Apple may restrict service to the country where Apple or its
Authorized Distributors originally sold the hardware product.
From the Repair terms and conditions found here:
9. Availability of Service.
Apple may restrict service to the country where Apple or its authorized distributors originally sold the
hardware product, and to the countries listed in the table below. A list of authorized distributors is
available online at:
http://images.apple.com/legal/warranty/docs/iPhoneAuthorizedDistributors.pdf
If you do not believe that, then see these search results which confirm my statement. -
I just bought an iPhone 4s yesterday and it wouldn't connect to the iTunes 10.6.3 I had already on my laptop for my husbands 3gs and my brother in laws iPhone 4. Neither of them ever had a problem syncing with itunes. When I tried I was told to uninstall itunes and reinstall a 64bit version. Took several attempts but I finally got it. Then it said that I needed to upgrade my apple mobile device support and for me to uninstall itunes again and reinstall it. I have done all of this several times and still cannot get it to work right. I have uninstalled every Apple software listed on my computer and had to reinstall it all. Help!!!!!!!
Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
http://www.apple.com/itunes/download/
Download and install the free trial version of WinRAR:
http://www.rarlab.com/
Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
(If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.) -
I've encoded a vinyl LP record into digital format and recorded it onto an usb as MP3 file. But when I tried to copy it onto my ipod classic, I get a message stating "was not copied to the ipod because it cannot be played on this ipod". Why?
I was refering to the "sample rate", normally 44.1 KHz, the iPod might not be able to play tracks with a non-standard rate. Otherwise I'm not sure what the issue might be.
tt2 -
I participated in getting the free download of Mountain Lion for new Mac owners. It took me three days to finally get a code to do it and when I tried downloading it, the estimated time was 74 days 17 hours. Now an error occurred. What do I do? I am very frustrated and just want the great software to download in a resonalbe time!
Take your Mac to a location with a fast, relaible Internet connection that will be all yours during the duration of the download.
If you want to complain, PLEASE call Apple and do so.
Internet only downloads of OS X is completely stupid, it assumes everyone has reliable Internet everywhere and /or no data caps.
Maybe you are looking for
-
HT204053 I want to connect my Apple account any Claude
I want to connect my Apple account any Claude stolen iPhone 5s
-
When will Elements and Lightroom support the RAW files from the Olympus em5 Mark 2 camera?
Camera was launched in Feb 15. As far as I understand, neither product will open the RAW files for some months. When will that be, does anyone know?
-
Import from Olympus E-PL1?
How do I adjust my easy setup before importing from my Olympus E-PL1 camera? The manual says it's a HD(720p)camera, but I can't find a good setting. The movies look good in the viewer but blurry and bad after exporting. Any tips?
-
We are migrating our application from SQL Server 2005 to ORacle 9i. We used to have queries that extracted data between different databases in SQL Server, we've encountered problems doing the same in ORacle. What used to be separate Databases in SQL
-
How can I easily rearrange photos in iWeb?
I am trying to rearrange photos on my iWeb pages and seem to have no control over where they land when I drag and drop them. I have several pics on one page and cannot see them all on my screen (G4 17"). Is there a way to view them all so I can see w