oracle.jbo.domain.DataCreationException: Houston-25009
When I run my page I get this errororacle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: oracle.jbo.domain.BlobDomain type: weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB with value:weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB@24
This has been discussed here a couple of times. You searched the Forum?
And please always mention what jdev version you use.
Timo
Tags: Java
Similar Questions
-
Hello
I get the same error, that so many times posted in this forum. But the case of the mine is little different from the others. I use JDeveloper 12 c
I have download several files and commit in DB a. Files and downloaded a list here. I am facing problem when Blob respective data in connection parameter. I am trying to download the file doc.txt which contained karima.
Code snippet:
private list < UploadedFile > uploadedFile.
List of files < UploadedFile > = this.getUploadedFile ();
for (int i = 0; i < files.size (); i ++) {}
AttributeBinding atrBlobDocContent = (AttributeBinding) bindings.getControlBinding ("DocContent");
atrBlobDocContent.setInputValue (files.get (i)); Error happen here tried 1
Below I tried 2
blobFile = FileOperations.writeToBlobDomain (files.get (i));
atrBlobDocContent.setInputValue (blobFile);
How can I set blob value in list in link atrBlobDocContent.
See detail below code
Bean class public class FolderUploadBean {}
public BindingContainer {} getBindings()
back...
Return BindingContext.getCurrent () .getCurrentBindingsEntry ();
}
BindingContainer links = getBindings();
private list < UploadedFile > uploadedFile.
private list < String > fileName;
Private BlobDomain blobFile;
{} public void setBlobFile (BlobDomain blobFile)
this.blobFile = blobFile;
}
public BlobDomain getBlobFile() {}
Return blobFile;
}
public FolderUploadBean() {}
}
{} public void setUploadedFile (list < UploadedFile > uploadedFile)
this.uploadedFile = uploadedFile;
}
public list < UploadedFile > getUploadedFile() {}
uploadedFile return;
}
public String saveFiles() {}
List of files < UploadedFile > = this.getUploadedFile ();
System.out.println ("save the files called");
If (file! = null) {}
System.out.println ("\n file size ==" + files.size ());
for (int i = 0; i < files.size (); i ++) {}
System.out.println ("\n File Name is" + files.get (i) .getFilename ());
System.out.println ("\n the file length is" + files.get (i) .getLength ());
OperationBinding dmsBlobBinding = bindings.getOperationBinding ("CreateInsert");
OperationBinding dmsInfoBinding = bindings.getOperationBinding("CreateInsert1");
OperationBinding dmsApplMapBinding = bindings.getOperationBinding("CreateInsert2");
//-------------------
AttributeBinding atrBlobDocId = (AttributeBinding) bindings.getControlBinding ("DocBlobId");
AttributeBinding atrBlobSeqNo = (AttributeBinding) bindings.getControlBinding ("SeqNo");
AttributeBinding atrBlobDocContent = (AttributeBinding) bindings.getControlBinding ("DocContent");
Information attribute values
AttributeBinding atrInfDocBlobId = (AttributeBinding) bindings.getControlBinding ("DocBlobId1");
AttributeBinding atrInfoSeqNo = (AttributeBinding) bindings.getControlBinding ("SeqNo1");
AttributeBinding atrInfoDocType = (AttributeBinding) bindings.getControlBinding ("DocType");
AttributeBinding atrInfoDocName = (AttributeBinding) bindings.getControlBinding ("DocName");
Card Attrib Valuess
AttributeBinding atrDMSMapDocBlobId = (AttributeBinding) bindings.getControlBinding ("DocBlobId2");
dmsBlobBinding.execute ();
dmsInfoBinding.execute ();
dmsApplMapBinding.execute ();
OperationBinding opBindingSeql = bindings.getOperationBinding("generateDocBlobId");
Map paramsMap = opBindingSeql.getParamsMap ();
String strFirstDocBlobId = opBindingSeql.execute (m:System.NET.SocketAddress.ToString ());
System.out.println ("returned seq impl =" + strFirstDocBlobId);
int intFirstSeqNumber = Integer.parseInt (strFirstDocBlobId);
atrBlobDocId.setInputValue (intFirstSeqNumber);
atrBlobSeqNo.setInputValue (0);
//----------------Blob Table-------------------------
System.out.println ("value of the lob is" + files);
files. Set (i, uploadedFile.get (i));
BlobDomain blobDomain = createBlobDomain (files.get (i));
System.out.println ("blobDomain is" + blobDomain);
Byte [] dataContent = blobDomain.getStorageByteArray ();
//----------------Info Table-------------------------
atrInfDocBlobId.setInputValue (intFirstSeqNumber);
atrInfoSeqNo.setInputValue (0);
atrInfoDocName.setInputValue (files.get (i) .getFilename ());
//--------------Map Table---------------------------
atrDMSMapDocBlobId.setInputValue (intFirstSeqNumber);
int intgetBlob = Integer.parseInt (atrBlobDocId.getInputValue () m:System.NET.SocketAddress.ToString ());
atrBlobDocId.setInputValue (intFirstSeqNumber);
atrInfDocBlobId.setInputValue (intFirstSeqNumber);
try {}
blobFile = FileOperations.writeToBlobDomain (files.get (i));
atrBlobDocContent.setInputValue (blobFile);
} catch (Exception e) {}
e.printStackTrace ();
}
Abvoe all values are defined
try {}
OperationBinding operationBinding = bindings.getOperationBinding ("Commit");
operationBinding.execute ();
} catch (Exception ex) {}
ex.printStackTrace ();
}
}
}
Returns a null value.
}
}
FileOperation.java public class {FileOperations
Public synchronized Shared BlobDomain writeToBlobDomain (UploadedFile imageFile)
throws SQLException, IOException {}
InputStream in = imageFile.getInputStream ();
BlobDomain blobDomain = new BlobDomain();
OutputStream out = blobDomain.getBinaryOutputStream ();
ubyte [] buffer = new byte [8192];
int bytesRead = 0;
While ((bytesRead = in.read (buffer, 0, 8192))! = - 1) {}
out. Write (buffer, 0, bytesRead);
}
in. Close();
Return blobDomain;
}
}
Error log oracle.adfinternal.view.faces.util.ReportableImpl: oracle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: java.lang.Integer type: oracle.jbo.domain.BlobDomain with value: karima
at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding._postSetValue(FacesCtrlAttrsBinding.java:183)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.setInputValue(FacesCtrlAttrsBinding.java:146)
at com.almulla.dms.view.beans.FolderUploadBean.saveFiles(FolderUploadBean.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
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)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:107)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:101)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:123)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1083)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:402)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:478)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:478)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3367)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3333)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
Caused by: oracle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: java.lang.Integer type: oracle.jbo.domain.BlobDomain with value: karima
at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:933)
at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:112)
at oracle.jbo.server.AttributeDefImpl.convertToJava(AttributeDefImpl.java:2515)
at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:1090)
at oracle.adf.model.binding.DCDataControl.setAttributeInRow(DCDataControl.java:2388)
at oracle.adf.model.bc4j.DCJboDataControl.setAttributeInRow(DCJboDataControl.java:2884)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:1175)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValueInRow(JUCtrlValueBinding.java:3010)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2985)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2948)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.setInputValue(FacesCtrlAttrsBinding.java:145)
... more than 68
Caused by: java.lang.NumberFormatException: for input string: "Karima".
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
in java.lang.Integer. < init > (Integer.java:677)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:101)
at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:883)
... more than 78
Maroof
Hello
This post related to my problem in my application have been resolved. I now use for creating data method below.
Private BlobDomain createBlobDomain (file UploadedFile)
{
InputStream in = null;
BlobDomain blobDomain = null;
OutputStream out = null;
Try
{
in = file.getInputStream ();
blobDomain = new BlobDomain();
out = blobDomain.getBinaryOutputStream ();
IOUtils.copy (in, out);
}
catch (IOException e)
{
e.printStackTrace ();
}
catch (SQLException e)
{
e.fillInStackTrace ();
}
Return blobDomain;
}
and other issues as data binding attribute below list file parameter is correct.
atrBlobDocContent.setInputValue (createBlobDomain (files.get (i)));
In my case, it was a stupid mistake in pageDefnitionBinding, here atrBlobDocContent attribute referencing some long type with another VO.
Thanks to Timo Hahn to propose and help debugging.
Maroof
-
oracle.jbo.domain.DataCreationException
Hello, I need your help please.
I have a table and inside the table, I have a selectOneChoice and a button. When I select a value in selectOneChoice I click the ok button and is to perform a function.
However, when I click on button this error pops up:
oracle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: java.math.BigDecimal type: java.lang.String with value: GREEN
I compare types EO and VO, and are the same.
I have not convert anything.
So, I don't understand this error.
Help me please.
This is my table:
< af:table value = "#{bindings." Var DtlQcInspectDtlVO1.collectionModel}"="row ".
lines = ' #{bindings. " DtlQcInspectDtlVO1.rangeSize}.
emptyText = "#{bindings." DtlQcInspectDtlVO1.viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." DtlQcInspectDtlVO1.rangeSize}' rowBandingInterval = '0 '.
selectedRowKeys = ' #{bindings. " DtlQcInspectDtlVO1.collectionModel.selectedRow}.
rowSelection = "single" id = 't2' contentDelivery = 'immediate' immediate = "true".
columnSelection = 'single '.
selectionListener = "#{bindings." DtlQcInspectDtlVO1.collectionModel.makeCurrent}.
columnStretching = "column: c32" >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.ItemId.name}.
sortable = "true" headerText = "ITEM" id = "c33" >
< af:outputText value = "#{rank." ItemId}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.ItemId.tooltip}.
ID = "ot34" / >
< / af:column >
< af:column headerText = "#{bindings." DtlQcInspectDtlVO1.hints.Diff1.label}"id ="c55 ".
rendered = "false" >
< af:outputText value = "#{rank." Diff1}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.Diff1.tooltip}.
ID = "ot79" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.Diff2.name}.
sortable = "true" headerText = 'DIFF2' id = "c35" >
< af:outputText value = "#{rank." Diff2}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.Diff2.tooltip}.
ID = "ot32" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonDesc.name}.
sortable = "true" headerText = "TYPE of DEFAULT" id = "c32" >
< af:outputText value = "#{rank." ReasonDesc}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonDesc.tooltip}.
ID = "ot36" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.QcDefectGradeId.name}.
sortable = "true" headerText = "DEFAULT GRADE" id = "c38" >
< af:outputText value = "#{rank." QcDefectGradeId}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.QcDefectGradeId.tooltip}.
ID = "ot33" >
< af:convertNumber groupingUsed = "false".
model = ' #{bindings. " DtlQcInspectDtlVO1.hints.QcDefectGradeId.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMinor.name}.
sortable = "true" headerText = "DEFECTS MINERS' id ="c45">
< af:inputText value = "#{row.bindings.DefectsMinor.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMinor.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMinor.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMinor.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMinor.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMinor.tooltip}.
ID = "sortent17" autoSubmit = 'true' disabled = ' #{rank. " QcDefectGradeId! = 1} ">"
< f: validator binding="#{row.bindings.DefectsMinor.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMajor.name}.
sortable = "true" headerText = "MAJOR FLAWS" id = "c46" >
< af:inputText value = "#{row.bindings.DefectsMajor.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMajor.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMajor.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMajor.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMajor.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsMajor.tooltip}.
ID = "it18' disabled = ' #{rank." QcDefectGradeId! = 2}"autoSubmit ="true">
< f: validator binding="#{row.bindings.DefectsMajor.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsCritical.name}.
sortable = "true" headerText = "CRITICAL FLAWS" id = "c47" >
< af:inputText value = "#{row.bindings.DefectsCritical.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsCritical.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsCritical.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsCritical.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsCritical.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.DefectsCritical.tooltip}.
ID = "it19' disabled = ' #{rank." QcDefectGradeId! = 3}' autoSubmit = "true" >
< f: validator binding="#{row.bindings.DefectsCritical.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedMinor.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedMinor.label}.
ID = "c39" >
< af:outputText value = "#{rank." DefectQtyAllowedMinor}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedMinor.tooltip}.
ID = "ot39" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedMajor.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedMajor.label}.
ID = "c40" >
< af:outputText value = "#{rank." DefectQtyAllowedMajor}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedMajor.tooltip}.
ID = "ot41" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedCritical.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedCritical.label}.
ID = 'c41' >
< af:outputText value = "#{rank." DefectQtyAllowedCritical}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyAllowedCritical.tooltip}.
ID = "ot37" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyExpect.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyExpect.label}.
ID = "c43" >
< af:outputText value = "#{rank." TotalQtyExpect}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyExpect.tooltip}.
ID = "ot38" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyReceived.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyReceived.label}.
ID = "c56" >
< af:outputText value = "#{rank." TotalQtyReceived}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyReceived.tooltip}.
ID = "ot40" / >
< / af:column >
< af:column headerText = "#{bindings." DtlQcInspectDtlVO1.hints.Action.label}"id ="c102 ".
Width = "200" >
< af:panelGroupLayout id = "pgl6" layout = "horizontal" >
< af:selectOneChoice value = "#{row.bindings.Action.inputValue} '"
label = "#{row." Bindings.action.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.Action.mandatory}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.Action.tooltip}.
ID = "soc7" inlineStyle = "width: 120px" >
< f: selectItems value = "#{row.bindings.Action.items}" id = "si8" / > "
< / af:selectOneChoice >
< af:spacer width = "10" height = "10" id = "s2" / >
< af:commandButton text = "OK" id = "cb2" partialSubmit = "true".
action="#{backingBeanScope.backing_QcDetailPage.doEvent}"/ >
< / af:panelGroupLayout >
< / af:column >
< af:column sortProperty = "#{bindings.DtlQcInspectDtlVO1.hints.Comments.name} '"
sortable = "true".
headerText = "#{bindings.DtlQcInspectDtlVO1.hints.Comments.label}" id = 'c52' > "
< af:outputText value = "#{row.Comments} '"
shortDesc = "#{bindings.DtlQcInspectDtlVO1.hints.Comments.tooltip} '"
ID = "ot42" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.Remarks.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.Remarks.label}"id = 'c53' >
< af:outputText value = "#{rank." Notes}»
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.Remarks.tooltip}.
ID = "ot44" / >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.QcResult.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.QcResult.label}"id ="c54">
< af:outputText value = "#{rank." QcResult}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.QcResult.tooltip}.
ID = "ot43" / >
< / af:column >
< af:column headerText = "#{bindings." DtlQcInspectDtlVO1.hints.FacilityId.label}"id ="c57.
sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.FacilityId.name}.
sortable = "false" >
< af:outputText value = "#{rank." FacilityId}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.FacilityId.tooltip}.
ID = "ot35" / >
< / af:column >
< af:column id = "c58" width = "115" >
< af:commandButton text = "approve all items" id = "cb3".
action = "#{backingBeanScope.backing_QcDetailPage.approveItems} '"
Disabled = ' #{rank. " QcResult! {= 'A'} ">"
< af:setPropertyListener from = "#{rank." Type FacilityId}' = 'action '.
to = "#{pageFlowScope.pFacility}" / >
< af:setPropertyListener from = "#{rank." ItemId}' type = 'action '.
to = "#{pageFlowScope.pItem}" / >
< af:setPropertyListener from = "#{rank." Type QcResult}' = 'action '.
to = "#{pageFlowScope.pStatus}" / >
< / af:commandButton >
< / af:column >
< af:column id = "c59" >
< text af:commandButton = "refuse all" id = "cb13.
Disabled = ' #{rank. " QcResult! = « R »} »
action = "#{backingBeanScope.backing_QcDetailPage.rejectAll}" >
< af:setPropertyListener from = "#{rank." FacilityId}"to =" #{pageFlowScope.pFacility} ' "
type = 'action' / >
< af:setPropertyListener from = "#{rank." ItemId}"to =" #{pageFlowScope.pItem} ' "
type = 'action' / >
< af:setPropertyListener from = "#{rank." QcResult}"to =" #{pageFlowScope.pResult} ' "
type = 'action' / >
< / af:commandButton >
< / af:column >
< af:column id = "c60" width = "70" >
< af:commandButton text = 'show the flow' id = "cb14.
action = "#{backingBeanScope.backing_QcDetailPage.viewMaxQty} '"
Disabled = ' #{rank. " QcResult! = 'R'} ">"
< af:setPropertyListener from = "#{rank." FacilityId}.
to = "#{pageFlowScope.pFacilityId}" type = "action" / > "
< af:setPropertyListener from = "#{rank." ItemId}"to =" #{pageFlowScope.pItemId} ' "
type = 'action' / >
< af:setPropertyListener from = "#{rank." QcResult}"to =" #{pageFlowScope.pResult} ' "
type = 'action' / >
< / af:commandButton >
< / af:column >
< af:column id = "c61" >
< af:commandButton text = "More Qty" id = "cb15.
action = "#{backingBeanScope.backing_QcDetailPage.popQty} '"
Disabled = ' #{rank. " QcResult! = 'R'} ">"
< af:setPropertyListener from = "#{rank." FacilityId}.
to = "#{pageFlowScope.pFacilityId}" type = "action" / > "
< af:setPropertyListener from = "#{rank." ItemId}"to =" #{pageFlowScope.pItemId} ' "
type = 'action' / >
< af:setPropertyListener from = "#{rank." QcResult}"to =" #{pageFlowScope.pResult} ' "
type = 'action' / >
< / af:commandButton >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyInspect.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyInspect.label}.
ID = "c44" visible = "false" >
< af:inputText value = "#{row.bindings.TotalQtyInspect.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyInspect.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyInspect.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyInspect.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyInspect.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.TotalQtyInspect.tooltip}.
ID = "tirer16" >
< f: validator binding="#{row.bindings.TotalQtyInspect.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectDtlId.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectDtlId.label}.
ID = "c29" visible = "false" >
< af:inputText value = "#{row.bindings.QcInspectDtlId.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectDtlId.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectDtlId.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectDtlId.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectDtlId.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectDtlId.tooltip}.
ID = "it1" >
< f: validator binding="#{row.bindings.QcInspectDtlId.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectId.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectId.label}"id ="c30 ".
Visible = "false" >
< af:inputText value = "#{row.bindings.QcInspectId.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectId.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectId.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectId.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectId.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.QcInspectId.tooltip}.
ID = "it2" >
< f: validator binding="#{row.bindings.QcInspectId.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonId.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonId.label}"id ="c31 ".
Visible = "false" >
< af:inputText value = "#{row.bindings.ReasonId.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonId.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonId.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonId.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonId.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.ReasonId.tooltip}.
ID = "it3" >
< f: validator binding="#{row.bindings.ReasonId.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.Diff3.name}.
sortable = "true" headerText = "#{bindings." DtlQcInspectDtlVO1.hints.Diff3.label}.
ID = 'c36"visible ="false">
< af:inputText value = "#{row.bindings.Diff3.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.Diff3.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.Diff3.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.Diff3.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.Diff3.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.Diff3.tooltip}.
ID = 'it8' >
< f: validator binding="#{row.bindings.Diff3.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.Diff4.name}.
sortable = "true" headerText = "#{bindings." DtlQcInspectDtlVO1.hints.Diff4.label}.
ID = "c37" visible = "false" >
< af:inputText value = "#{row.bindings.Diff4.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.Diff4.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.Diff4.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.Diff4.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.Diff4.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.Diff4.tooltip}.
ID = "9" >
< f: validator binding="#{row.bindings.Diff4.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyInspected.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyInspected.label}.
ID = "c42" visible = "false" >
< af:inputText value = "#{row.bindings.DefectQtyInspected.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyInspected.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyInspected.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyInspected.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyInspected.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.DefectQtyInspected.tooltip}.
ID = "it14" >
< f: validator binding="#{row.bindings.DefectQtyInspected.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.CreateId.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.CreateId.label}"id ="c48.
Visible = "false" >
< af:inputText value = "#{row.bindings.CreateId.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.CreateId.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.CreateId.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.CreateId.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.CreateId.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.CreateId.tooltip}.
ID = "it20" >
< f: validator binding="#{row.bindings.CreateId.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.CreateDatetime.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.CreateDatetime.label}.
ID = "c49" visible = "false" >
< af:inputDate value = "#{row.bindings.CreateDatetime.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.CreateDatetime.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.CreateDatetime.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.CreateDatetime.displayWidth}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.CreateDatetime.tooltip}.
ID = "id1" >
< f: validator binding="#{row.bindings.CreateDatetime.validator}"/ >
< af:convertDateTime pattern = "#{bindings." DtlQcInspectDtlVO1.hints.CreateDatetime.format}"/ >
< / af:inputDate >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateId.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateId.label}"id ="c50 ".
Visible = "false" >
< af:inputText value = "#{row.bindings.LastUpdateId.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateId.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateId.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateId.displayWidth}.
maximumLength = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateId.precision}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateId.tooltip}.
ID = "it21" >
< f: validator binding="#{row.bindings.LastUpdateId.validator}"/ >
< / af:inputText >
< / af:column >
< af:column sortProperty = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateDatetime.name}.
sortable = "true".
headerText = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateDatetime.label}.
ID = "c51" visible = "false" >
< af:inputDate value = "#{row.bindings.LastUpdateDatetime.inputValue} '"
label = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateDatetime.label}.
required = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateDatetime.mandatory}.
columns = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateDatetime.displayWidth}.
shortDesc = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateDatetime.tooltip}.
ID = "id2" >
< f: validator binding="#{row.bindings.LastUpdateDatetime.validator}"/ >
< af:convertDateTime pattern = "#{bindings." DtlQcInspectDtlVO1.hints.LastUpdateDatetime.format}"/ >
< / af:inputDate >
< / af:column >
< / af:table >
No difference, if you set ChangeEventPolicy = none on iterator in pageDef?
(this error is often associated with modifiable af:table with a composite primary key and lov on a column)
Dario
-
formatting oracle.jbo.domain.date
Hello
I use JDev 11.1.2.4.
I'm trying to update VO with the current date and time by using the code below.
DateFormat df = new SimpleDateFormat ("YYYY/MM/dd HH: mm :"); ")
java.util.Date currentDate = new java.util.Date ();
row.setAttribute ("Date sent", df.format (currentDate));
However, I run error
Houston-27023: Impossible to validate all the lines in a transaction.
any ideas?
Thank you
Hello
When you define the attribute that you do not need to set the format of datetime.
If you want to set the attribute to current date time use this
If the attribute is of type Timestamp, you can set date current time like that
row.setAttribute("ShippedDate",new oracle.jbo.domain.Date(new java.sql.Timestamp(System.currentTimeMillis())));
If the data type of the attribute is oracle.jbo.domain.Date you can set the date current time like that
row.setAttribute("ShippedDate",new oracle.jbo.domain.Date(oracle.jbo.domain.Date.getCurrentDate()));
and to display that date in the page with the format DD/MM/YYYY HH: mm: follow these steps:
1 - Open the viewobject and select Date sending attribute.
2 - starting from the indications of the UI, tab set Type-> Simple Date Format
3. as text the value of-> MM/DD/YYYY HH: mm:
-
oracle.jbo.domain.RowID cannot be cast to java.lang.String
JDeveloper 11.1.1.6
This error is broadcast in weblogic when I try to create a new detail line in a table
< Utils > < buildFacesMessage > ADF: addition of the following JSF error: oracle.jbo.domain.RowID cannot be cast to java.lang.String
java.lang.ClassCastException: oracle.jbo.domain.RowID cannot be cast to java.lang.String
at model.eoCotizacionDetalleImpl.getTpcio(eoCotizacionDetalleImpl.java:866)
to model.eoCotizacionDetalleImpl$ AttributesEnum$ 27.get(eoCotizacionDetalleImpl.java:660)
at model.eoCotizacionDetalleImpl.getAttrInvokeAccessor(eoCotizacionDetalleImpl.java:1254)
at oracle.jbo.server.EntityImpl.getAttribute(EntityImpl.java:1715)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1815)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1923)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:866)
at oracle.jbo.server.ViewRowImpl.getKey(ViewRowImpl.java:677)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:291)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:299)
at oracle.jbo.uicli.binding.JUIteratorBinding.cacheCreatedRow(JUIteratorBinding.java:432)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1420)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
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 (unknown Source)
at com.sun.el.MethodExpressionImpl.invoke (unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
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:889)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
to 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:300)
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:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
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)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
< LifecycleImpl > < _handleException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 6 RENDER_RESPONSE
oracle.jbo.AttrValException: Houston-27019: the get method for attribute "RowID" in eoCotizacionDetalle is not resolved.
at oracle.jbo.server.EntityImpl.getAttribute(EntityImpl.java:1734)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1815)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1923)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:866)
at oracle.jbo.server.ViewRowImpl.getKey(ViewRowImpl.java:677)
at oracle.adf.model.binding.DCIteratorBinding.buildFormToken(DCIteratorBinding.java:4023)
at oracle.adf.model.binding.DCBindingContainerState.buildStringBuffer(DCBindingContainerState.java:92)
at oracle.adf.model.binding.DCBindingContainerState.toString(DCBindingContainerState.java:694)
at oracle.adf.model.binding.DCBindingContainer.getStateToken(DCBindingContainer.java:5031)
at oracle.adfinternal.controller.application.model.SaveStateTokenListener.afterPhase(SaveStateTokenListener.java:62)
to oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$ PagePhaseListenerWrapper.afterPhase (ADFLifecycleImpl.java:531)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:120)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:168)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ PhaseInvokerImpl.dispatchAfterPagePhaseEvent (ADFPhaseListener.java:131)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:74)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
to 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:300)
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:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
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)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '3' for queue: MSGID 'weblogic.kernel.Default (self-adjusting)' = BEA - 101020 MACHINE = TXID CC-INF-02 = the CONTEXTID = d5376a00c2542e48:7e8a3ab0:139ee0ca119:-8000 - 00000000000004be TIMESTAMP = 1348323991041
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>OK, where is the issue?
the error message is quite clear that you cannot get an oracle.jbo.domain.RowID to a string type, which is exactly what the code to model.eoCotizacionDetalleImpl.getTpcio(eoCotizacionDetalleImpl.java:866).
Check what you're doing here...Timo
-
EL expression that is evaluated to oracle.jbo.domain.Number
Hello world
11.1.1.5 JDev
I have a problem passing a value of oracle.jbo.domain.Number in a workflow, when you try to type in a literal, for testing purposes.
It's what looks like my pageDef file:
When I type #{'7333177'} for the idSosBrwBdgPer parameter I get<?xml version="1.0" encoding="UTF-8" ?> <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.1.60.13" id="BdgVerTestPageDef" Package="fo.att.alm.pageDefs"> <parameters/> <executables> <variableIterator id="variables"/> <page path="shared.template.almTemplatePageDef" id="pageTemplateBinding" Refresh="ifNeeded"/> <taskFlow id="sosbrwbdgedit1" taskFlowId="/WEB-INF/sos/bounded/sos-brw-bdg-edit.xml#sos-brw-bdg-edit" activation="deferred" xmlns="http://xmlns.oracle.com/adf/controller/binding"> <parameters> <parameter id="idSosBrwBdgVer" xmlns="http://xmlns.oracle.com/adfm/uimodel" value="#{null}"/> <parameter id="idSosBrwBdgPer" xmlns="http://xmlns.oracle.com/adfm/uimodel" value="#{7333177}"/> </parameters> </taskFlow> </executables> <bindings/> </pageDefinition>
Cannot convert the type class java.lang.String 7333177 to class oracle.jbo.domain.Number
When I type #{7333177} for the idSosBrwBdgPer parameter I get
Cannot convert 7 333 177-type class to the oracle.jbo.domain.Number class java.lang.Long
Anyone know the good EL for that to work?
Best regards
JohnHello
create a bean managed which exposes a method, back Houston area number and reference to El EL doesn't have an option to create instances of the object
Frank
-
oracle.jbo.domain.DBSequence problem
Hello
I have paintings of which one is the master and the other is the secondary table. In these tables, I replaced my primary key in both tables with a type of: oracle.jbo.domain.DBSequence and the column type NUMBER and created a sequence in the table.
When I run this application in my request module I get the following error message: Houston-26041 and a java.sql.SQLIntegrityConstraintViolationException ORA-01400 cannot insert null into (and then the name of the primary key)
Does anyone know a solution to this problem... I prefer to use oracle.jbo.domain.DBSequence because I use it in other pages master detail as well, in those other pages, I get the same error...
I use the version of JDeveloper 11 g (11.1.1.3.0) 1
Thanks in advanceyou have a before insert trigger in your database?
Maybe this will help:
http://mjabr.WordPress.com/2011/03/11/make-sequence-number-as-default-value/ -
Hello
I have the following problem with my ADF application developed in JDeveloper 12.1.3:
In my model, there are two entities MeterEO and MeterTypeEO with the following attributes:
MeterEO
TenantId BigDecimal TENANT_ID NUMBER MeterCode String METER_CODE VARCHAR2 (48) Type Integer TYPE NUMBER MeterTypeEO
ID DBSequence ID NUMBER Name of the vendor String NAME OF THE VENDOR VARCHAR2 (32) Type String TYPE VARCHAR2 (16) Type of MeterEO reference Id in MeterTypeEO.
Appropriate VO of the meter uses a MeterTypeVO LOV to create a list containing the provider and Type as well as the user's selection.
In the ModelTester, everything works well when I try to change a counter, select a new type and validate my changes to the database.
A JSFF, it looks quite different. Selection is made by SelectOneChoice with the LOV list containing the provider and Type. Of the LOV the appropriate values are selected for the (integer) to the meter, then the user gets a readable text instead a few cryptic. But when I change the value by selecting a new choice I always got the error ' Can' oracle.jbo.domain.DBSequence to class java.lang.Integer.
Why it works without problems in the Modeltester but not on the page?
Please see the attached screenshots to make it clearer what I mean.
Any hint is appreciated,
Björn
I solved my problem now in view objects. Maybe someone who has the same problem and is interested in the solution:
In MeterTypeVO - which is the source for the LOV - I added a new transitional field called IntId of type Integer that refers to the field Id of type DbSequence by Expression. DbSequence is automatically converted at length which can be also automatically converted in full.
At the counter, I changed the key of the LOV to IntId instead of code.
It works like charm.
-
convert oracle.jbo.domain.number in full
Hello
I use jdeveloper 11.1.2.4.0
Can anyone help on how to convert the oracle.jbo.domain.number in full?
Kind regards
Steve
New Integer (some_number.intValue ());
-
oracle.jbo.domain.Number programmatically
Hi all
I want to increment (5) for tValu after assigning the value of the method...
in... impl. Java
oracle.jbo.domain.Number tValu = new oracle.jbo.domain.Number (0);
tValu = callingMethod.test ();
tValu = / / + 5
Thanks in advance.
Hello
VR;
tValu.add (.)
-
Hello!
How can I throw it a data type string or object in numbers (oracle.jbo.domain.Number)?
Thank you.
Please see below the code.
Number of numValue = new (strVal);
BR, 906099
-
Error (17.14): samhi.oracle.apps.po.sample.server.SampleEOImpl of the class should be declared abstract. It defines no method setLastUpdateLogin (oracle.jbo.domain.Number) of the oracle.apps.fnd.framework.server.OAEntityImpl class can help on this please
Check once WHO columns are present or not table
Last updated
Last updated by
Last updated connection
Date of creation
Created by
These fields are required for the creation of EO.
SANGU-
-
Hello world
During playback of Oracle ADF Real World Developer's Guide, I noticed the dates match occurring in JDeveloper is different from what is the list in the book. JDeveloper is failing to oracle.jbo.domain.Date, but according to the book:
DATE java.sql.Date DATE type is mapped to java.sql.Date if the column in the table is a no time didn't need information zone. DATE java.sql.Timestamp DATE type is mapped to java.sql.Timestamp if the column in the table has a component "time" and that the client needs to zone information. TIMESTAMP java.sql.Timestamp The TIMESTAMP type is mapped to java.sql.Timestamp if nanosecond precision is used in the database. In general, is it better to use java.sql.Date and java.sql.Timestamp instead of oracle.jbo.domain.Date? Using java.sql.Date and java.sql.Timestamp could save me some headaches conversion date. And, is there a place in JDeveloper to display these maps? I looked around and didn't see anything.
Thank you.
James
User, what version of jdev we are talking about?
In GR 11, 1 material versions db types date and timestamp are mapped to types of domain data that represents a wrapper for the native data types. The reason was that the framework can work with the domain types regardless of the underlying data type.
Since Oracle 11 GR 2 maps the types DB to java types (default selection, you can change it when you create a model project, you can set the Data Type Mapping). Once the pilot has business components define you cannot change this setting it would break existing components such as eo or vo.
So if you are working wit 11 GR 1 subject, you must use the domain types, if you work with GR 11, 2 or 12 c, you can use the domain types, but it is recommended to use the java type mapping.
Timo
-
Hello world
Work with dates has been harder than I thought! Please take a look at the code; everything compiles, but it fails because I'm not cast properly. Any help would be appreciated.
Imports are:
import java.sql.SQLException;
to import java.text.ParseException;
import impossible;
import java.util.Calendar;
Import oracle.jbo.domain.Date;
Import oracle.jbo.domain.Timestamp;
Here is the method:
public static Date (String sDate, int day, nextDay
SimpleDateFormat String) {}
Date result = null;
java.util.Date date;
If (sDate! = null) {}
try {}
System.out.println ("Try...");
Calendar calendar = Calendar.GetInstance ();
SimpleDateFormat dateFormat =
new SimpleDateFormat (simpleDateFormat);
calendar.setTime (dateFormat.parse (sDate));
Calendar.Set (Calendar.DAY_OF_WEEK, date); day = Calendar.SUNDAY
Calendar.Set (Calendar.HOUR_OF_DAY, 0);
Calendar.Set (Calendar.MINUTE, 0);
Calendar.Set (Calendar.SECOND, 0);
Calendar.Add (Calendar.DATE, 7);
dateFormat.format (calendar.getTime ());
try {}
System.out.println ("try (inside)... ») ;
"System.out.println (" new Timestamp (calendar.getTime () .getTime ()) "):" +.
new Timestamp (calendar.getTime () .getTime ()));
result = new Date (Timestamp (calendar.getTime () .getTime ())) new; Code does not work here.
return the result;
} catch (SQLException e) {}
System.out.println ("catch (SQLException e)... ») ;
e.printStackTrace ();
}
Returns a null value.
} catch (ParseException exception) e {}
System.out.println ("catch exception e ParseException... ») ;
e.printStackTrace ();
}
Returns a null value.
}
Returns a null value.
}
Here is the result:
try...
Try (inside)...
new Timestamp (calendar.getTime () .getTime ())): 2013-12-29 00:00:00.0
catch (SQLException e)...
java.sql.SQLException: failed initialization
to oracle.sql.DATE. < init > (DATE.java:237)
to oracle.jbo.domain.Date. < init > (Date.java:378)
James
try to convert timestamp to jbo.date as
java.sql.Timestamp datetime =
new
java.sql.Timestamp(System.currentTimeMillis());
oracle.jbo.domain.Date daTime =
new
oracle.jbo.domain.Date(datetime);
-
Hello world
I get the following errors when you try to initialize a record:
- setCreatedBy (int) cannot be called setCreatedBy (oracle.jbo.domain.Number) in EOImpl
- setCreationDate (Calendar) cannot call setCreationDate (oracle.jbo.domain.Date) in EOImpl
setCreatedBy (value) must be a FND_USER. USER_ID. He wanders ins the following statement: setCreatedBy(-1);
setCreatedDate (value) must be today's date.
setWeekDate (value) must be the Sunday after today's date.
protected void doDML (int operation, TransactionEvent e) {}
Begin
Calendar date = Calendar.GetInstance ();
If (operation == DML_INSERT) {}
setLineId ((new_SequenceImpl_("tke_tp_cus_cd_14_lines_s",___getDBTransaction()).getSequenceNumber (()));
setBillable ("T");
setCreatedBy(-1);
setCreationDate (date);
setWeekDate (date);
}
End
super.doDML (operation, e);
}
Please be patient... I'm a noob! Thanks in advance!
James
James,
What version of Jdev do you use?
Can you post the code that you use after all the changes?
For the setLineId try new oracle.domain.Number(-1)
Timo
Maybe you are looking for
-
Remote control does not work, and the load does not appear on Apple TV
Hello I just returned from vacation and my remote seems has stopped working. Naturally, my first assumption was that the charge was simply exhausted. Apparently that was the case. He seems to have just died. I did pay for more than two hours and
-
ASIX MCS 7832 pilot to 200 for USB 2.0 to Ethernet?
Digitus made a USB to Ethernet Dongle (DN-10050) using the 6 MCS 7832 chip. This dongle would be directly usable in 200? This is true, the driver 6 MCS 7832 must be pre-installed by Toshiba or be already present in ICS. If not, is there another drive
-
Federated back cached data are saved to disk on the local cluster?
With the new feature Federated consistent caching, 12.2.x, is the internal cache containing rear replication data saved to the local drive?What happens if the local cluster goes down, when there is great in waiting for data of backlog waiting to be r
-
Help! New Mac, try to activate my membership Pro Adobe
I bought Adobe Pro a few months ago on another computer. It doesn't work anymore, I could download Adobe Pro for my new Mac, but now when I try to modify a PDF file, it tell me to on or purchase (your trial period has expired).I click on active and e
-
Developer SQL 4.0.2.I have a bunch of developers complain that developer SQL disconnects them from the database.And it's too hard for them to right click and click on reconnect (sarcasm).DBs theses are in the cloud. If not happens if the DB is in bar