Error when I change UNION to UNION ALL
Hi,
In the SQL below, I have a union in which I dont care about duplicates (in fact I know there wont be any). Hence, I want to avoid any overhead of sorting and checking for same, by replacing it with UNION ALL. The SQL runs fine with UNION, but complains when I change it to UNION ALL, which I cannot explain. The error message is "Error: java.sql.SQLException: ORA-00936: missing expression, SQL State: 42000, Error Code: 936"
Here is the SQL:
SELECT activ_I, activ_C, cases.I_OCCASTYP_CASES, cases.C_OCCASTYP_CASES FROM TOCCASE cases JOIN (
SELECT I activ_I, C activ_C, I_OCCASE_RESULTINGFROM, C_OCCASE_RESULTINGFROM FROM TOCPROCESSINSTANCE activ JOIN (
SELECT I_OCACTVTY_CHANGES, C_OCACTVTY_CHANGES FROM TOCTransferActivityChange x
WHERE I_TO IN (2)
AND C_TO = 1009
AND CHANGEDATE <= to_date('2009-05-16 00:00:00','YYYY-MM-DD HH24:MI:SS')
AND CHANGEDATE = (SELECT MAX(z.CHANGEDATE) FROM TOCTransferActivityChange z WHERE z.I_OCACTVTY_CHANGES = x.I_OCACTVTY_CHANGES AND z.C_OCACTVTY_CHANGES = x.C_OCACTVTY_CHANGES)
) latest_user_tx ON activ.I = latest_user_tx.I_OCACTVTY_CHANGES AND activ.C = latest_user_tx.C_OCACTVTY_CHANGES
WHERE activ.C = 11200 AND activ.I_OCCASE_RESULTINGFROM IS NOT NULL AND activ.C_OCCASE_RESULTINGFROM IS NOT NULL
UNION ALL (
SELECT I activ_I, C activ_C, I_OCCASE_RESULTINGFROM, C_OCCASE_RESULTINGFROM FROM TOCTASK activ JOIN (
SELECT I_OCACTVTY_CHANGES, C_OCACTVTY_CHANGES FROM TOCTransferActivityChange x
WHERE I_TO IN (2)
AND C_TO = 1009
AND CHANGEDATE <= to_date('2009-05-16 00:00:00','YYYY-MM-DD HH24:MI:SS')
AND CHANGEDATE = (SELECT MAX(z.CHANGEDATE) FROM TOCTransferActivityChange z WHERE z.I_OCACTVTY_CHANGES = x.I_OCACTVTY_CHANGES AND z.C_OCACTVTY_CHANGES = x.C_OCACTVTY_CHANGES)
) latest_user_tx ON activ.I = latest_user_tx.I_OCACTVTY_CHANGES AND activ.C = latest_user_tx.C_OCACTVTY_CHANGES
WHERE activ.C = 11554 AND activ.I_OCCASE_RESULTINGFROM IS NOT NULL AND activ.C_OCCASE_RESULTINGFROM IS NOT NULL
) activity_transfers ON activity_transfers.I_OCCASE_RESULTINGFROM = cases.I AND activity_transfers.C_OCCASE_RESULTINGFROM = cases.C
If I run the UNION ALL as is without the join to TOCCASE it works fine as well. The columns in each part of the union are the same so I have no idea why its failing.
I am running the following version of Oracle:
"Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production" (as returned from "select * from v$version")
thanks for any info
Edited by: user11176141 on 18-May-2009 03:15
Thanks for the input!
When I remove the bracket after the ALL keyword, I get the an error "Error: java.sql.SQLException: ORA-00920: invalid relational operator
, SQL State: 42000, Error Code: 920". I assume this is because I had a corresponding closing bracket, so I removed that as well. However, I now get the error "Error: java.sql.SQLException: ORA-00920: invalid relational operator, SQL State: 42000, Error Code: 920". so as it is now the SQL reads
SELECT activ_I, activ_C, cases.I_OCCASTYP_CASES, cases.C_OCCASTYP_CASES FROM TOCCASE cases JOIN (
SELECT I activ_I, C activ_C, I_OCCASE_RESULTINGFROM, C_OCCASE_RESULTINGFROM FROM TOCPROCESSINSTANCE activ JOIN (
SELECT I_OCACTVTY_CHANGES, C_OCACTVTY_CHANGES FROM TOCTransferActivityChange x
WHERE I_TO IN (2)
AND C_TO = 1009
AND CHANGEDATE <= to_date('2009-05-16 00:00:00','YYYY-MM-DD HH24:MI:SS')
AND CHANGEDATE = (SELECT MAX(z.CHANGEDATE) FROM TOCTransferActivityChange z WHERE z.I_OCACTVTY_CHANGES = x.I_OCACTVTY_CHANGES AND z.C_OCACTVTY_CHANGES = x.C_OCACTVTY_CHANGES)
) latest_user_tx ON activ.I = latest_user_tx.I_OCACTVTY_CHANGES AND activ.C = latest_user_tx.C_OCACTVTY_CHANGES
WHERE activ.C = 11200 AND activ.I_OCCASE_RESULTINGFROM IS NOT NULL AND activ.C_OCCASE_RESULTINGFROM IS NOT NULL
UNION ALL
SELECT I activ_I, C activ_C, I_OCCASE_RESULTINGFROM, C_OCCASE_RESULTINGFROM FROM TOCTASK activ JOIN (
SELECT I_OCACTVTY_CHANGES, C_OCACTVTY_CHANGES FROM TOCTransferActivityChange x
WHERE I_TO IN (2)
AND C_TO = 1009
AND CHANGEDATE <= to_date('2009-05-16 00:00:00','YYYY-MM-DD HH24:MI:SS')
AND CHANGEDATE = (SELECT MAX(z.CHANGEDATE) FROM TOCTransferActivityChange z WHERE z.I_OCACTVTY_CHANGES = x.I_OCACTVTY_CHANGES AND z.C_OCACTVTY_CHANGES = x.C_OCACTVTY_CHANGES)
) latest_user_tx ON activ.I = latest_user_tx.I_OCACTVTY_CHANGES AND activ.C = latest_user_tx.C_OCACTVTY_CHANGES
WHERE activ.C = 11554 AND activ.I_OCCASE_RESULTINGFROM IS NOT NULL AND activ.C_OCCASE_RESULTINGFROM IS NOT NULL
) activity_transfers ON activity_transfers.I_OCCASE_RESULTINGFROM = cases.I AND activity_transfers.C_OCCASE_RESULTINGFROM = cases.C
Similar Messages
-
I found an error when I changed the contact information.
I found an error when I changed the contact information.
Yesterday, I imported all my contact information from my old phone to my brand new iPhone 4S at an AT&T store. Everything looked fine, but all the first names and the last names were switched. So, I had to correct all contact information manually again. It was so ridiculous.
When I corrected the contact information, the names on my contact list were not changed immediately. For example, when the name of a person, ‘Doe John’, was changed to ‘John Doe’, the name on the contact list was not changed and remained as ‘Doe John’. After I rebooted my iPhone, the name on the list was changed correctly. Do I have to reboot every time when I switched the first name and the last name?
My iPhone Information
IPhone 4S White 16G
Model: MC924LL
iOS Version: 5.0.1 (9A405)Is ths display order for contacts set the way you want it?
Settings > Mail,Contacts,Calendars > Display Order -
Error when I change the BOM without a change number
Hi,
I would like to receive an Error when I change the BOM without a change number.
I define the modification parameter (EC management active and History reqmnt), I configure history reqmnt for BOM (I choice the status 1 and 3 for my BOM usage 5)
In change the message type I dont have the really message number in the liste.
How can I create a new message (045) so that I get an error by changing the BOM without a change number.
ThanksDear Dede,
check for the Authorization Object C_STUE_NOH for the
particular User Id's for which you want to Create or Change a
BOM without a Change number.
So assign this Authorization Object under all user id's for which
you want to have this control.
Adding the mentioned Authorization Object in particular User
Id's will resolve the problem.
This can be done using PFCG T code by adding in particular
Roles.
Revert back incase of any clarifications.
Regards
Mangalraj.S -
1- My itunes account was for uae store and i change it to the usa store by an itunes gift card , When i change it i lost all of my purchased and i cant do any updates for the apps and games what should i do to get them back .
2- Can I Transfer the amount to another Account .
and thnxCall Apple sales support. Something apparently went wrong in your transaction. In the USA the number is 1-800-676-2775.
Best of luck. -
how to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer
Looks like the presentation column got Alias before your BMM changes, so in your case renaming logical column and deleting alias is not good to go.
Keep Alias -
Error when applying changes in Form
I get the following error when saving changes in a form. The Form was created using the Report and Form application. If someone can pls help, I would greatly appreciate it!!
ORA-20505: Error in DML: p_rowid=APL11163, p_alt_rowid=transcontrolnum, p_rowid2=, p_alt_rowid2=. ORA-06550: line 1, column 99: PLS-00201: identifier 'transcontrolnum' must be declared ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
Error Unable to process row of table APL_TRANSACTION
OKYou should check the source of your page items:
P?_TRANSCONTROLNUM
It looks like you don't have this column in your table or there is a typo in the source.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
I always get "general error" when I change value of "Digitizer"
I tried to capture a Prores422 project by FCP6 and Kano3 card.
I changed setting of "Capture Preset Editor" to ensure capture what I needed.
I think parameter value of "Digitizer" will determine Bit Depth of the project.
The original value of "Digitizer" is "AJA 8-bit Digitizer". If I selected "AJA 10-bit Digitizer",it will pop up generel error.
If I re-select the value to "AJA 8-bit Digitizer", it will still pop up general error.
Please give me a hand.
Is bit depth (8bit or 10bit) is determined by the setting of "Digitizer"?
If yes, why does it always pop up general error when I changed it.From the information available it appears that your install could be conflicting with a previous version or installation. I would recommend reviewing your installation logs to verify the root cause of your difficulties. You can find directions on how to review your installation logs at Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html.
-
Hello All,
I am getting the following error when I tried to change the page layout of a publishing page in my site collection using SharePoint 2010.
Here I am just trying to change the page layout to "Four Item Grid" page layout. But i am not sure why this error is coming up.
I tried to search in the internet but no one has this kind of issue it seems.
Can anybody help me in resolving this issue.I had this same problem when trying to change the layout on a publishing page.
What I found by running some powershell script against the pages library is that the ows_PublishingPageLayout field actually referenced a layout url from another site. What had happend is that an author downloaded a copy of a page from one site and
uploaded it to another site. Evidently when you do this the url reference to the page layout file does not get corrected (it's fully qualified)
To fix this problem I wrote some powershell script to update the ows_PublishingPageLayout url so the site host url was corrected and did not have the old/original site's url.
$SiteUrl = "http://your.site.url.here"
$SPSite = New-Object Microsoft.SharePoint.SPSite($SiteUrl);
$OpenWeb = $SpSite.OpenWeb();
$publishingWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($OpenWeb)
$AllPubLayouts = $publishingWeb.GetAvailablePageLayouts()
$pages = $OpenWeb.Lists["Pages"]
#view all page layouts
foreach ($page in $pages.Items)
if (!$page["ows_PublishingPageLayout"].ToString().Contains($SiteUrl))
write-host $page.url
write-host $page["ows_PublishingPageLayout"] -
Mail.app frustration - outgoing server is "none", error when saving changes
Hi,
I hope somebody can help. I can receive mail fine but cannot send. I had to make a change to my outgoing server yesterday due to a hosting changeover.
I have 2 POP3 accounts for work in Mail.app. The send button is grayed out so I can't write or reply to any mail. Checking the account settings I can see that my outgoing server is listed as "None" and the box is checked to "use only this server". The proper server is listed in the drop down menu here, and I can select it. When I change to the 2nd account or close, I am prompted to Save, Don't Save, or Cancel. When I click Save I get an error that "You already have an account named "x"." This is completely ridiculous, why could I save changes yesterday but not today?
Everything was fine with the new server settings yesterday, and until an hour ago today. Windows computers in my domain are working perfectly with the exact same settings.
While typing this I actually got the 2nd account to accept the changes, but the 1st account is still giving me an error. The settings are the same for both! What gives? Is there a preference file I can edit manually to fix this?That has nothing to do with it. I ended up working around the problem by changing the account name.
But I still think this is a bug, so I won't mark the topic as answered (a workaround is not the solution). -
Unresponsive Script Error when Saving Changed Set in Flickr Organizer
I'm getting an unresponsive script error when saving a changed set in the Flickr organizer.
The problem started when using Firefox 3.6.8 or maybe an earlier version. It persists in Firefox 3.6.12
I've noticed the error only appears in the Organizer and only when saving a changed set or saving after deleting a set.
It does indeed save the changed set correctly before crashing.
It is not intermittent and happens every time I perform this save.
The error does not occur in Chrome or Safari.
Examples of the error messages can be found at
http://www.flickr.com/photos/blazer8696/4897580573/
and
http://www.flickr.com/photos/blazer8696/4897656175/Upgrading to 4.0.1 has corrected this problem.
-
Need better info on error when sending a SOAP message - logger ALL
Hi all!
I am calling a UCM content server CheckIn WS from JDeveloper 11g 1.1.1.1.0 (jspx). I've used the WS Data Control and a WSDL for this, and have most of it down besided the CustomMetaData part.
I need to pass in a value for one of the custom metadata fields and when i try to override the parameters of the operation to include it, i get this error - i doubt that this is all the info i get.
I've tried setting the logger.xml levels to ALL (C:\oracle\Middleware\jdeveloper\modules\oracle.odl_11.1.1\server_config\logging.xml) - nothing changed.
Sep 25, 2009 6:45:58 AM org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper setCharacterEncoding
WARNING: Unable to set request character encoding to windows-1252, because request parameters have already been read.
Sep 25, 2009 6:45:58 AM org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper setCharacterEncoding
WARNING: Unable to set request character encoding to windows-1252, because request parameters have already been read.
Sep 25, 2009 6:45:58 AM oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
WARNING: ADF: Adding the following JSF error message: Encountered an internal error creating the SOAP request for the operation.
oracle.adf.model.adapter.AdapterException: DCA-40008: Encountered an internal error creating the SOAP request for the operation.
at oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider.setParameters(SOAPProvider.java:656)
at oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider.execute(SOAPProvider.java:302)
at oracle.adfinternal.model.adapter.webservice.WSDataControl.invokeOperation(WSDataControl.java:251)
at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:427)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:256)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:464)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:217)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:201)
at view.backing.CheckIn.cb1_action(CheckIn.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:673)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Here is my bean code:
HashMap primaryFile = new HashMap();
primaryFile.put("fileContent", bFile);
primaryFile.put("fileName", uploadedFile.getFilename());
operationBinding.getParamsMap().put("primaryFile", primaryFile);
HashMap customMetadataPropertyRoom = new HashMap();
customMetadataPropertyRoom.put("name", "xRoom");
customMetadataPropertyRoom.put("value", "SOME ROOM!");
HashMap customDocMetadata = new HashMap();
customDocMetadata.put("property", customMetadataPropertyRoom);
operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
The one with the fileContent and fileName works good since it's only one level deep, but it seems that i can't do the same logic with the 2 levels deep.
*<CustomMetaData>*
*<property>*
<name>
<value>
</property>
</CustomMetaData>
Please help - i've did not get a minut of sleep and it's already 7 AM :((( It's not the first time i a having all nighters while doing JDeveloper...so little resources on line...
I hope someone can help me out quickly since i am on a short deadline.
Btw, i used the wizard and the wizard did not generate any stubs like the axis does, so i assume it's all integrated...Hi all!
Just to post the solution to this if anyone ever runs accross this thread...
For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
HashMap primaryFile = new HashMap();
primaryFile.put("fileContent", bFile);
primaryFile.put("fileName", uploadedFile.getFilename());
operationBinding.getParamsMap().put("primaryFile", primaryFile);
HashMap customDocMetadata = new HashMap();
HashMap [] properties = new HashMap[1];
HashMap customMetadataPropertyRoom = new HashMap();
customMetadataPropertyRoom.put("name", "xRoom");
customMetadataPropertyRoom.put("value", "SOME ROOM");
properties[0] = customMetadataPropertyRoom;
customDocMetadata.put("property", properties);
operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
Good luck all! -
OC4J error when posting changes - Help needed
When i call postChanges() and later Commit() to the ApplicationModule's transaction I succed.
The next time i call postChanges() on the ApplicationModule's transaction the following exception is thrown on the OC4J server:
oracle.jbo.DMLException: JBO-26080: Error while selecting entity for Styles
at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:841)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:3839)
at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:2630)
at dk.bestseller.bestinfoII.purchase.stylecard.StylesImpl.lock(StylesImpl.java:635)
at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:1848)
at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:1790)
at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1570)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:754)
at dk.bestseller.bestinfoII.purchase.stylecard.StylesImpl.setStyleName(StylesImpl.java:152)
at dk.bestseller.bestinfoII.purchase.stylecard.StylesImpl.setAttrInvokeAccessor(StylesImpl.java:446)
at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:680)
at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:903)
at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:819)
at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:948)
at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:925)
at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:717)
at oracle.jbo.server.remote.RuntimeViewRowSetIteratorInfo.updateRow(RuntimeViewRowSetIteratorInfo.java:311)
at oracle.jbo.server.remote.RuntimeViewRowSetIteratorInfo.readPiggyback(RuntimeViewRowSetIteratorInfo.java:193)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readPiggyback(AbstractRemoteApplicationModuleImpl.java:2419)
at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.isTransactionDirty(AbstractRemoteApplicationModuleImpl.java:1788)
at oracle.jbo.server.remote.ejb.EJBApplicationModuleImpl.riIsTransactionDirty(EJBApplicationModuleImpl.java:2454)
at RemoteStylecardModule_StatefulSessionBeanWrapper6.riIsTransactionDirty(RemoteStylecardModule_StatefulSessionBeanWrapper6.java:12889)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
## Detail 0 ##
java.sql.SQLException: ORA-01002: Fetch out of sequence
Is there a solution to this problem?
Client sample code:
import javax.naming.*;
import java.util.Hashtable;
import oracle.jbo.*;
//import oracle.job.client.*;
** Sample client code for connecting to an appmdoule deployed
** as an EJB session bean to Oracle9iAS server.
public class SampleEJBClient
public static void main(String[] args)
** Change the following String's to match your appmodule name and the
** name of the viewobject included in that appmodule.
String amDefName = "dk.bestseller.bestinfoII.purchase.stylecard.StylecardModule";
String voMemberName = "StylesView";
** Change the following to match the name of the J2EE application
** containing the deployed appmodule session bean.
String applicationName = "BCStyleCardEJB";
** Change the following to point to the datasource name
** (defined in Oracle9iAS).
** to your database.
String dataSourceName = "jdbc/BI2DS";
** Change the following to point to the hostname where the
** appmodule is deployed i.e. the host where Oracle9iAS application
** server is running.
String applicationServerHost = "bsdk-bi2app2";
** Change the following username and password
** to be used for connecting to the Oracle9iAS server.
String iasUserName = "****";
String iasUserPasswd = "****";
ApplicationModule am = null;
try
// Setup JNDI environment for looking up
// the appmodule
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,JboContext.JBO_CONTEXT_FACTORY);
env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_EJB_IAS);
env.put(JboContext.HOST_NAME, applicationServerHost);
env.put(JboContext.SECURITY_PRINCIPAL, iasUserName);
env.put(JboContext.SECURITY_CREDENTIALS, iasUserPasswd);
env.put(JboContext.APPLICATION_PATH, applicationName);
Context ctx = new InitialContext(env);
// Lookup appmodule home
ApplicationModuleHome amHome = (ApplicationModuleHome)ctx.lookup(amDefName);
// Create an appmodule instance
am = amHome.create();
// Connect to the database using the datasource
am.getTransaction().connectToDataSource(null, dataSourceName, false);
// Find the viewobject included in the appmodule
ViewObject vo = am.findViewObject(voMemberName);
// Iterate over the viewobject to get the rows
long l = System.currentTimeMillis();
Row r = vo.first();
r.setAttribute("StyleName", "My Change 1");
am.getTransaction().postChanges();
am.getTransaction().commit();
r.setAttribute("StyleName", "My Change 2");
//Here the exception is thrown when i call postChanges()
am.getTransaction().postChanges();
am.getTransaction().commit();
System.out.println("vo.first(): "+(System.currentTimeMillis()-l));
while (r != null)
l = System.currentTimeMillis();
// Iterate over the current row and get
// all the attributes
for (int i = 0; i < vo.getAttributeCount(); i++)
String attrName = vo.getAttributeDef(i).getName();
String attrVal = r.getAttribute(i).toString();
System.out.println(attrName + " = " + attrVal);
System.out.println("Row: "+(System.currentTimeMillis()-l));
l = System.currentTimeMillis();
r = vo.next();
catch (NamingException ex)
System.out.println("NamingException " + ex.getMessage());
ex.printStackTrace();
catch (ApplicationModuleCreateException ex)
System.out.println("Unable to create application module: " + ex.getMessage());
ex.printStackTrace();
catch (JboException ex)
System.out.println("JboException: " + ex.getMessage());
ex.printStackTrace();
catch (Exception ex)
System.out.println("Exception: " + ex.getMessage());
ex.printStackTrace();
finally
if (am != null)
am.getTransaction().disconnect();
am.remove();
}I have inserted a rollback() just after the commit() that soules the problem.
ViewObject vo = am.findViewObject(voMemberName);
// Iterate over the viewobject to get the rows
long l = System.currentTimeMillis();
Row r = vo.first();
r.setAttribute("StyleName", "My Change 1");
am.getTransaction().postChanges();
am.getTransaction().commit();
//with out this line the server throws the exception (Is it a bug?)
am.getTransaction().rollback();
vo = am.findViewObject(voMemberName);
r = vo.first();
r.setAttribute("StyleName", "My Change 2");
am.getTransaction().postChanges();
am.getTransaction().commit(); -
No Such Entity error when persisting changes to web descriptor
Hello.
Has anyone else run into trouble editing a web descriptor
via the Admin Console?
When I attempt to save any changes I get the following error:
' No Such Entity.
There is no longer a Web Descriptor named XYZ
Runtime entity may have ceased to exist or your url may
be out of date.'
I'm running WL6.1 on Solaris 2.6 using a Development License.
Thanks for any insight you can provide.Hi,
I have seen this, but it has always been when I started the
console/descriptor editor then restarted weblogic, then make a change
through the console.
The internal names get out of synch, all you should need to do is refresh
the page before making changes and this should re-synch everything again.
Gareth
"TC Young" <[email protected]> wrote in message
news:3c59e1fc$[email protected]..
>
Hello.
Has anyone else run into trouble editing a web descriptor
via the Admin Console?
When I attempt to save any changes I get the following error:
' No Such Entity.
There is no longer a Web Descriptor named XYZ
Runtime entity may have ceased to exist or your url may
be out of date.'
I'm running WL6.1 on Solaris 2.6 using a Development License.
Thanks for any insight you can provide. -
Ipod 80gig gives an error when connecting to pc, and deletes all
hi,
i have an ipod 80gig since december and in the beginning when i connected it to my computer sometimes it blocked and i had to restore (all my music GONE!).
it bothered me but it didn't happen so often.
now allmost EVERYTIME when i connect my ipod to my computer, itunes gives an error saying there was an error, he can't read it and i have to click restore. when i unplug it then, all my songs are deleted off my ipod. and when i restore later it works like normal again... HELP ME!
i hate this because i allways have to put everything on my ipod again and it takes forever for all those songs to upload again.
all help is welcome! thanks!Hi there,
It sounds like the video may need to be converted to sync properly. I would recommend taking a look at the article below for more information.
iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
http://support.apple.com/kb/ts1497
-Griff W. -
Error when I change user privileges
I am using an Access Control List
and when I add a new user and click the apply button, I am getting the following error everytime.
anyone know what this is??
http://234.1.2.107/denied.htm?attempted-attack
Thanksi got it
it was because of brackets, its like process success message does not like brackets
I had
#MRU_COUNT# row(s) updated and i changed it to
#MRU_COUNT# rows updated and it is working fine, I can recreate the problem by putting brackets back.....wierd
Maybe you are looking for
-
Shockwave Won't Install (Windows 8, PC, Google Chrome)
Hello, I am on a PC running Windows 8. My browser is Google Chrome. I am trying to install the newest shockwave player, and I have downloaded the installer multiple times, and the installation window finished loading and then only gave me the option
-
Database Adapter insert operation with return value
Hi All, I have a table with auto generate parimary key in DB2 database. I need to have an insert operation ont this table which should return current value of primary key after insert. For this , I have created an insert operation in DB Adapter. But
-
Hi has anyone developed or is BC thinnking of developing an phone app that would allow the Partner to monitor and or basic adminitration of there clients. Things like billing dates. Email delivery status and basic stats Site uptime/Issues Just a rand
-
Hi Experts, I have a requirement, where I need to Parse the XML file after reading it from application server. Based on the data, I need to add some Tags to XML data. Can we achieve the solution in ABAP. Request your expertise. Thank you, Amit
-
Opening a D80 NEF crashes Bridge and Photoshop CS4
Every time I try to open a D80 NEF file Photoshop and Bridge both crash. I have re-installed Photoshop and nothing different. I have deleted the library files for both apps. and nothing changes. What should i do next? It used to work when i opened th