EJB 2.0 mapping to RAW data

Hi,
I am trying to map the RAW data in my database to attribute of Entity bean using CMP2.0.
Home class have the class
Collection findByParent(byte[] parentId) throws EJBException, RemoteException, FinderException;
ejb-jar.xml have
<query>
<query-method>
<method-name>findByParent</method-name>
<method-params>
<method-param>byte[]</method-param>
</method-params>
</query-method>
<ejb-ql>SELECT OBJECT(o) FROM product as o WHERE o.packageDetailId = ?1 </ejb-ql>
</query>
I am getting this error.
invalid query: In EJB com.cobaltgroup.services.productpackage.ejb.Product, for a query defined in the ejb-jar.xml file with a method signature, findByParent(byte[]), we failed to find a corresponding method in the remote home interface, local home interface, or bean class that matches this signature. Note that class parameters such as java.lang.String must be fully qualified, thus 'String' would not match 'java.lang.String'.
This bean was working in CMP EJB1.1 specification . but gives error in 2.0.
I will appreciate reply to this query.
Best Regards.

<method-params>
<method-param>[B</method-param>
</method-params>
use this. this will work

Similar Messages

  • Nokia Map vs GPS Data

    New owner of the 6220 classic. Can anyone tell me something about the relation between the Nokia Maps applicaton and the app called GPS Data?
    Sven

    Nokia Maps is a navigation software which allows you to plot you position on a map and also allows you to navigate to a known destination on the map.
    GPS Data on the other hand gives you raw information such as your location in coordinate form (latitude/longitude), speed etc., and has no navigation function. It will also point you towards your destination but purely in vector form.

  • TCODE for MAP of Raw material

    Dear Gurus,
    What is the transaction code to know the MAP of Raw material for a particular date. Means current I can view in the material master. But say if I want to view the MAP as at back date then what is the TCODE.
    With Regards,
    Amit.

    Hi
    You can use T Code MC.9, where you can give the period wise selection for a combination of maerial and plant. Look at the editing parameters in the change layout options and refine your search.
    Thanks & Regards
    Sanil K Bhandari

  • URGENT: Illegal Argument Exception for  RAW data type in Web Dynpro

    I am getting this error in the following scenario.
    I want to save the text fields from an interactive form to SAP through RFC enabled function module. The type in the model and controller is byte[]. I have converted the string attribute from view to save to the model. But the model dictionary in Web Dynpro project (model) has this type as Binary (meta data model through EFC). The type in SAP is RAW. I am going nuts since a week to solve this.
    IS this a bug? I am using NW04s - SP12. and NWDS 7.0.9
    Exception Details:
    The initial exception that caused the request to fail, was:
    java.lang.IllegalArgumentException
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • JCO reading abap RAW data type (truncating?)

    Does anyone have experience reading an Abap RAW data type using JCO?  I am trying to read a GUID (via RFC_READ_TABLE) that is defined as RAW length 16.  When I view this field in SAP GUI, I see 32 characters.  However, when I read this field using JCO, I only see the first 16 characters. 
    The mapping documents state Abap RAW maps to a Java byte array.  I have tried that - no luck.  I have used the constructor of a string that takes a byte array - no luck.  I have made sure my character set is UTF-8 in case Unicode was a possibility.  I have turned on tracing to level 8 and only see 16 characters in the output.  I need the other 16 characters as all 32 characters are used as the primary key into other tables.
    I also posted this on the ABAP Java Development space.  I know the rule about not cross-posting, but I wasn't sure which was a better place to post something like this.  This my first post on here, so my apologies in advance.
    Larry

    Thanks for responding.  Unfortunately, the export parameter list is null. There are no export parameters.  However, there are tables.  I have tried:
    byte[] byteArray = funct.getTableParameterList().getTable("DATA").getByteArray(0);
    My SE16 query only returns one field: GUID.
    I only get 16 bytes back even though GUID is defined as raw length 32.
    Is there something I else I should try?  Do you see an error in my code?
    Thanks again,
    Larry

  • Handling RAW data types (from SAP) in Adobe forms - Illegal Arg Exception

    Hi,
          I have a scenario where I have to get data of type RAW in SAP to Adobe Forms using web dynpro java. What is the corresponding type in Web Dynpro / Adobe Forms.
    I am using Adaptive RFC and when I get the model from SAP function module, the RAW type is created as Binary type in the data dictionary of Web Dynpro.
    When I map the model context to controller context, the type is taken as byte[].
    I tried to set the attribute for this field and I got the Illegal Argument Exception error.
    I am using NWDS 7.0.9 and NW04s SP12. Pl help. I am working on this since 10 days but could get no solution.
    The initial exception that caused the request to fail, was:
    <b>java.lang.IllegalArgumentException</b>
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • How to add bad pixels to a DNG made from a CFA sensor raw data ?

    Hello all, I'm trying to build a proper DNG file from the raw CFA image acquired directly form an industrial camera.
    As usually there are a number of bad pixels around and I would like to mark them in the DNG so they can be correctly interpolated when the image is processed.
    In the latest DNG SDK (1.4) I've only found this rather thin references:
    "Defective Pixels
    There are two ways to deal with defective pixels in DNG.
    The first is to map out (interpolate over) the defective pixels before storing the raw data in DNG.
    The second is to include a bad pixel fixing opcode in the OpcodeList1 tag."
    OK, as each program/customer/etc. seem to have its own ( best ) algorithm to interpolate the bad pixels then OpcodeList1 it is.
    But then I've got this: FixBadPixelsConstant and I'm not clear about its usage, especially BayerPhase, is the same BayerPhase that is specified as a global property of the CFA or it is something separate and what ?
    Also is there some "industry standard" value for the Constant that will make more likely the established programs to process correctly the image ?
    And this Constant value is unique per DNG or can it be more ot them added, i.e. to somehow characterize the "badness" of the pixel, like reduced sensitivity, stuck at 0/max, etc ?
    In the end if somebody can share an one-liner on how to add programatically this tag using the SDK I'll be very grateful.
    Sorry for my newebie questions and many thanks for your help.

    Hello Dear
    Look FB60 screen has two parts :
    The one in which you enter information related to vendor is Header Level, in this case you already assign Personnel No. in Vendor Master so no field is required as Personnel no. will be picked up from Vendor Master level.
    The Other is line item level is bottom half part, if you want to assign personnel no. at Expense G/L level then if you scroll right you will find a field for Personnel no. If you can't see the field check your setting at OBVV for the field status group you assign to particular Expense G/L.
    Hope you Understood
    Cheers
    IMK

  • Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera'

    Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera's DSC files?

    DNG files do not contain some metadata supplied by the camera, which can be used by the manufacturer's software. Thus, if you don't keep the original Raw photo, you will lose this information.
    If your 1000% sure you're never going to use the manufacturer's software, then this isn't a problem. But who can be sure what software you will be using 10 years from now?

  • How export to csv work in safari browser? In my application export to csv open like a raw data in new tab. But other browsers working great!. Need to open in a csv file or save it as a csv file.

    How export to csv work in safari browser?
    In my application export to csv open like a raw data in new tab.
    But other browsers working great!.
    Need to open in a csv file or save it as a csv file.
    Please suggest me. Thank you in advance!.

    Hi Adrian,
    Why don't you try any another software for opening CSV files then Notepad ? According to my experience, you can use these softwares to open an CSV files and they are:-
    Microsoft Excel
    Open Office Calc
    Google Docs
    Also there is an additional tool available known as CSV viewer. You may try this, download it from here http://www.csvviewer.com/
    I've never used Notepad for opening CSV files, because sometimes it contains some symbols which are not not at all compatibile with Notepad.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Creating BI Publisher report with raw data XML

    Hi Guys,
    Can anyone please point me to a link or tutorial where we can do reporting using raw data XML as a datasource and defining the Parameters for filters.
    Thanks,
    Aash

    Thanks for your reply.
    I'm just add a new data set from BI Analysis, I select the Analysis and press OK, pop-up closed and in the data set I see the box with the message... nothing else.
    If I try to use a simple Analysis, the new data set works.

  • How to delete the raw-data out of the meta data (file information)

    Hi guys,
    I am definetely going crazy: since half an hour I can´t find a solution than copy (image) paste and save as a virgin jpeg: I`ve just converted some 0,5 GB tif files which I elaborated heavily in ACR and the 550 by 367 PIXEL JPEG @ quality 9 has 1,1 MB. As all your moves are saved in the raw-data (last field inthe fileinformation) there´s quite a bit on the file, also on 3 by 2 Pixel (!) "big" derivates. It seem´s there´s no intellegent way to discard this information. If you know, please let me know!
    Thanks, Sebastian

    You could try the following code to remove all the metadata, run it from within ExtendScript Toolkit and select the files in Bridge.
    #target bridge
    removeXMPData();
    function removeXMPData(){
    if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var sels = app.document.selections;
    for (var a in sels){
    var thumb = new  Thumbnail(app.document.selections[a]);
    var md = thumb.synchronousMetadata;
    var xmp = new XMPMeta(md.serialize());
            try{
            XMPUtils.removeProperties(xmp, "", "", XMPConst.REMOVE_ALL_PROPERTIES);
            var updatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
            thumb.metadata = new Metadata(updatedPacket);
            }catch(e){alert(e);}

  • Foreign key Mapping based on Data - in SQL Developer Data modeler

    Team
    Do SQL Developer Data modeler supports Foreign Key mapping based on the Data in the Schema rather defined at the DDL ? For e.g if we implement a Objects Relation ship mapping in Data base, we don't define Foreign keys at table creation.
    Toad does this feature through "AUTOMATIC FOREIGN KEYS MAPPING IN TOAD DATA MODELER" more info at (http://toadworld.com/Blogs/tabid/67/EntryId/905/Automatic-Foreign-Keys-Mapping-in-Toad-Data-Modeler.aspx)
    any one know how to implement through some scripts also helps me
    Regards
    Raj

    If you have table PKs defined and the candidate columns match those PK columns, then you can use the Discover Foreign Keys utility. Right mouse over the relational model name (node) in the left browser. It is about half way down the menu. I did a blog post about it last week on kentgraziano.com.

  • Issue with Oracle LONG RAW data type

    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /

    Maddy wrote:
    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /below might work
    12:06:23 SQL> help copy
    COPY
    Copies data from a query to a table in the same or another
    database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
    COPY {FROM database | TO database | FROM database TO database}
                {APPEND|CREATE|INSERT|REPLACE} destination_table
                [(column, column, column, ...)] USING query
    where database has the following syntax:
         username[/password]@connect_identifier

  • Raw Read Error Rate, Errors occurred while reading raw data from a disk

    hi
    when I turn my pavilion dv6 2170ee computer on screen shows below error.
    system diognostics (F2) does not any work
    and when my windows7 comming up this error was shown.
    I install Hard Disk Sentinel software and this program shows below:
    Failure Predicted - Attribute: 1 Raw Read Error Rate, Errors occurred while reading raw data from a disk. Indicate problem with the disk surface or the read/write heads.
    There are 28 weak sectors found on the disk surface. They may be remapped any time in the later use of the disk.
    26848 errors occured during data transfer. This may indicate problem of the device or with data/power cables. It is recommended to examine and replace the cables if possible.
    Replace hard disk immediately.
    how can I fix it?
    may drive format (Fdisk) and renewing windows can fix it?
    tanx and regards
    Mohammad

    Hello mohkhosh,
    I see that you're getting an error indicating possible hard driver failure, that you have this message from 3 different sources. I will try to help you with this.
    After reviewing everything  you're looking at needing to replace the hard drive. I would suggest contacting support to see what they can do for you.
    HP Technical Support, North America 1-800-474-6836. For all other regions click here.
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Add ability to use raw data in the Histogram and clipping indicators

    I have posted this as an ACR and Lightroom Feature Request at the Photoshop Family site.
    http://feedback.photoshop.com/photoshop_family/topics/raw_data_histogram_display_lightroom _and_adobe_camera_raw?rfm=1
    It was suggested I also post it here to for more visibility.
    "The current Histogram display in Lightroom and Adobe Camera Raw accurately display the file image data for JPEG, PNG, PSD, TIFF file types, but not for raw files.
    When a raw file is demosaiced and a camera profile applied it is no longer possible to determine the actual R-G-B-G2 raw data clipping levels. This is useful for determining best exposure settings (ETTR) when shooting tethered, evaluating exposure bracketed images, or for simply determining your camera's exposure metering accuracy.
    This can be added as a user-selectable option button in the current Histogram to allow viewing of the camera file's R-G-B-G2 raw data values."
    This has been requested in the past, but there appears to be mixed feelings and some confusion as to its benefits:
    http://forums.adobe.com/message/3967184#3967184
    The sole objective of  using the raw image file data in the Histogram is to determine if the image file contains clipped pixels. The actual raw data preview image is of no value other than to "accurately" display those pixels using the Highlight and Shadow clipping indicators. A good example of this implementation is the RawDigger application available for download here:
    http://www.rawdigger.com/

    Yes but it can be problematic in so far as some users find it can slow down their system. When you first switch it on it can take a while for all your files to be updated. If you're in the habit of making edits and adjustments to multiple selected images this too can slow things down. Anyway, to activate the it you'll, need to open
    Catalog Settings from the
    File menu, then set the
    Metadata: Automatically write changes into XMP to On - see attached screenshot.

Maybe you are looking for