CustomDatumExample.java does not work for more than 2 attributes

The CustomDatumExample.java only works
if the Employee object has 2 attributes -
(EmpName and EmpNo). If I try to add
another attribute to the Employee object I get java.lang.ArrayIndexOutOfBoundsException: 2 on the getAttr3 method.
Anyone know why?
Employee object
CREATE TYPE employee AS OBJECT
empname VARCHAR2(50),
empno INTEGER,
attr3 VARCHAR2(50)
Custom object class
public class Employee implements CustomDatum, CustomDatumFactory
public static final String SQLNAME = "EMPLOYEE";
public static final int SQLTYPECODE = OracleTypes.STRUCT;
MutableStruct _struct;
static int[] _sqlType =
12, 4
static CustomDatumFactory[] _factory = new CustomDatumFactory[3];
static final Employee _EmployeeFactory = new Employee();
public static CustomDatumFactory getFactory()
return _EmployeeFactory;
/* constructor */
public Employee()
struct = new MutableStruct(new Object[3], sqlType, _factory);
/* CustomDatum interface */
public Datum toDatum(OracleConnection c) throws SQLException
return struct.toDatum(c, SQL_NAME);
/* CustomDatumFactory interface */
public CustomDatum create(Datum d, int sqlType) throws SQLException
if (d == null) return null;
Employee o = new Employee();
o._struct = new MutableStruct((STRUCT) d, sqlType, factory);
return o;
/* accessor methods */
public String getEmpname() throws SQLException
{ return (String) _struct.getAttribute(0); }
public void setEmpname(String empname) throws SQLException
{ _struct.setAttribute(0, empname); }
public Integer getEmpno() throws SQLException
{ return (Integer) _struct.getAttribute(1); }
public void setEmpno(Integer empno) throws SQLException
{ _struct.setAttribute(1, empno); }
public String getAttr3() throws SQLException
{ return (String) _struct.getAttribute(2); }
public void setAttr3(String attr3) throws SQLException
{ _struct.setAttribute(2, attr3); }
null

Just to save time to you all, after numerous attempts to install a USB hub to my E3200,
I wrote to Cisco Customer Service (live chat) and I specifically requested how to set up the usb hub or the virtual USB port and they said that they do not have a software to install a USB hub.
Hope this help
Massimo
(Mod note: Edited for guideline compliance.)

