Cannot convert oracle.jbo.domain.DBSequence to class java.lang.Integer

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

TenantIdBigDecimalTENANT_IDNUMBER
MeterCodeStringMETER_CODEVARCHAR2 (48)
TypeIntegerTYPENUMBER

MeterTypeEO

IDDBSequenceIDNUMBER
Name of the vendorStringNAME OF THE VENDORVARCHAR2 (32)
TypeStringTYPEVARCHAR2 (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?

Screenshot 2015-08-31 12.48.55.pngScreenshot 2015-08-31 12.49.09.png

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.

Tags: Java

Similar Questions

  • Cannot convert oracle.jbo.domain.Number to class the class java.lang.Long in EL

    I have this error:

    ViewId treatment < UIXRegion > < _warn > error: / frameworks-designer-task-flow/hand URI: FrameworksDesignerMain.jsff real-URI: EnterpriseProcessExecutionSchedules.jsff.

    java.lang.IllegalArgumentException: cannot convert 2 type class to class java.lang.Long oracle.jbo.domain.Number

    at com.sun.el.lang.ELSupport.coerceToNumber (unknown Source)

    at com.sun.el.lang.ELSupport.equals (unknown Source)

    at com.sun.el.parser.AstNotEqual.getValue (unknown Source)

    at com.sun.el.ValueExpressionImpl.getValue (unknown Source)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)

    to oracle.adfinternal.view.faces.renderkit.rich. LabeledInputRenderer.isDisabled (LabeledInputRenderer.java:285)

    My question is how do I find in my page jsff?  I see that it is on a property of disabled but I don't know which and there are many on this page.  I think it's one that looks like this: disabled = ' #{bindings. " "{PGSchedType.inputValue No 5}.  If my different EL expression?

    Thank you.

    Rudy

    JDev 11.1.2.4.0

    Hi Rudy,.

    I guess that you have spotted it right. Instead of 5 in your disabled property, use '5'


    I mean, just surround it with quotes like below


    disabled="#{bindings.PGSchedType.inputValue ne '5'}"
    

    Thank you

    SAIF

  • 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 advance

    you 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/

  • 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 ());

  • convert oracle.jbo.domain.Raw to a string

    Hi haw can I convert ADF type the string oracle.jbo.domain.Raw

    And the official way would be

     oracle.jbo.domain.Raw raw = ...
    byte [] byteVal = raw.getValue();
    String val = new String(byteVal);
    

    Timo

  • convert oracle.jbo.domain.number of positive value to a negative value in EL Expression

    Hi all

    jdev: 11.1.1.4

    My use case is to try to convert positive user input negative number, once the user presses the tab key

    I use the Employee in the HR schema table and when any kind of user + ve value in the salary column, then be converted into value - EV.

    < af:inputText value = "#{bindings." Salary.inputValue.value > 0? 0 - links. Salary.inputValue.value: links. Salary.inputValue}.

    label = "#{bindings." Salary.hints.label}.

    autoSubmit = "true" >

    < af:convertNumber type = "currency".

    currencySymbol = "$" integerOnly = "true".

    minFractionDigits = '0' maxFractionDigits = "0".

    groupingUsed = 'false' local = "en-US" / >

    < / af:inputText >

    It's work the converted number in ve - but it makes the readonly entry text box. If the user was not able to change the value.

    Kind regards

    Krishan

    I don't think it can be done in EL only. the problem is that you change the location of storage. I suggest that you use a value valueChangeListener and climatiqueLes in there as

    {} public void numberChangeListener (ValueChangeEvent valueChangeEvent)

    Integer i = valueChangeEvent.getNewValue ((Integer));

    If (i > 0) {}

    get the link container

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    updates to process

    FacesContext will involve = FacesContext.getCurrentInstance ();

    valueChangeEvent.getComponent () .processUpdates (contxt);

    get a definitions page ADF ADF attributevalue

    AttributeBinding attr = (AttributeBinding) bindings.getControlBinding ("Salary").

    attr.setInputValue(i*-1);

    PPR refresh a component jsf

    AdfFacesContext.getCurrentInstance () .addPartialTarget (valueChangeEvent.getComponent ());

    }

    Timo

  • Trying to force a value of the type 'oracle.jbo.domain.Number' type 'java.

    Hi, I am very new in the world of JDeveloper and I get the following error:
    Trying to force a value of the type 'oracle.jbo.domain.Number' to type 'java.lang.Long.

    I'm trying to multiply two input values, say, 3.5 and 1000.
    It corresponds to a field in the commission which can be modified by the end user (this is why I need to store the value). The arithmetic operation is just a "recommendation" of the value that the end user will be finally type.

    In the jspx (which is using PPR) the button submit, I have the following code in the determination of the value of the field:
    #{bindings.CommProv.inputValue * links.} Monto.inputValue}

    If someone could give any help on this, I would really appreciate it.

    Kind regards
    Max.

    Max,

    Try this:
    #{bindings.CommProv.inputValue.bigDecimalValue * links.} Monto.inputValue.bigDecimalValue}

    This will convert your oracle.jbo.domain.Number values to a form that can be multiplied.

    Hope this helps
    Blaise

  • Conversion oracle.jbo.domain.Number-&gt; 'impossible', in liaison

    11.1.1.3 JDEV

    Try to call a function from a jsf page. It throws an error like
    * "Failed to create an object of type: java.lang.Number type: oracle.jbo.domain.Number with the value" * "

    Please see the part of my affair.
    < methodAction id = "checkDeviationFromBasecase".
    InstanceName = "ProjectMonitoringAppModuleDataControl.dataProvider"
    DataControl = "ProjectMonitoringAppModuleDataControl."
    RequiresUpdateModel = 'true' Action = 'invokeMethod '.
    MethodName = "checkDeviationFromBasecase."
    IsViewObjectMethod = "false".
    ReturnName = "ProjectMonitoringAppModuleDataControl.methodResults.checkDeviationFromBasecase_ProjectMonitoringAppModuleDataControl_dataProvider_checkDeviationFromBasecase_result" > "
    < NamedData NDName = "pPid".
    * NDValue = "#{bindings." Pid.inputValue} "//this is oracle.jbo.domain.Number."
    NDType="java.lang.Number"/ >
    < / methodAction >

    Is it possible to do by linking only without creating variables in addition to a bean.

    Help, please.

    Thank you.

    Why don't you have same oracle.jbo.domain.Number for NDType as well?

    Jean Lou

  • oracle.adfinternal.view.faces.util.ReportableImpl: oracle.jbo.domain.DataCreationException: Houston-25009

    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

  • "" Type = "java.math.BigDecimal type =" Oracle.jbo.domain.Number "VS".

    Hi all! I need some explanation about types: Type = "oracle.jbo.domain.Number"VS Type = "java.math.BigDecimal"

    I have variable enableEditing:
     this.enableEditing = this.getSelectedTaks().getAttribute("TaksacijasPk").equals(taksId); 
    If attribute EO TaksacijasPk is with the type "oracle.jbo.domain.Number" then all work with above the line, but if this attribute is of type "Java.Math.BigDecimal" then code above line do not work. To fix it, I need to add toString() operation in the line of code:
     this.enableEditing = this.getSelectedTaks().getAttribute("TaksacijasPk").toString().equals(taksId); 
    Maybe the question is, why in one case, I have to add toString() operation and in others not?

    Best regards, Debuger!

    Javadoc for the BigDecimal said

    Unlike compareTo, this method takes two objects BigDecimal equal only if they are equal in value and scale (so 2.0 is not equal to 2.00 compared to this method).

    You try to compare a BigDecimal/number for a taskId (which we don't have no idea what class it is).

    Suppose that taskId is a string.

    . Equals() on a number will simply convert the string to a number and check if the values are equal.

    . Equals() on a BigDecimal allows you to convert the string to a BigDecimal by applying the rules described in the BigDecimal (String) constructor, to-wit:

    The scale of the BigDecimal returned will be the number of digits in the fraction, or zero if the string contains no comma, subject to adjustment for any Exhibitor; If the string contains an exponent, the exponent is subtracted from the scale. The value of the scale that results must be between Integer.MIN_VALUE and Integer.MAX_VALUE, inclusively.

    My conjecture only (since you don't seem to be ready to use the debugger and check), is that you have a scale on your BigDecimal which does not match the scale on the BigDecimal which is built from the identifier.

    If I had to try to understand the difference between the two, I'd read the docs. Maybe even create a few test cases. Maybe to run my code in the debugger to see what that my BigDecimals and numbers looked like

  • In general, is it better to use java.sql.Date and java.sql.Timestamp instead of oracle.jbo.domain.Date?

    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:

    DATEjava.sql.DateDATE type is mapped to java.sql.Date if the column in the table is a no time didn't need information zone.
    DATEjava.sql.TimestampDATE 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.
    TIMESTAMPjava.sql.TimestampThe 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

  • 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
    Eileen

    Hello

    use,

    currentDate = am.getOADBTransaction () .getCurrentUserDate () oracle.jbo.domain.Date;
    Date testdate = (Date) currentDate.dateValue ();

    Thank you
    Gerard

  • JDeveloper 11 g: convert DBSequence number of Oracle.jbo.domain

    Hi all!

    Anyone know how to convert DBSequence to oracle.jbo.domain?
    I used something like this:

    public DBSequence {} seq()
    MyWay DBsequence;
    / * code * /.
    myWay return}

    public void otherMethod() {}

    Number num = seq () .getSequenceNumber ();

    }

    But it does not work.

    Thank you to
  • oracle.jbo.domain.Number cannot be cast to impossible

    Hello

    uses db10g jdev11.1.1.5.0 - adfbc-oracle
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2
    javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:214)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at 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)
         at 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 oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:357)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java: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)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at 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)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         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:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at 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)
    Caused by: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number
         at view.backing.Tuntitled1.soc5_valueChangeListener(Tuntitled1.java:188)
         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)
         ... 56 more
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.servlet.ServletException: oracle.jbo.domain.Number cannot be cast to java.lang.Number
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java: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)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at 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)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         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:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at 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)
    Caused by: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number
         at view.backing.Tuntitled1.soc5_valueChangeListener(Tuntitled1.java:188)
         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)
         
      
      public void soc5_valueChangeListener(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            BindingContainer bindings = getBindings();
            DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("FinYearsView1Iterator");
            Row row = dciter.getCurrentRow();
        
    .. here am did big mistake. please any one correct me.
    
                Number s = (Number)row.getAttribute("Attr1s"); // here am getting some numbers
                Number s1 = 1;
            if(s != s1 ) // here i want check the value is not equal to one.
            { 
                   
    
                              
                FacesMessage fm12 = new FacesMessage(" ho error")    ;
                fm12.setSeverity(FacesMessage.SEVERITY_ERROR);
                FacesContext context12= FacesContext.getCurrentInstance();
                context12.addMessage(null, fm12);
                
                
            }
               
        }

    Hello

    the message is true. Oracle Jbo.domain.Number cannot be cast to the number of Java. Make sure that your cast the object to

    oracle.jbo.domain.Number

    (just to change the import statement at the top of your Java class)

    Frank

  • 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

    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-

Maybe you are looking for

  • Can not find the drivers for USB

    I'm trying to update my USB drivers and although I have loacted the list of available drivers, there don't seem to be any USB ones.

  • HP pavilion f4u55eau #abu

    This pc came with Windows 8 on it but my grandson do not like the operating system and asks me to install windows 7 - can you please advise if this is possible and if I could get all the necessary drivers so that it can be converted to the windows7?

  • Can I use devices USB 2 and USB 3 on a PC from USB 1?

    I am looking to buy external drives described as USB 2 or USB 3. My PC works great, but was built at the time of the USB 1. I have to be aware of all possible problems?

  • Updates to Windows does not work

    Windows Update does not work. I used the troubleshooting of windows update. So-called three problems have been resolved, but has not been set. one not fixed is, windows update error code 0 x 80070057 (2016-o4-19-T-07_25_28A. How can I fix it? Home pr

  • Associated account manager SmartNet contract to know

    Hello world I'm new to SmartNet contracts, I came to know that each SmartNet contract is associated with an account manager. How can I find the details of the account manager. Who should I contact. Kind regards ABY Laurance claudon