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:
Tags: Java
Similar Questions
-
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);
-
Could not create the domain object type oracle.jbo.domain.Date
Hello
I'm getting the following exception in the user interface when I click on submit button (/ commit or any other button) for date fields. I created the default objects entity and notices for the database table. I'm poplating the data after executing the "Execute" operation on the iterator for the view.
Cannot be created with the value ' 22/09/2009' field object type oracle.jbo.domain.Date. +
Even if I had not made any changes to the date also fields, it's give the exception message in the user interface and do not return the form.
Could you please help me to solve the issue.
Thank you and best regards,
S R Prasad
Published by: oumar s Prasad on November 18, 2009 15:01Prasad,
What is your version of JDev? And what technology do you use to model? BC4J? Can you try to change the format of the attribute in the object view? Say with the type of Simple date format and format "mm/dd/yyyy".
Arun-
-
How to page to the controller oracle.jbo.domain.date
Hi all
I want to get the date of my grain of table advanced to the controller. I'm date as a java.sql.Date I want to convert it to oracle.jbo.domain.Date. Pointers in it will be useful.
Thanks in advance.
With respect,
Anjani.spend your date ViewObject, you will get it in the format jbo.domain.date
VO. Next(). GetAttribute ("DateAttributeXXXX");
Prasanna-
-
How to truncate oracle.jbo.domain.date
Hello
I have problem to convert oracle.jbo.domain.date. Now, I got the current date of pagecontext, but this is the format yyyy-mm-dd hh. I want only aaaa-mm-jj, so I want to truncate the time of oracle.jbo.domain.date. And I want to got to this Date no chain. I found Date.truncate () there, but I don't know how to use it.
Could someone help to give me an example?
Best regards
EileenHello
use,
currentDate = am.getOADBTransaction () .getCurrentUserDate () oracle.jbo.domain.Date;
Date testdate = (Date) currentDate.dateValue ();Thank you
Gerard -
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
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
-
conversion string in oracle.jbo.domain.Date
Hello
I work in jdev 11.1.1.6
I receive as string date of UCM as string. I need to convert to oracle.jbo.domain.Date.How to achieve
u cn do this
DateFormat trainer;
java.util.Date date;
{if(aDate!=null)}
try {}
Formatter = new SimpleDateFormat("dd/MMM/yyyy");
Date = formatter.parse (date);
java.sql.Date sqlDate = new java.sql.Date (date.getTime ());
oracle.jbo.domain.Date jboDate = new oracle.jbo.domain.Date (sqlDate);
Return jboDate;
}
catch (ParseException exception) e
{
e.printStackTrace ();
}
}
-
Number of days between two objects Oracle.jbo.domain.Date
I have two objects Oracle.job.domain.Date:
Date = StartDate (Date) CurrentRow.getAttribute ("StartDt");
Date = CurrentDate (Date) this.getOADBTransaction () .getCurrentDBDate ();
I want to find the number of days between StartDate and CurrentDate.
I tried the CompareTo () function, but its does not not the desired results.
Can someone let me know how I can find the number of days between StartDate and CurrentDate above?
Concerning
HawkerHawker,
Use the code below
Date StartDate= (Date)CurrentRow.getAttribute("StartDate"); Date CurrentDate = (Date)am.getOADBTransaction().getCurrentDBDate(); java.sql.Date sdate = (java.sql.Date) StartDate.dateValue(); java.sql.Date cdate = (java.sql.Date) CurrentDate.dateValue(); int days = daysBetween(sdate,cdate ); public int daysBetween(java.sql.Date d1, java.sql.Date d2){ return (int)( (d2.getTime() - d1.getTime()) / (1000 * 60 * 60 * 24)); }
Kind regards
GYANPublished by: Gyan on 27 March 2011 19:56
-
Hi all
When I tried to round the value to oracle.jbo.domain.Number, it returns data of type oracle.sql.Number. Please see the following code snippet:
Number unitPrice = new Number (9.95);
Number of numOfRet = new Number (5);
Total = (unitPrice.multiply (numOfRet)) .multiply (1.05) .round (2);
The third line can not compile because the round() method returns a data type of oracle.sql.Number, which generates the compile error. If I put a guy up there, it works. When I checked the javadoc, the method has a number of return type. But it says in the details of the description of the method, it returns a Java int. Can I ask is there something wrong here? You can find the javadoc here: number (Oracle ADF business components API Reference 10.1.2 areas)
Thank you
Sheet
Order to understand, the problem is that the round() method returns a number, but a NUMBER data type.
NUMBER public tour (int decimal_place)
Therefore, cast to the number.
Timo
-
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
-
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
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
-
Hi experts,
uses 11.1.1.5.0 - adfbc jdev
Castin the problem:
pyear - number data type
var oracle.jbo.domain.Number = new oracle.jbo.domain.Number (pyear);
Integer s = (integer) var;
My question is how can I get oracle.jbo.domain.number in java.lang.Integer.Well, you should be aware of that you loos certain precision that a number can be larger then the max int value...
Number n = new Number(1345); Integer iVal = n.intValue(); BigInteger lBigInteger = n.bigIntegerValue();
I would use BigInteger instead...
Timo
Maybe you are looking for
-
The sound died today on my iMac. iTunes opens by itself, and I can't listen to music if I try to play anything. I checked mute and in system preferences, he has not yet shown built-in speakers, just the headphones and it kept flashing like a neon s
-
Re: There is no driver for the Officejet Pro 8500 for Windows 10?
Tried to load the complete package of windows 8. did not work. Tried it on 2 10 Windows - had already installed win10 and the other has been upgraded to win7. I REALLY need to be able to scan. Any suggestions out there? Thank you
-
I know how to go into the settings and change so that the clickpad is disabled when the mouse is in use. I leave the mouse plugged all the time because I don't like the clickpad. However, I have to disable the clickpad whenever I restart the comput
-
Windows 7 drivers - can they expect?
I would like to put Windows 7 on my S10-2 and, as a Microsoft partner, I have access to W7 - but it is not all the drivers posted by Lenovo. When can we expect to see the Windows 7 drivers posted on the Lenovo site and this which are people who as wo
-
Plug-and-Play Webcams do not work.
I have two computers, both running Windows 7 Ultimate 64 - bit, literally installed from the same disk with the same updates, etc. On one of these computers (the one I use the least) my two plug-and-play zero configuration webcams work well and insta