Similar Messages

  • E3200 - USB port does NOT work for more than one device

    We needed a new router that had the dual band connectivity as our previous router stopped working properly when we started using a baby monitor operating on the same 2.4 GHz. The choice was between E3200 and E2500. We chose the E3200 mainly because it also offered a USB port. We were hoping to use that to connect our printer and two external drives (thus bypassing our old desktop that's been working as a server). However, it turns out that the USB port on E3200 does NOT support USB hubs! So, you can ONLY use ONE device - either a printer or one external storage drive. That wasn't really clear at all from the description. I feel like we wasted the extra $50 hoping to get functionality that just isn't there. Can't believe that in this day and age, Cisco thinks we all have only ONE USB device we might want to connect to the network! The router itself is fast enough, but the extra $50 for a USB port that doesn't do much and some speedboost phantom ability is just not worth it. 

    Just to save time to you all, after numerous attempts to install a USB hub to my E3200,
    I wrote to Cisco Customer Service (live chat) and I specifically requested how to set up the usb hub or the virtual USB port and they said that they do not have a software to install a USB hub.
    Hope this help
    Massimo
    (Mod note: Edited for guideline compliance.)

  • LSMW For Converting Open Sales Orders (not working for more than 1 item)

    Hi,
    I am using following standard object for Open sales orders .
    Object               0090   Sales documents                   
    Method               0000                                     
    Program Name         RVINVB10                                 
    Program Type         D   Direct Input                         
    Its not working for more than 1 line item.
    For more than 1 line item its giving Error saying that
    '102122                         V1                   845
    Print parameter SAPML2 1 is not defined
    Can anybody help me out in this regard.
    Thanks in advance.
    Nitin.

    hello, friend.
    i will still research the subject.  but the first thing that comes into my mind is t-code VA05.  with this, you have the option to change the Plant en masse.  so a possible workaround is for you to list a number of sales orders using VA05.  you then sort the line items by Plant.  choose all items with the same plant, change the plant via mass change... then change back to the original plant.  hopefully, the new settings should apply.
    do test a few sales orders by doing this for a larger scope.
    regards.

  • Apex 4.0 tree does not work with more than 2 levels.

    When I have more than 2 levels in my tree, I only see the root node. The query works fine and returns 132 rows when I run it in SQL. It is just the tree that does not work.
    The same tree when built in 3.2 works fine.
    This is my tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "NAME" as title,
    null as icon,
    "ID" as value,
    null as tooltip,
    null as link
    from (
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    Level = 2
    Parent = Module
    Node = Functional Areas
    ID = '__FA_' prefixing functional area code
    UNION ALL
    SELECT '__FA_'||funcarea_key id
    , '__MD_'||module_key pid
    , funcarea_name name
    , funcarea_key link_id
    , '__FA__' a1
         , null a2
    FROM c_functional_area
    Level = 3
    Parent = Functional Area
    Node = Fact Group
    ID = '__FG_' prefixing fact group key
    UNION ALL
    SELECT '__FG_'||factgroup_key id
    , '__FA_'||funcarea_key pid
    , factgroup_name name
    , factgroup_key link_id
    , '__FG__' a1
         , null a2
    FROM c_fact_group
    start with "PID" is null
    connect by prior "ID" = "PID"
    order siblings by "NAME"
    If I reduce the query to just use two levels like:
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    It works fine. Can somebody let me know what I am doing wrong? Is there a way to set the number of levels supported in 4.0?

    Hi Vidya,
    Thanks for posting your example. You may want to remove your workspace details from the previous posting, or at least update the password on the workspace. I've taken a look at your example and initially couldn't see anything wrong with your tree query. However, when I ran your query in SQL Workshop, it only returned one row, which would explain why you were only seeing one node in your tree! I've updated your query to use a WITH clause, and the tree is now working correctly. I believe you've hit an underlying database bug where the CONNECT BY query is only returning 1 row, when in fact it should return > 1 row. By re-writing the query to use a WITH clause, you can get around the problem.
    Regards,
    Hilary

  • PSE8 Backup/Synchronization not working for more than a month

    1. Reconnecting files shows that a file is not connected; however, no file is listed. How do I find missing file's properties.
    2. Backup/synchronization preferences works fine.
    3. I can select one or more or the whole catalog.
    4. The twirly icons show next to the album(s) for a second or show but then the synced icon remains in album/albums.
    5. I click OK and after the hour glass shows a while, it finishes.
    6. I click on icon and see that sychronization is on.
    7. If I check (unsynced items, synced items, or items marked for sync) it shows nothing and says that none of those choices matches.
    8. I have repaired and reindexed countless times (never has there been a "repair" problem.
    9. I click on optimize and that works.
    10. After that I notice "generating thumb nails" and the twirly thing moving. I've let it generate thumbnails for more than 24 hours and it's still going.
    I have spent countles hours during day and night, and I can't get it to work.
    I noticed that someone wrote that he had a similar problem that began with his using the IPAD. And I started using the IPAD also, but I couldn't sync my files with photoshop.com before that.
    Customer service and Help provides me with no answers. What should I do?

    Hi clairenanak:
    Sorry to hear about the troubles.
    On your #1, you may have disconnected files of media types that are not visible. To ensure that all media types are visible, go to View > Media Types, and check any items that are not currently checked. Then try the Reconnect.
    As far as backup/sync not working, disconnected files can stop sync from working.
    After resolving the disconnected files issue, let us know if sync is not working. We may need to look at the sync log to determine why.
    As for the Organizer constantly generating thumbnails, this could indicated that you have many files, for example 10,000, in your catalog.
    If you have many files in your catalog, then you may need to just wait for the process to finish.
    It may also indicate a problem with the thumbnail cache that can't be repaired by the Optimize command.
    You can manually reset this file by doing the following:
    Determine the name of your Elements Organizer catalog.
    The name of the catalog appears in the lower-left of the Organizer.
        Alternatively, you can open the Organizer and then click File >  Catalog. The name of the catalog will show in the list at the bottom  with " [current]" after it.
    Close the Elements Organizer.
    Navigate in Windows Explorer to the folder that contains your catalog. Here are the default locations:
       Windows 7 or Vista: C:\ProgramData\Adobe\Elements Organizer\Catalogs\<CATALOG NAME>  
    Click Start, type "%ProgramData%" (including the quotation marks) into the Start Search, and then press Enter.
    Open each folder in the above structure until you have opened the catalog folder.
       Windows XP: C:\Documents and Settings\All Users\Application Data\Adobe\Elements Organizer\Catalogs\<CATALOG NAME>  
    Choose Start > Run, type "%AllUsersProfile%\Application Data" (including the quotation marks) in the Open text box, then press Enter or click OK.
    Open each folder in the above structure until you have opened the catalog folder.
       NOTE: Replace <CATALOG NAME> with the name of the catalog that you determined in Step 1 above.
    There should be a file called thumb.5.cache, which is the thumbnail cache. Delete this file.
    The next time you open the Elements Organizer, the thumbnail cache will begin to rebuild. This may take some time, depending on the number of files you have in the catalog.
    HTH

  • Networked L7680 does not work from more than one computer at a time.

    Have installed latest driver software on both computers. Printer will only work with one computer on at a time. When I run windows device trouble shooter from the last computer turned on it says printer is off. It works ok from the first computer turned on.
    Any help is appreciated.

    Networked how??  Please explain how everything is connected and model number of equipment.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • SNAPSHOT : clause IN not working for more than 1 entry

    Greetings,
    I'm trying to use snapshots templates to confine a snapshot to a
    particular set of data. My 'where' clause of my snapshot is
    something like this:
    (...) where attribute IN (:VALUES)
    -When I define my template variable VALUES as "'value1'", it
    returns ok only the records which attribute has the
    value 'value1'. [OK]
    -When I define my template variable VALUES
    as "'value1','value2'", it doesn't return any record!! [WRONG!]
    Is this a bug (or a not implemented feature) of oracle lite? Or
    am I doing anything wrong?
    If it is a bug, anyone has an idea of how can I turn around this
    problem if I don't know what are the filter values that I'm
    going to use (defined by each user) and how many they are?
    thanks,
    psalazar.

    In our application we tend to use views to return appropriate values for a particular user.
    For example (we do building inspections) the publication item sql is like
    select * from inspection_sites where id in (select site_id from v_pda_bi_sites where bi_id=:bi_id)
    The view acts like a dynamic parameter table (in this cases looks at experience level, status of sites, and responsibility allocations). Once the driving views are tuned this works quite efficiently, and as the dependant tables for the publication item automatically includes all of the tables in the driving view, the object gets refreshed if there is any change to any of them, even if the site details themselves have not changed

  • Daily lot size not working for more than 5 days grouping

    Dear All,
    I want to create the procurement proposal for 6 days once. So I have created new lot size ZB by copying TB and maintained no of periods as 6.
    Assigned the lot size in Material master. After MRP run, the procurement proposal created for every two weeks on Monday. It is not created as expected (6 days once). Is there any other settings needs to be maintained to achieve the requirement?. The same problem happening for the no of periods 7,8,9 also with daily lot size.
    I don't want to use the planning calendar for this. Daily lot size is working only upto no of periods as 5.
    Could you please someone explain the standard functionality of daily lot size with combination of no of periods?
    Thanks in advance.
    Regards,
    Ganesh

    Ganesh,
    Check if your lot size is something similar to screenshot below. It is important that you have lot sizing procedure as 'Period lot size' and period as 'Daily lot size'
    With the above lot size (number of period as 8 days) I can see expected results.
    Regards,
    Himanshu

  • Custom URL Handler in Java does not work for JavaFX

    Hi,
    for the purpose of playing Media Files that are decrypted on the fly and then hold in memory with the JavaFX MediaPlayer we are trying to register a custom URL Handler. The thought behind that would be that with the handler JavaFX should be able to open a stream and play back the file (a bit like jar://). In a testcase isolated from JavaFX my handler including registration at JVM is working fine, but once i plug it into JavaFX it stops to do so. I'm calling the Media(String) constructor. It fails with "Unsupported scheme". It seems like that JavaFX is not relying on the JVM URLStreamFactory but rather implementing a separate mechanism to figure out which handler it should use thus failing in my use case.
    Is this expected behavior and if so can anybody suggest a work around?
    EDIT: Actually read the Javadoc for Media. It explicitly says that it only supports File, HTTP and Jar. So it is expected behavior however I am still open for suggestions on this.
    cheers,
    andreas
    Edited by: Andreas Mohrhard on 01.11.2011 03:26

    I believe that the connection details are stored as part of the CR itself. Therefore if you update a connection in the CMC that might not change the parameters and credentials, especially when using sub-reports.
    Hope this helps...
    Martijn van Foeken
    Focuzz BI Services
    http://www.focuzz.nl
    http://nl.linkedin.com/in/martijnvanfoeken
    http://twitter.com/mfoeken

  • Tcode MASS does not work if more than one item in contract

    Hi,
    I need to update the contract zone of a PO. Via tcode ME22N, this zone is disabled, so i cannot fill my contract in the PO using this tcode.
    I tried tcode MASS which works only if the contract has only one item.
    Can anyone help please?
    Thanks in advance

    HI Anu,
    Good to KNow that you are able to do it by Mass
    In Mass for Multiple Line Item to update to Multiple line item PO
    Just go to MASS
    Select the option BUS2012 (Purchase orders)
    and in the select the poline item EKPO
    And enter the PO Number along with the Item Number in the entry screen and execute it .
    But for the Contract also enter the option
    Outline Agreement -- for the contract number
    Principal Agmt Item-- for the contract item number
    Enter the above against the PO and its item number combination it works.
    As suggested earlier please check the Screen layout option also.which would be more easy way,
    Check the PO Screen layout-Field settings. at the Document type level  mainatained in the config.
    against the
    Hope so this would help.
    Regards
    Anjanna

  • HT203167 What happens when you pay for a  movie rental on iTunes that does not play for more than a few seconds?

    I rented a movie but it only played for a couple of seconds and then it stopped and kicked me back to the iTunes rental page again. This is after I rented the movie earlier in the day on my iPad and discovered I could not play it back through my Apple TV. What do I do now? Do I keep trying to rent it again and again, each time incurring a new rental fee?

    Use the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Java does not work at all upon using the update manager to update to firefox 3.6.10 for Ubuntu 9.0.4

    OS: Ubuntu 9.0.4
    Browser: Firefox 3.6.10
    upon updating to firefox 3.6.10, java does not work at all.
    websites that use java do not work at all anymore, when they worked just fine before the updating thru update manager. e.g. hulu website cannot play any of the shows.
    i can give the folder of bookmarked pages i tried.
    how to do that on here, i've yet to see if possible.
    i can even give saved text from the terminal concerning certain attempts.
    when i updated thru update manager, it gave some weird java plugin that wasn't there before "The IcedTea Web Browser Plugin IcedTea6 Java Web Browser Plugin (execution of applets on webpages)".
    i uninstalled this as instructed by an answer found in one of the pages i saved, cuz it was conflicting w/another java program the updater said i needed. right now, i don't remember for sure what it was. it perhaps was realplayer flash or Java itself. w/all the hours/days of searching i put in, it's difficult if not downright impossible for me to remember all the specifics of what i tried.
    i've searched throughout many webpages (including many searches on mozilla, ubuntu, java, etc) for instruction in fixing the problem.
    oh, and incidentally, on the Java site, when i try the verify test of Java, firefox pops up with that yellow bar right below the slew of tabbed website windows, giving the statement "additional plugins are required to display all the media on this page. (w/link to) install missing plugins ." which is what i do, go thru the requesting plugin installation. it comes up with, guess what, the IcedTea Java Plugin. i click on the 'next' in the "Plugin Finder Service" box that pops up, & all it gives me is "No plugins were installed. IcedTea ...Plugin failed. and the link 'find out more about plugins or manually find missing plugins'". the link takes me to some of the very things/plugins that wouldn't install in the first place. the Java test failure is a LOL funny, as what plugin it is saying is required (IcedTea) is a recommended alternate program to display the very test in the first place.
    i followed the given instructions on those many searched pages, in every case (barring what i may have just plain missed), but to no avail.
    i've even gone to the point of trying to reinstall the previous 3.5.13 firefox version, from mozilla site. even that wouldn't install.
    i've tried installing Java for my sys direct from it's site. nada.
    now it's time for me to post the problem & perhaps someone will come up with some kind of "dummy" way to fix it.
    until then many sites a regularly use are totally useless to me on this fast puter.
    the only way i can get to use such sites, are two choices: 1. use a dinosaur laptop, which is slower than molasses & cannot handle to any streaming stuff, or 2. use an available internet access puter at the library. but useage for ea person per day is limited to only one hour a day. and one can end up waiting for an hour or more ( in the busiest periods) to even get to use one.
    so, is there anyone at all, who knows any for-sure working fix for this problem?
    thanks muchly :^D
    p.s. i can't pay anybody any money for such help, as is required in certain sites (e.g. Java website), cuz i don't have any.
    i can pay in labor tho, if there is someway to find someone who can physically be at this puter w/me, taking me step-by-step
    sorry for the 20-pg essay. i hope it was all clearly understood. if, not, well, clear communication is always what is needed, ask away.

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • HT4623 I updated to ios 7.1 on Thursday.  My ipad basically does not work any more.  I am running around in circles on this site and on other "forums" trying to fix.  ???  Don't have time for this.....

    I updated to ios 7.1 on Thursday.  My ipad basically does not work any more.  I am running around in circles on this site and on other "forums" trying to fix.  ???  Don't have time for this.....Any advice appreciated.

    give us more to work with in terms of info then "basically does not work any more"
    it can be from it's on fire to the a key on the onscreen keyboard don't respond

  • Songs stop playing on my iphone I try to start it again and it will not play for more than 2-4 seconds, does anyone have the solution to this problem?

    I have Imatch and songs stop playing on my iphone I try to start it again and it will not play for more than 2-4 seconds, does anyone have the solution to this problem?

    By "hard reset" you mean hold down the Home and power buttons until the iOS device restarts, correct?

  • Server does not support setting more than 5 shared access policy identifiers on a single container

    Hi,
    I upload a video file to a new Asset. I then attempt to create a streaming URL by creating an Access Policy and then a Locator, which I use to generate the URL used for streaming.This works great. Until the 6th time you execute
    that code against the same Asset. Then you receive this error:
    "Server does not support setting more than 5 shared access policy identifiers on a single container."
    So, that's fine. I don't need to create a new AccessPolicy everytime, I can reuse the one I've created previously, build a Locator using that same policy. However, even then, I get the error about 5 shared access policies on a single container.
    Is this the Lmitation of media service? or am I missing something?
    Following is the code I used for this:
    if (AssetId != "")
                    inputAsset = (from a in _context.Assets
                                  where a.Id == AssetId
                                  select a).FirstOrDefault();
                    policy= (from a in _context.AccessPolicies where a.Name==inputAsset.Name select a).FirstOrDefault();
                    var assetFile = inputAsset.AssetFiles.Create(Path.GetFileName(singleFilePath));
                    var locator = _context.Locators.CreateLocator(LocatorType.Sas, inputAsset, policy);
                    assetFile.Upload(singleFilePath);
                    locator.Delete();
                    MediaElement media = new MediaElement();
                    media.AssetId = inputAsset.Id;
                    media.Title = Path.GetFileName(singleFilePath);
                    var result = Save(media, singleFilePath);
                    return inputAsset;
                else
                    inputAsset = _context.Assets.Create(User.Identity.Name, AssetCreationOptions.None);
                     policy = _context.AccessPolicies.Create(
                                        inputAsset.Name,
                                        TimeSpan.FromDays(30),
                                        AccessPermissions.Write | AccessPermissions.List
    | AccessPermissions.Read | AccessPermissions.Delete);
                     var assetFile = inputAsset.AssetFiles.Create(Path.GetFileName(singleFilePath));
                     var locator = _context.Locators.CreateLocator(LocatorType.Sas, inputAsset, policy);
                     assetFile.Upload(singleFilePath);
                     locator.Delete();
                     policy.Delete();
                     MediaElement media = new MediaElement();
                     media.AssetId = inputAsset.Id;
                     media.Title = Path.GetFileName(singleFilePath);
                     var result = Save(media, singleFilePath);
                     return inputAsset;

    Hi,
    I found some information related to
    Stored Access Policy , Shared Access Signatures   please check if it helps.
    Regards,
    Shirisha Paderu.

Maybe you are looking for

  • How to import mini dv tape as one clip?

    I am trying to backup some old mini dv tapes.  When I import from fcpx it splits the clips into individual files each time there's a scene change.  I don't want this to occur and would like just one long clip to be recorded.  How do I do this?  Is th

  • Numeric conversion error

    Hello everybody, Good Day to all. I have a very strange problem in my UDF. I have a Matrix whitch is bound to a Table data source like this:         Table = oForm.DataSources.DataTables.Add("Lines")         Table.Columns.Add("ID", SAPbouiCOM.BoFields

  • Netscape 6.01A

    Hi I installed Nerscape 6.01 on my Solaris-8 Intel system. (Removed the previous one) Updated the PATH. When I click on the browser icon on the Front Panel the Netscape is not being fired up. And when I issue the #netscape the error message says " C

  • Notification Emails for User Administration

    Hi all, I'd like to configure the Netweaver system to automatically send out mails to users when the account is created using "Generate Password". This system is a pure Java system and does not have the ABAP components and therefore I am not able to

  • What file type do I need for imovie?

    I know the answer may seem obvious, but I'm getting a bit confused! I thought I needed something like .DV for imovie and the short clips I uploaded from my camera which are saved as .MOV wouldn't work. However some do and some don't? What may be the