How to initialize this collection?

Hello:
Is it correct?
In a package I have defined
TYPE REG_SITUACION_TRIB IS RECORD (
SITR VARCHAR2(50),
ESTADO_SITUACION Varchar2(1)
TYPE TABLA_SITUACION_TRIB IS TABLE OF REG_SITUACION_TRIB INDEX BY BINARY_INTEGER;
g_tabla_situacion_trib TABLA_SITUACION_TRIB;
And in the package body, inside a function
v_cont_sit:=0;
FOR v_cursor IN c_cursor( parameter1 )
LOOP
     v_cont_sit:= v_cont_sit + 1;
     g_TABLA_SITUACION_TRIB( v_cont_sit ).SITR := V_cursor.SITR;
     g_tabla_situacion_trib( v_cont_sit ).ESTADO_SITUACION:='S';
END LOOP;
Am I properly initializing the collection g_tabla_situacion_trib?
Do I need an EXTEND method?
If cursor returns no results, is g_tabla_situacion_trib variable initialized to NULL?
Thanks

If cursor returns no results, is g_tabla_situacion_trib variable initialized to NULL?Contrary to previous replies, No. It is an empty collection, not the same. See below.
Also, if you going to do this:
v_cont_sit:=0;
FOR v_cursor IN c_cursor( parameter1 )
LOOP
v_cont_sit:= v_cont_sit + 1;
g_TABLA_SITUACION_TRIB( v_cont_sit ).SITR := V_cursor.SITR;
g_tabla_situacion_trib( v_cont_sit ).ESTADO_SITUACION:='S';
END LOOP;Why not just bulk collect into a collection with a type of cursor%rowtype?
using the limit clause if necessary (but [being aware of SQL%NOTFOUND|http://www.oracle.com/technology/oramag/oracle/08-mar/o28plsql.html])
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CREATE OR REPLACE PROCEDURE p3
  2  AS
  3    CURSOR c1
  4    IS
  5      SELECT SYSDATE dt
  6      FROM   DUAL;
  7    --
  8    TYPE t1 IS TABLE OF c1%ROWTYPE INDEX BY PLS_INTEGER;
  9    --
10    l1 t1;
11    --
12  BEGIN
13     --
14     IF l1 IS NULL
15     THEN
16         DBMS_OUTPUT.PUT_LINE('Is Null');
17     ELSE
18         DBMS_OUTPUT.PUT_LINE('Is Not Null');
19     END IF;
20     DBMS_OUTPUT.PUT_LINE('Empty collection: '||l1.COUNT);
21     --
22     OPEN c1;
23     FETCH c1 BULK COLLECT INTO l1;
24     CLOSE c1;
25     DBMS_OUTPUT.PUT_LINE(l1.COUNT);
26     --
27  END;
28  /
Procedure created.
SQL> set serveroutput on
SQL> exec p3;
Is Not Null
Empty collection: 0
1
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • How to initialize this correctly?

    import java.util.Scanner;
    public class Paycheck
    public static void main (String [] args)
    Scanner scan = new Scanner (System.in);
    double workedHours, overtimeHours, sSecurity, medicareTax, federalWithhold, paycheck;
    double health, dentalInsurance, visionInsurance;
    double salary = 0, deductions, rate = 0
    String employeeType, employeeName, fulltime, parttime, yes, no, fedHold, healthIns, chosenHealth = "boo", minimal;
    String standard, premium, dentIns, visIns;
    //fix the address to its correct form.
    final String COMPANY_LOGO = "Best Widgets, Inc" + "/nADDRESS";
    //computing salary
    System.out.println ("Enter the name of the employee.");
    employeeName = scan.nextLine();
    System.out.println ("Is this employee part time or full time? parttime or fulltime");
    employeeType = scan.next();
    if (employeeType.equals("fulltime"))
    System.out.println ("Please enter the number of hours worked, not including overtime.");
    workedHours = scan.nextDouble();
    System.out.println ("Please enter the number of overtime hours worked this pay period.");
    overtimeHours = scan.nextDouble();
    System.out.println ("Enter the salary rate for " + employeeName);
    rate = scan.nextDouble();
    // initialize and declare constant for adding deductions together later
    salary = (workedHours + (overtimeHours * 1.5)) * rate;
    else
    if (employeeType.equals("parttime"))
    System.out.println ("Please enter the number of hours worked.");
    workedHours = scan.nextDouble();
    System.out.println ("Enter the salary rate for " + employeeName);
    salary = (workedHours * rate);
    else
    System.out.println ("You entered an incorrect value.");
    //computing deductions
    sSecurity = (.062 * salary);
    medicareTax = (.015 * salary);
    if (employeeType.equals("fulltime"))
    federalWithhold = (.095 * salary);
    else
    System.out.println ("Did you choose to have federal income withhold? yes or no");
    fedHold = scan.next();
    if (fedHold.equals("yes"))
    federalWithhold = (.095 * salary);
    else
    federalWithhold = 0;
    //optional deduction items for ALL employees
    System.out.println ("Is medical health insurance taken out of the employee's salary? yes or no");
    healthIns = scan.next();
    if (healthIns.equals("yes"))
    System.out.println ("Did the employee chose the minimal coverage plan, standard coverage plan,"
    + " or premium coverage plan? minimal, standard, or premium");
    chosenHealth = scan.next();
    if (chosenHealth.equals("minimal"))
    health = (salary - 54.00);
    else
    if (chosenHealth.equals("standard"))
    health = (salary - 82.00);
    else
    health = (salary - 110.00);
    else
    health = (salary - 0);
    System.out.println ("Did this employee choose to take Dental Insurance? yes or no");
    dentIns = scan.next();
    if (dentIns.equals("yes"))
    dentalInsurance = (health - 27.62);
    else
    dentalInsurance = (health - 0);
    System.out.println ("Did this employee choose to take vision insurance? yes or no");
    visIns = scan.next();
    if (visIns.equals("yes"))
    visionInsurance = (dentalInsurance - 7.88);
    else
    visionInsurance = (dentalInsurance - 0);
    //deductions added.
    deductions = (sSecurity + medicareTax + federalWithhold + visionInsurance);
    System.out.println ("Your salary for this pay period is " + (salary - deductions));
    whenever i execute this program as is, i get negative numbers for the output of the salary...which doesn't happen. It's supposed to be bi-weekly...so i put in 80 hours as the hours worked. then 12 hours as overtime. that makes 98 total hours (12 * 1.5 + 80) multiplied by 27.50 = 2000 something. that's what it SHOULD BE. when i put that stuff into the program, after subtracting the deductions it comes out with -300 something dollars...the gov doesn't take over 2k on a paycheck that is only 2k lol.
    i have salary = 0; at the top to initialize it to something. i tried doing double salary = scan.next(); and double rate = scan.next(); on the two that applies to, but i get the error saying it wasn't initialized on the other parts that use salary.
    what AND where do i need to initialize and declare rate and salary to to make this work properly? this is a project i have due TOMORROW and i have 4 hours i can work on it tonight. i also have to print out a paycheck and stub at the end of the code to make it "look realistic"...which i think will be hard considering i have nothing to look at for an example.
    thanks much if you can help.

    Your code is reason enough to hope for government-supplied universal health insurance coverage. If you're looking for the insurance agent who sold your company this policy, he's probably in South America under an assumed identity. Please see comments below:
    import java.util.Scanner;
    public class Paycheck2
        public static void main(String[] args)
            Scanner scan = new Scanner(System.in);
            double workedHours, overtimeHours, sSecurity, medicareTax, federalWithhold, paycheck;
            double health, dentalInsurance, visionInsurance;
            double salary = 0, deductions, rate = 0
            String employeeType, employeeName, fulltime, parttime, yes, no, fedHold, healthIns, chosenHealth = "boo", minimal;
            String standard, premium, dentIns, visIns;
            // fix the address to its correct form.
            final String COMPANY_LOGO = "Best Widgets, Inc" + "/nADDRESS";
            // computing salary
            System.out.println("Enter the name of the employee.");
            employeeName = scan.nextLine();
            System.out.println("Is this employee part time or full time? parttime or fulltime");
            employeeType = scan.next();
            if (employeeType.equals("fulltime"))
                System.out
                        .println("Please enter the number of hours worked, not including overtime.");
                workedHours = scan.nextDouble();
                System.out
                        .println("Please enter the number of overtime hours worked this pay period.");
                overtimeHours = scan.nextDouble();
                System.out.println("Enter the salary rate for " + employeeName);
                rate = scan.nextDouble();
                // initialize and declare constant for adding deductions together
                // later
                salary = (workedHours + (overtimeHours * 1.5)) * rate;
            else
                if (employeeType.equals("parttime"))
                    System.out.println("Please enter the number of hours worked.");
                    workedHours = scan.nextDouble();
                    System.out.println("Enter the salary rate for " + employeeName);
                    salary = (workedHours * rate);
                else
                    System.out.println("You entered an incorrect value.");
            // computing deductions
            sSecurity = (.062 * salary);
            medicareTax = (.015 * salary);
            if (employeeType.equals("fulltime"))
                federalWithhold = (.095 * salary);
            else
                System.out
                        .println("Did you choose to have federal income withhold? yes or no");
                fedHold = scan.next();
                if (fedHold.equals("yes"))
                    federalWithhold = (.095 * salary);
                else
                    federalWithhold = 0;
            // optional deduction items for ALL employees
            System.out
                    .println("Is medical health insurance taken out of the employee's salary? yes or no");
            healthIns = scan.next();
            if (healthIns.equals("yes"))
                    System.out
                            .println("Did the employee chose the minimal coverage plan, standard coverage plan,"
                                    + " or premium coverage plan? minimal, standard, or premium");
                    chosenHealth = scan.next();
                if (chosenHealth.equals("minimal"))
                    health = (salary - 54.00); //***** yikes!!!! *****
                else if (chosenHealth.equals("standard"))
                    health = (salary - 82.00); //***** yikes!!!! *****
                else
                    health = (salary - 110.00); //***** yikes!!!! *****
            else
                health = (salary - 0); //***** yikes!!!! *****
            System.out
                    .println("Did this employee choose to take Dental Insurance? yes or no");
            dentIns = scan.next();
            if (dentIns.equals("yes"))
                dentalInsurance = (health - 27.62);
            else
                dentalInsurance = (health - 0);  //***** yikes!!!! *****
            System.out
                    .println("Did this employee choose to take vision insurance? yes or no");
            visIns = scan.next();
            if (visIns.equals("yes"))
                visionInsurance = (dentalInsurance - 7.88);
            else
                visionInsurance = (dentalInsurance - 0);  //***** yikes!!!! *****
            //deductions added.
            deductions = (sSecurity + medicareTax + federalWithhold + visionInsurance);
            System.out.println("Your salary for this pay period is "
                    + (salary - deductions));
    }

  • How to release a collective production order in CO05N with MSPT?

    The issue was: I want to release a collective order by co05n, e.g. the structure of this collective production order 10000 like this:
    10000----20000
    30000---40000
                                 ---50000
    if order 50000 with material shortage, keep the customizing OPJK  release order=3, how to release this collective
    order. If it is not possible in standard, can the parallel order 40000 be released??
    Thank you, all.
    Edited by: Stephen Wang on Apr 15, 2010 3:12 PM

    Dear,
    In Transaction CO05N, you execute a collective release. For one of the orders, the availability check determines missing part although it has been set in Customizing of the availability check (OPJK) that a release can be executed for missing part per user decision. Therefore, a dialog box is processed on which options a.) 'Release order', b.) 'Missing parts list' and c.) 'Cancel' are displayed.
    If you first branch to the missing parts list and then press 'Cancel' on the dialog box there it self
    Else you can do this with these options,
    1)Use T Code COHVOMRELEASE here select order as you want and release accordingly.
    2) Use Transaction SE38 to create the variants for program PPIO_ENTRY and schedule it through SM36 or use standard variant as SAP&RELEASE if want in background.
    3) use BAPI BAPI_PRODORD_RELEASE
    Please try and come back.
    Regards,
    R.Brahmankar

  • How to initialize variable? (ArrayList String [])

    How to initialize this variable correctly, without getting a type safety warning?
    ArrayList<String>[] var = ?
    Thanks & Best regards,
    Kristian
    Message was edited by:
    Kriskra

    I need to use an array in this case... Thanks for
    your advice anyway...And the answer still is arrays and generics don't mix so your request is impossible without ignoring the warning.
    Try@SuppressWarnings("unchecked")
    ArrayList<String>[] var = new ArrayList[10];

  • Creative Cloud locked up and had to Uninstall. Upon reinstall it initializes and downloads 2/3 but then stops every time. How to remedy this?

    Creative Cloud locked up and had to Uninstall. Upon reinstall it initializes and downloads 2/3 but then stops every time. How to remedy this?

    After running cleaner tool, follow below steps :
    End all Adobe process from Task Manager .
    1) Open Control Panel and Navigate to Control Panel\Programs\Programs and Features .
    Under Program and Features list,If present remove Adobe Creative Cloud option.
    2) Open C:drive and navigate to C:\Program Files (x86)\Common Files\Adobe.
    Open Adobe folder and delete folders named Adobe Application Manager and OOBE.
    3) Navigate to C:\Program Files (x86)\Adobe.
    Open Adobe folder and if present delete Adobe Creative Cloud folder.
    4) Press Windows button (located between Ctrl and Alt buttons) along with R button together at a time , you will get a run command window.
    Type in below command and hit 'Enter' key.
    appdata
    Then navigate to Local>Adobe.
    Open Adobe folder and delete folders named AAMUpdater and OOBE.
    5) Click on the below link and download Adobe Application Manager and install the same.
    Once the installation process is completed , it will create shortcut icon on Desktop.
    Double click on it and update, it will get updated to Creative Cloud :
    http://download.adobe.com/pub/adobe/creativesuite/cc/win/ApplicationManager9.0_all.exe

  • Failed to lazily initialize a collection -, could not initialize proxy - no Session

    I have an application that i am extending to provide a REST API.  Everything works fine in the main site, but I am getting the following in the exception log when I try to hit the REST API:
        "Error","ajp-bio-8014-exec-3","12/02/14","12:54:06","table","failed to lazily initialize a collection of role: field, could not initialize proxy - no Session The specific sequence of files included or processed is: service.cfc'' "
        org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: field, could not initialize proxy - no Session
            at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationExc eption(AbstractPersistentCollection.java:566)
            at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeed ed(AbstractPersistentCollection.java:186)
            at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersisten tCollection.java:137)
            at org.hibernate.collection.internal.PersistentBag.size(PersistentBag.java:242)
            at coldfusion.runtime.xml.ListIndexAccessor.getSize(ListIndexAccessor.java:44)
            at coldfusion.runtime.xml.ArrayHandler.serialize(ArrayHandler.java:69)
            at coldfusion.runtime.xml.CFComponentHandler.serialize(CFComponentHandler.java:106)
            at coldfusion.runtime.XMLizerUtils.serializeXML(XMLizerUtils.java:83)
            at coldfusion.rest.provider.CFObjectProvider.writeTo(CFObjectProvider.java:378)
            at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationIm pl.java:1479)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImp l.java:1391)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImp l.java:1381)
            at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
            at coldfusion.rest.servlet.CFRestServletContainer.service(CFRestServletContainer.java:141)
            at coldfusion.rest.servlet.CFRestServletContainer.service(CFRestServletContainer.java:86)
            at coldfusion.rest.servlet.CFRestServlet.serviceUsingAlreadyInitializedContainers(CFRestServ let.java:556)
            at coldfusion.rest.servlet.CFRestServlet.invoke(CFRestServlet.java:434)
            at coldfusion.rest.servlet.RestFilter.invoke(RestFilter.java:58)
            at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
            at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
            at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
            at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
            at coldfusion.rest.servlet.CFRestServlet.invoke(CFRestServlet.java:409)
            at coldfusion.rest.servlet.CFRestServlet.service(CFRestServlet.java:400)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
            at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
            at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
            at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Disabling lazy loading will fix this, but results in unacceptable performance (load times go from 200ms to 22s).  I'm not sure how else to handle this.
    I am new to REST in ColdFusion, and it seems to me that the CFC's are being handled in an unusual way.  They do not appear to be initialized (init method does not seem to run) and now it seems that ORM is not handled the same either.  Am I missing something?
    Here is the excerpt of my code producing this error:
        component rest="true" restpath="item"
            import model.beans.*;
            remote item function getitem( numeric id restargsource="Path" ) restpath="{id}" httpmethod="GET"
                var item = entityLoad("item",{ id = id },true);
                return item;
    And the bean:
        component persistent="true" table="item" output="false" extends="timestampedBean" batchsize="10" cacheuse="read-only"
            /* properties */
            property name="id" column="id" type="numeric" ormtype="int" fieldtype="id" generator="identity";
            property name="title" column="title" type="string" ormtype="string";
            property name="description" column="description" type="string" ormtype="string";
            property name="status" column="status" type="numeric" ormtype="byte" default="0" ;
            property name="user" fieldtype="many-to-one" cfc="user" fkcolumn="userid" inversejoincolum="userid" lazy="true" cacheuse="read-only";
            property name="field" type="array" fieldtype="many-to-many" cfc="field" fkcolumn="id" linktable="items_fields" inversejoincolumn="fieldid" lazy="extra" batchsize="10" cacheuse="read-only";
    I also noticed in the stdout log that Hibernate is logging the query, but then it logs the "No session" error:
        Hibernate:
            select
                item0_.id as id0_0_,
                item0_.dtcreated as dtcreated0_0_,
                item0_.dtmodified as dtmodified0_0_,
                item0_.title as title0_0_,
                item0_.description as descript6_0_0_,
                item0_.status as status0_0_,
                item0_.userid as userid0_0_
            from
                item item0_
            where
                item0_.id=?
        Dec 2, 2014 15:23:00 PM Error [ajp-bio-8014-exec-3] - failed to lazily initialize a collection of role: field, could not initialize proxy - no Session The specific sequence of files included or processed is: service.cfc''
    I should probably also add that this "item" table is part of a many-to-many relationship, so "collection of role: field" is referencing the foreign table.

    I have an application that i am extending to provide a REST API.  Everything works fine in the main site, but I am getting the following in the exception log when I try to hit the REST API:
        "Error","ajp-bio-8014-exec-3","12/02/14","12:54:06","table","failed to lazily initialize a collection of role: field, could not initialize proxy - no Session The specific sequence of files included or processed is: service.cfc'' "
        org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: field, could not initialize proxy - no Session
            at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationExc eption(AbstractPersistentCollection.java:566)
            at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeed ed(AbstractPersistentCollection.java:186)
            at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersisten tCollection.java:137)
            at org.hibernate.collection.internal.PersistentBag.size(PersistentBag.java:242)
            at coldfusion.runtime.xml.ListIndexAccessor.getSize(ListIndexAccessor.java:44)
            at coldfusion.runtime.xml.ArrayHandler.serialize(ArrayHandler.java:69)
            at coldfusion.runtime.xml.CFComponentHandler.serialize(CFComponentHandler.java:106)
            at coldfusion.runtime.XMLizerUtils.serializeXML(XMLizerUtils.java:83)
            at coldfusion.rest.provider.CFObjectProvider.writeTo(CFObjectProvider.java:378)
            at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationIm pl.java:1479)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImp l.java:1391)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImp l.java:1381)
            at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
            at coldfusion.rest.servlet.CFRestServletContainer.service(CFRestServletContainer.java:141)
            at coldfusion.rest.servlet.CFRestServletContainer.service(CFRestServletContainer.java:86)
            at coldfusion.rest.servlet.CFRestServlet.serviceUsingAlreadyInitializedContainers(CFRestServ let.java:556)
            at coldfusion.rest.servlet.CFRestServlet.invoke(CFRestServlet.java:434)
            at coldfusion.rest.servlet.RestFilter.invoke(RestFilter.java:58)
            at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
            at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
            at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
            at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
            at coldfusion.rest.servlet.CFRestServlet.invoke(CFRestServlet.java:409)
            at coldfusion.rest.servlet.CFRestServlet.service(CFRestServlet.java:400)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
            at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
            at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
            at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Disabling lazy loading will fix this, but results in unacceptable performance (load times go from 200ms to 22s).  I'm not sure how else to handle this.
    I am new to REST in ColdFusion, and it seems to me that the CFC's are being handled in an unusual way.  They do not appear to be initialized (init method does not seem to run) and now it seems that ORM is not handled the same either.  Am I missing something?
    Here is the excerpt of my code producing this error:
        component rest="true" restpath="item"
            import model.beans.*;
            remote item function getitem( numeric id restargsource="Path" ) restpath="{id}" httpmethod="GET"
                var item = entityLoad("item",{ id = id },true);
                return item;
    And the bean:
        component persistent="true" table="item" output="false" extends="timestampedBean" batchsize="10" cacheuse="read-only"
            /* properties */
            property name="id" column="id" type="numeric" ormtype="int" fieldtype="id" generator="identity";
            property name="title" column="title" type="string" ormtype="string";
            property name="description" column="description" type="string" ormtype="string";
            property name="status" column="status" type="numeric" ormtype="byte" default="0" ;
            property name="user" fieldtype="many-to-one" cfc="user" fkcolumn="userid" inversejoincolum="userid" lazy="true" cacheuse="read-only";
            property name="field" type="array" fieldtype="many-to-many" cfc="field" fkcolumn="id" linktable="items_fields" inversejoincolumn="fieldid" lazy="extra" batchsize="10" cacheuse="read-only";
    I also noticed in the stdout log that Hibernate is logging the query, but then it logs the "No session" error:
        Hibernate:
            select
                item0_.id as id0_0_,
                item0_.dtcreated as dtcreated0_0_,
                item0_.dtmodified as dtmodified0_0_,
                item0_.title as title0_0_,
                item0_.description as descript6_0_0_,
                item0_.status as status0_0_,
                item0_.userid as userid0_0_
            from
                item item0_
            where
                item0_.id=?
        Dec 2, 2014 15:23:00 PM Error [ajp-bio-8014-exec-3] - failed to lazily initialize a collection of role: field, could not initialize proxy - no Session The specific sequence of files included or processed is: service.cfc''
    I should probably also add that this "item" table is part of a many-to-many relationship, so "collection of role: field" is referencing the foreign table.

  • How to do this in SAP SD

    Companies
    1. TATA
    2. Godrej
    A customer went to godrej web site or called and ordered a refrigirator. wat godrej do here is send that order to TATA .
    TATA going to deliver the order to customer. and also TATA going to invoice the customer on behalf of Godrej. means invoice shows godrej logo and customer name and payment information.
    when customer see the invoice he feels like the invoice and order(refrigirator) camefrom directly from Godrej.
    But Invoice and order delivering done by TATA. and TATA also collects the Payments.
    TATA and Godrej look their books quarterly basis.
    TATA giving services like this.
    This is only example.this is happening in real time in other companies.
    Please find me a solution
    How to do this in SAP SD.

    HI,
    You can use Third Party process as pointed out by Srinivas.
    Blewo are the links that will help you in 3rd party process...
    http://help.sap.com/saphelp_46c/helpdata/en/e6/4a78e39e0311d189b70000e829fbbd/content.htm
    http://www.sap-img.com/sap-sd/process-flow-for-3rd-party-sales.htm
    let us know.
    Regards,
    SB

  • How to install this update and solve USB and touchpad issues?

    I have Equium M50 (59E) and got bitten by an update that took out my touchpad and keyboard .I have made fresh install of XP Home and have all updated drivers and all is going well .The last update i cant seem to fathom is for
    Driver Ana _2005_10_24_V1.2 it is for ,Standard Open HCD USB Host Controller........X 2 .........
    The update fixes all kinds of issues of the kind i am having and is a recomended update from Driver detective ,that i use offten .
    The trouble is it says to uninstall drivers for the one i have installed allready and when i do this it knocks off my USB mouse leaving me not able to install the new ones .When i reboot it installs the ones i dont want reinstalled .
    This is the read me off the new update and realy it is beyond me to underdstand what to do ............so here it is ?
    Driver revision history:
    Twinhan VP704A Driver Release note
    Note:
    1.In case the system crashes while running with VP704A, Please install ULI
    USB 2.0 host driver in \ULiUSB20Driver
    2. For XP/SP1, please update with the patch in
    <http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&familyid=733dd867-56a0-4956-b7fe-e85b688b7f86>
    3.In XP/SP1, updating driver will crash the system, while new install is ok.
    The trick to update driver in XP/SP1 is shown in the following steps,
    a. Uninstall the driver
    b. Unplug and plug the USB device
    c. Install the driver
    4. To support remote controller, please launch Agent.exe in \Agent.
    Further details can be found in \Agent\Readme.txt
    Known issues:
    1. Multi-instance is not supported
    2. Remote wakeup is not supported
    3. High CPU usage in Analog audio/video capture
    4. Bad VBI Signal using YUY2 color format
    5. AV out of sync if audio captured from wrong filter.
    (Fix:using the filter "USB Audio Device" in WDM stream capture device)
    6. Noise with analog-TV and FM Radio
    (Fix:using the filter "USB Audio Device" in WDM stream capture device)
    Driver revision history:
    2005/10/24, Version: 1.0.2.8
    Bugs fixed and new features:
    1.Crossbar not properly set.
    2005/10/21, Version: 1.0.2.7
    Bugs fixed and new features:
    1.Firmware version read from FLASH OK!
    2005/10/14, Version: 1.0.2.6
    Bugs fixed and new features:
    1.Mutil-Access driver blank part below part screen when VBI!
    2.Mutil-Access driver HCT driver verify crash fix!
    2005/10/07, Version: 1.0.2.5
    Bugs fixed and new features:
    1.Tuner Power off when S-Video,Composite.
    2005/09/30, Version: 1.0.2.4
    Bugs fixed and new features:
    1.Agent.exe updated for repeat bug!
    2.TI5150 Register for Video Format fix!
    2005/09/29, Version: 1.0.2.3
    Bugs fixed and new features:
    1.A trial driver build for multiple access support. (in the folder "\Multi-Access")
    Note: "USB Audio device" filter provided by system does not support mutil-Access.
    2.Reset TI5150 when a new frequency is set
    2005/09/27, Version: 1.0.2.2
    Bugs fixed and new features:
    1.Fix I2C unstable access on some devices.
    2005/09/23, Version: 1.0.2.1
    Bugs fixed and new features:
    1.Analog TV becomes darker sometimes.
    2005/09/15, Version: 1.0.2.0
    Bugs fixed and new features:
    1.Fix INF for Windows 2000 installation.
    2.FM radio scan policy changed!
    2005/09/13, Version: 1.0.1.9
    Bugs fixed and new features:
    1.USB serial number string not visible with USBView, firmware update required.
    2.FM radio scan policy, return unlock if PLLOffset>=9x12.5KHz
    2005/09/13, Version: 1.0.1.8
    Bugs fixed and new features:
    1.After switching between A/D/AV several times, video display becomes dark in THDTV 2.61
    2005/09/12, Version: 1.0.1.7
    Bugs fixed and new features:
    1.Improve channel lock status check performance
    2.Pinnacle INF Fix.
    2005/09/09, Version: 1.0.1.6
    Bugs fixed and new features:
    1.Add some audio initialization function.
    2005/08/31, Version: 1.0.1.5
    Bugs fixed and new features:
    1.NTSC & PAL mode resolution separation.
    2005/08/30, Version: 1.0.1.4
    Bugs fixed and new features:
    1.AvgTimePerFrame.
    2.Frame Drop.
    3.Pinnacle inf file HCT chkinf fail.
    2005/08/22, Version: 1.0.1.3
    Bugs fixed and new features:
    1.Add Remote controller interface in digital source filter.
    2.A new Remote controller test tool with source code in \Test_RC.
    2005/08/16, Version: 1.0.1.2
    Bugs fixed and new features:
    1.Reorg Pinnacel & Twinhan's driver & folder.
    2.VP704A_BDA_Test tool, add system code test.
    3.Set IR protocol standard by registry keys "IRSTANDARD", "IRSYSCODECHECK1" in INF file.
    4.Firmware update
    2005/08/15, Version: 1.0.1.1
    Bugs fixed and new features:
    1.Serial number function is lost while adjusting TV audio volume
    2.RC6A CIR support
    (This firmware uses GPIO3 (M9207 pin 80) to decode RC6 protocol.
    The hardware should be reworked to connect M9207 pin 80 to CIR module and the fimrware
    EEPROM should be flashed with \Firmware\M9207.bin )
    3.Serieal number, MAC address and OEM device name supported.
    Please refer to further details in \Firmware\readme.txt.
    4.Ioclt sample source code included.
    2005/08/08, Version: 1.0.0.10
    Bugs fixed and new features:
    1.Analog TV audio volume increase.
    2005/08/04, Version: 1.0.0.9
    Bugs fixed and new features:
    1.Analog TV Video mode set failure.
    2005/08/03, Version: 1.0.0.8
    Bugs fixed and new features:
    1.Off-centerf requency scan +/- 125Khz
    2.Fix duplicated program scanned in MCE.
    2005/08/02, Version: 1.0.0.7
    Bugs fixed and new features:
    1.THBDAConsole.exe "ulFixedBW", "ulDisableOffFreqScan", "ulMCEFreqTranslate" bug fixed
    2005/07/28, Version: 1.0.0.6
    Bugs fixed and new features:
    1.THBDAConsole.exe "ulFixedBW", "ulDisableOffFreqScan", "ulMCEFreqTranslate" support
    2.Improve I2C communication stability.
    3.Unify Signal strength & quality indication as THBda ioctl interface.
    4.Capture filter Lock status check.
    2005/07/28, Version: 1.0.0.5
    Bugs fixed and new features:
    1. The same signal strength & quality indications as VP7046.
    2. Debug build driver
    2005/07/21, Version: 1.0.0.4
    Bugs fixed and new features:
    1.Update INF.
    2005/07/20, Version: 1.0.0.3
    Bugs fixed and new features:
    1.Improve performance in PCM4
    2.Switching from Analog TV Mode to FM Mode failure
    2005/07/04, Version: 1.0.0.2
    Bugs fixed and new features:
    1.Production Tool FM test OK!
    And here is the readme from the other file within the update ?
    ULi PCI to USB Enhanced Host Controller Driver V1.72 for Windows 98 SE, Windows ME , Windows 2000 and Windows XP
    INTRODUCTION
    This driver supports ULi EHCI host Controller under Windows 98 SE, Windows ME , Windows 2000
    and Windows XP.
    CONTENTS OF THIS DOCUMENT
    1. Installation Instructions
    2. Uninstallation Instructions
    1. Installation Instructions
    (Windows 98 SE & Windows ME)
    A.When ULi USB 2.0 Controller has attached on system
    1. Install ULi USB2.0 Driver
    - Run the setup program.
    - This program will copy driver files into your Windows system,then restart your computer.
    2. After system reboot, Windows will find the new hardware "ULi PCI to USB Enhanced
    Host Controller" and install the driver.
    B.If no ULi USB 2.0 Controller on system
    1. Install ULi USB2.0 Driver
    - Run the setup program.
    - This program will copy driver files into your Windows system, then turn off your computer.
    - Attach ULi USB 2.0 Controller card on your system and then reboot your computer.
    2. After system reboot, Windows will find the new hardware "ULi PCI to USB Enhanced
    Host Controller" and install the driver.
    (Windows 2000)
    A.When ULi USB 2.0 Controller has attached on system
    1. Install ULi USB2.0 Driver
    - Run the setup program.
    - This program will install and load the driver and you don't have to reboot the
    computer.
    B.If no ULi USB 2.0 Controller on system
    1. Install ULi USB2.0 Driver
    - Run the setup program.
    - This program will copy driver files into your Windows system, then turn off
    your computer.
    - Attach ULi USB 2.0 Controller card on your system and then reboot your computer.
    2. After system reboot, Windows will find the new hardware "ULi PCI to USB Enhanced
    Host Controller" and install the driver.
    (Windows XP)
    A.When ULi USB 2.0 Controller has attached on system
    1. Install ULi USB2.0 Driver
    - Run the setup program.
    - Click "NEXT"
    - This program will install and load the driver and you don't have to reboot the
    computer.
    - After install ULi USB 2.0 driver successfully. System will detect "USB 2.0 Root
    Hub". Please select "install the software automatically (Recommended)" and then
    click "Next" button to continue install.
    - This program will install and load the driver and you don't have to reboot the
    computer.
    B.If no ULi USB 2.0 Controller on system
    1. Install ULi USB2.0 Driver
    - Run the setup program.
    - This program will copy driver files into your Windows system, then turn off
    your computer.
    - Attach ULi USB 2.0 Controller card on your system and then reboot your computer.
    2. After system reboot, Windows will find the new hardware "ULi PCI to USB Enhanced
    Host Controller", continue to install.
    - After install ULi USB 2.0 driver successfully. System will detect "USB 2.0 Root
    Hub". Please select "install the software automatically (Recommended)" and then
    click "Next" button to continue install.
    Notice:
    If you can't setup driver successfully. Please reboot your system and then follow
    above steps to install driver again.
    2. Uninstallation Instructions
    1. Open "Control Panel" folder.
    2. Invoke "Add\Remove Programs" icon.
    3. Choose "ULi USB2.0 Driver" item.
    4. Click on "Add/Remove" button to remove drivers.
    Change List:
    1.74
    1.fix issue that multi-interface keyboard can not be detected on the usb2.0 hub.
    2.support all USB2.0 Host Controller.
    1.73
    1.fix issue that On Win98SE , Blue screen when unplugging some USB2.0 Scanner after scanning image.
    2.fix issue that On Win98SE, Blue screen when unplugging some USB2.0 Scanner from USB 2.0 Hub after scanning image.
    3.fix issue that On Win98SE, Blue screen while copying files across the SUNBOX UH-204 Hub.
    4.fix issue that wirless lan will disconect when plug-in usb device.
    1.72
    1.Fix issue that system will crash when USB HD copy large file.
    1.71
    1.improve Power management function in Win98/ME.
    1.70
    1.Improve the function of devcie detection.
    1.62
    1.Fix the problem that a USB floppy under USB 2.0 HUB cannot function when system resume from suspend.
    1.61
    1.Fix the problem that some USB device under USB 2.0 HUB cannot be found if system resume from suspend.
    1.60
    1.To support power management functions when a HUB with USB device plug into
    a root HUB.
    1.57
    1.Fix USB floppy with USB 2.0 HUB can't be detect issue.
    2.Fix issue that audio can't display smooth when USB device attach to system.
    3.Fix system can't detect USB dvice when USB device attach to system in
    suspend mode.
    4.Fix issue that when USB root HUB have full loading, USB HD sometimes
    transaction fail.
    1.56
    1. Fix issue that DVD decoder device can't display properly.
    1.55
    1. Fix OTI USB 2.0 hand drive can't be detect issue.
    2. Fix USB mouse can't use after resume from suspend.
    1.54
    1.Improve driver security.
    1.53
    1. Fix bulk transfer may stop if USB device is plugged in USB 2.0 hub
    2. Fix USB 2.0 mass storage device can't be access after resuming from standby if there is another USB 1.1 device existing
    1.52
    1. Fix system pages fault when accessing mass storage device in Win98SE, or scandisk failure when selecting
    automatically fix file system errors
    2. Fix system may hang up in Win98SE/ME if USB 2.0 cardbus card is plugged
    v.1.51
    1. Improve USB 2.0 cardreader compatibility.
    2. Fix USB IDE devices can't be accessed after resuming from standby/hibernation.
    v1.50
    1. Improve bulk transfer
    v1.48
    1. Fix USB 2.0 LAN driver installation hanging up
    2. Fix some USB 1.1 cardreader can't be identified when plugged into USB 2.0 hub
    3. Fix some laptops Win98SE booting hanging up
    v1.47
    1. Improve bulk transfer performance.
    2. Fix USB 2.0 bulk webcam preview failure.
    v1.46
    1. Support USB 2.0 and 1.1 Isochronous devices
    2. Fix system hanging up when rebooting system if USB 2.0 host controller is disabled in Win9X/ME
    3. Fix system hanging up when uninstalling driver if there are USB 2.0 devices connected in Win2K/XP
    4. Improve device detection capability in Win9X/ME
    v1.45
    1. Fix system hanging up when resuming from ACPI sleep mode.
    2. Fix mouse sometimes doesn't disappear when it's unplugged.
    3. Fix Win9X composite device detection failure and improve Win2K/XP composite device
    v1.44
    1. Support composite device
    2. Improve device detection
    v1.43
    1. Improve IDE read/write transfer failure rate with USB 2.0 to IDE bridge on PC card platform
    2. Fix high-speed device detected as full-speed device
    3. Fix some USB mouses detection failure problem
    4. Fix some USB 2.0 hubs detection failure problem
    5. Fix Win98SE crashing if ULi EHCI 1.42 is installed
    v1.42
    1. Fix PC Card ejection hanging up in Win98/ME
    2. Fix suspend/resume hanging up in Win98
    3. Solve sometimes USB 1.1 device can't be detected if OS boots with USB 2.0 and 1.1 devices plugged
    4. Fix some PC Card USB 1.1 device detection failure
    v1.41
    1. Add new feature that system can install driver before device is plugged.
    2. Fix PCMCIA OHCI controller resource assign issue on Windos ME.
    v1.40
    1. Support Win9X/ME/2K/XP with ULi USB 2.0 driver.
    2. Fix PCMCIA EHCI controller detecting USB 2.0 device problem in Win9X/ME.
    v1.32
    1. Fix issue that driver can't detect Microsoft driver in Windows XP
    if OS path is not c:\windows.
    2. Fix issue that driver can't detect USB 2.0 controller device in in some system.
    v1.31
    1. Fix issue that driver can't install on Windows 2000.
    v1.30
    1. Fix issue that Win9X/ME shows no USB 2.0 Root Hub.
    2. Fix issue that hanging up when second entry into Win9X S1 with HID device plugged.
    3. Fix issue that sometimes when you click "Scan for hardware changes".
    to PNP ULi USB2.0 controller, system will informs you the usbehci.sys
    file can't be found.
    4. Fix issue that v1.20 finds no EHCI controller to install driver for after different
    verison of ULi EHCI controller devices are plugged and unplugged.
    5. Support installing driver for more than one ULi EHCI controller devices existing on
    system at the same time.
    6. Fix Win2K/XP shows USB Root Hub for USB 2.0 Root Hub.
    v1.20
    1.Support ULi USB 2.0 Host controller driver for Windows 98SE/ME/2000/XP.
    ULi Coporation. (ULi) web sites:
    http://www.uli.com.tw/ (Taiwan)
    CAN ANYONE TREAT ME LIKE A TWO YEAR OLD AND GIVE SOME GUIDANCE AS TO HOW TO ACHIEVE THIS UPDATE .
    i WOULD BE VERY GRATEFULL AND KIND OF THINK IT WOULD BE BENIFICIAL TO A LOT MORE PEOPLE AS I SEE A LOT OF XP AND PROBLEMS OF THE KIND THIS UPDATE IS SUPPOSED TO FIX .

    It says above 2 relevant and 1 correct answere available .............
    I'm new here so could anyone direct me to these answeres?

  • How to use oracle collection type with JDBC?

    I try to use oracle collection type in java program. So I made some package and java program, however Java program was not found "package.collectiontype"(JDBC_ERP_IF_TEST.NUM_ARRAY) . please, show me how to use this.
    Java Version : Java 1.4
    JDBC Driver : Oracle Oci Driver
    DB: Oracle 9i
    No 1. Package
    ===========================================
    create or replace package JDBC_ERP_IF_TEST AS
    type NUM_ARRAY is table of number;
    procedure JDBC_ERP_IF_ARRAY_TEST(P_NUM_ARRAY IN NUM_ARRAY, ERR_NO OUT NUMBER, ERR_TEXT OUT VARCHAR2);
    procedure TEST(ABC IN NUMBER);
    END JDBC_ERP_IF_TEST;
    ==================================================
    No 2. Package Body
    ===============================================
    CREATE OR REPLACE package BODY JDBC_ERP_IF_TEST is
    procedure JDBC_ERP_IF_ARRAY_TEST(p_num_array IN NUM_ARRAY,
    ERR_NO OUT NUMBER,
    ERR_TEXT OUT VARCHAR2) is
    begin
    ERR_NO := 0;
    ERR_TEXT := '';
    dbms_output.enable;
    for i in 1 .. p_num_array.count() loop
    dbms_output.put_line(p_num_array(i));
    insert into emp (empno) values (p_num_array(i));
    commit;
    end loop;
    EXCEPTION
    WHEN OTHERS THEN
    ERR_NO := SQLCODE;
    ERR_TEXT := ERR_TEXT ||
    ' IN JDBC INTERFACE TEST FOR ORACLE ERP OPEN API..';
    ROLLBACK;
    RETURN;
    end JDBC_ERP_IF_ARRAY_TEST;
    procedure TEST(ABC IN NUMBER) IS
    begin
    insert into emp(empno) values (ABC);
    commit;
    end TEST;
    end JDBC_ERP_IF_TEST;
    ===============================================
    NO 3. Java Program
    ===============================================
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("JDBC_ERP_IF_TEST.NUM_ARRAY", getConnection());
    ARRAY array = new ARRAY(descriptor, getConnection(), arrs);
    cstmt = getConnection().prepareCall(LQueryFactory.getInstance().get("Meta/Basic/testJdbcErpArrayIf").getSql());
    cstmt.setArray(1, array);
    cstmt.registerOutParameter(2, Types.INTEGER);
    cstmt.registerOutParameter(3, Types.VARCHAR);
    ====================================================
    couldn't find this phase => JDBC_ERP_IF_TEST.NUM_ARRAY
    what can i do for this package and program? please help me..

    Something like this:
    create or replace type t_record as  object (
    id number,
    no number
    CREATE or replace type t_table AS TABLE OF t_record;
    set serveroutput on
    declare
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    begin
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /Untested!
    P;
    Edited by: bluefrog on Mar 5, 2010 5:08 PM

  • Someone please tell me how to get this stupid album artwork on my iPod!!!

    okay, i know several people have posted question after question about this problem and no one has yet to answer it fully. i have collected album artwork to the songs on my iTunes, checked that stupid show album artwork under "get info", and now i don't know what to do. i need to know how to send my collection of album art that i found on various internet sites from iTunes to my iPod. the purchased music has pictures therefore i know that the pictures have the ability to show up, i'm just lacking the one or two steps to be able to transfer my album art to the ipod so they will show up when the songs are played. someone please answer this because i'm not the only one. trust me, i've read all the topics on this and i still haven't found someone to tell me how to do it.
    thanks
    Windows   Windows XP  

    okay i've been doing some trial and error with the advice that you gave me and i finally got it down. i ended up unchecking the album artwork box and then deleting every song off the iPod. then i checked the box, loaded all the songs back on the iPod and it worked. THERE IS A SOLUTION MY FRIENDS! PROBLEM SOLVED
    thanks for you time...

  • I have a CD burner yet I cannot burn or copy on CD from my collection. When I click on File - burn to CD I get:"To burn to CD you require a CD writer -  Please advise how to burn a collection on a CD Thank you Diane

    Please advise how to burn a collection on a CD - When I click on File then burn to CD - I get:To burn CD you require a CD writer  yet I have one -  which I have used many times with another package.  Also where are the pictures that I have put into a collection stored?  I cannot find them.  I can display them so they have to be stored somewhere in a file or folder etc...I am retired and very new at using this Adobe photoshop edition 3.2  Thank you for your help I am desperate.

    Once the tracks are in your library, you can right-click and use the command Get Album Artwork.  This command will attempt to match your track(s) to the item in the iTunes Store, and get the cover art.
    If that command does not succeed, you will need a copy of the art in .JPG format, either by scanning your CD cover, or by getting it from the web.  Once you have the art, right-click the track, choose Get Info, go the Artwork tab and paste it in.

  • When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    Firstly, I should have typed speedtest.net previously.
    Now that's an interesting comment you make, out of interest do you have any purchased HD movies in your iTunes collection, if so, do they play on the Apple TV with your new tv.

  • How to put a collection into a Ref Cursor?

    Hi,
    I am trying to create a procedure (inside a package) which fills a collection and I need to fill a ref cursor (out parameter) with this collection. I can fill the collection but I how can I fill the ref cursor? I am receiving the message "PL/SQL: ORA-00902: invalid datatype" (Highlighted below as comments)
    I have a limitation: I am not allowed to create any kind of objects at the database schema level, so I have to create them inside the package. I'm writting it with SQL Tools 1.4, I'm also not allowed to do this in SQL+.
    This is the code of the package. The cursors' selects were simplified just because they are not the problem, but their structure is like follows below.
    CREATE OR REPLACE PACKAGE U3.PKG_TESTE AS
    TYPE REC_TYPE IS RECORD(
    COL1 VARCHAR2(50) ,
    COL2 VARCHAR2(100) ,
    COL3 VARCHAR2(20) ,
    COL4 VARCHAR2(30) ,
    COL5 VARCHAR2(100) ,
    COL6 VARCHAR2(50) ,
    COL7 NUMBER(3) ,
    COL8 VARCHAR2(30) ,
    COL9 VARCHAR2(16) ,
    COL10 VARCHAR2(50) ,
    COL11 NUMBER(4) ,
    COL12 VARCHAR2(40)
    TYPE REC_TYPE_LIST IS TABLE OF REC_TYPE
    INDEX BY BINARY_INTEGER;
    TYPE C_RESULTSET IS REF CURSOR;
    VAR_TAB_TESTE     REC_TYPE_LIST;
    PROCEDURE     Z_REC_INSTANCE
    pUSER_SYS_CODE VARCHAR2,
    pSYS_SEG_CODE VARCHAR2,
    pComplFiltro VARCHAR2,
    pCodInter NUMBER,
    cResultset out C_RESULTSET
    END PKG_TESTE ;
    CREATE OR REPLACE PACKAGE BODY U3.PKG_TESTE
    AS
    PROCEDURE Z_REC_INSTANCE
    pUSER_SYS_CODE varchar2,
    pSYS_SEG_CODE varchar2,
    pComplFiltro varchar2,
    pCodInter number
    AS
    cursor cur1 is
    select 'A' COL1, 'B' COL2, 'C' COL3, 'D' COL4, 'E' COL5,
    'F' COL6, 'G' COL7, 'H' COL8
    FROM DUAL;
    regCur1 cur1%rowtype;
    cursor cur2 is
    SELECT 'I' C1, 'J' C2, 'K' C3, 'L' C4
    FROM DUAL;
    regCur2 cur2%rowtype;
    varSQL varchar2(4000);
    varCOL10s varchar2(100);
    varFiltroAtrib varchar2(100);
    varCount number(10);
    BEGIN
    varCount := 1;
    open cur1;
    Loop
    fetch cur1 into regCur1;
    exit when cur1%notfound;
    open cur2;
    Loop
    fetch cur2 into regCur2;
    exit when cur2%notfound;
    VAR_TAB_TESTE(varCount).COL1 := regCur1.COL1;
    VAR_TAB_TESTE(varCount).COL2 := regCur1.COL2;
    VAR_TAB_TESTE(varCount).COL3 := regCur1.COL3;
    VAR_TAB_TESTE(varCount).COL4 := regCur1.COL4;
    VAR_TAB_TESTE(varCount).COL5 := regCur1.COL5;
    VAR_TAB_TESTE(varCount).COL6 := regCur1.COL6;
    VAR_TAB_TESTE(varCount).COL7 := regCur1.COL7;
    VAR_TAB_TESTE(varCount).COL8 := regCur1.COL8;
    VAR_TAB_TESTE(varCount).COL9 := regCur2.C1;
    VAR_TAB_TESTE(varCount).COL10 := regCur2.C2;
    VAR_TAB_TESTE(varCount).COL11 := regCur2.C3;
    VAR_TAB_TESTE(varCount).COL12 := regCur2.C4;
    varCount := varCount + 1;
    end Loop;
    end Loop;
    -- I'd like to do something like this:
    -- c_resultset := select * from var_tab_teste;
    -- but i don't know how to put the records of the type on the ref cursor,
    -- probably because I don't know how to select them
    -- pl/sql: ora-00902: invalid datatype
    for varCount in (select COL1 from table( CAST ( VAR_TAB_TESTE AS REC_TYPE_LIST ) ))
    loop
    dbms_output.put('WORKS');
    end loop;
    END Z_REC_INSTANCE;
    END PKG_TESTE;
    SHOW     ERR     PACKAGE          PKG_TESTE;
    SHOW     ERR     PACKAGE BODY     PKG_TESTE;
    SHOW     ERR     PROCEDURE     PKG_TESTE.Z_REC_INSTANCE;
    I'm using:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Thanks in advance.

    I don't have the exact version but in 9iOK I lied, I found a 9i instance ;-)
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    JServer Release 9.2.0.7.0 - Production
    SQL> CREATE TABLE table_name (column_name VARCHAR2 (30));
    Table created.
    SQL> INSERT INTO table_name VALUES ('value one');
    1 row created.
    SQL> INSERT INTO table_name VALUES ('value two');
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> CREATE OR REPLACE PACKAGE package_name
      2  AS
      3     TYPE collection_type_name IS TABLE OF table_name%ROWTYPE;
      4
      5     FUNCTION function_name
      6        RETURN collection_type_name PIPELINED;
      7  END package_name;
      8  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY package_name
      2  AS
      3     FUNCTION function_name
      4        RETURN collection_type_name PIPELINED
      5     IS
      6     BEGIN
      7        FOR record_name IN (SELECT column_name
      8                            FROM   table_name) LOOP
      9           PIPE ROW (record_name);
    10        END LOOP;
    11
    12        RETURN;
    13     END function_name;
    14  END package_name;
    15  /
    Package body created.
    SQL> VARIABLE variable_name REFCURSOR;
    SQL> BEGIN
      2     OPEN :variable_name FOR
      3        SELECT column_name
      4        FROM   TABLE (package_name.function_name);
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SQL> PRINT variable_name;
    COLUMN_NAME
    value one
    value two
    SQL>I recommend though that you test this thoroughly. There were bugs with this approach when it was newly introduced that prevented you from dropping the package.

  • How to use a collection in ADF

    Hi all,
    How to use the collection in ADF.
    Thanks in advance
    C.Karukkuvel

    hi John,
    Scenario:
    In my page,i have two tab pages .In that when the user enter the Location names in the first tab.when the user navigates to the next tab,we need to give the LOV having the Loactions based on the first tab values.
    when i try to use the view object it will list only the data's in the database.but i needs the locations entered in the current page also.pls guide me in this
    Thanks & Regards
    C.Karukkuvel

  • How to use this function call function 'REUSE_ALV_COMMENTARY_WRITE' in alv

    hi all
    thanks in advance
    how to use this function in alv programming
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    why use and what purpose use this function plz tell me details
    plz guide me
    thanks

    Hi
    see this exmaple code where i had inserted a LOGO by useing this FM
    *& Report  ZTEST_ALV_LOGO
    REPORT  ztest_alv_logo.
    TYPE-POOLS : slis.
    *ALV Formatting tables /structures
    DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: gt_events   TYPE slis_t_event.
    DATA: gs_layout   TYPE slis_layout_alv.
    DATA: gt_page     TYPE slis_t_listheader.
    DATA: gs_page     TYPE slis_listheader.
    DATA: v_repid     LIKE sy-repid.
    *ALV Formatting work area
    DATA: w_fieldcat TYPE slis_fieldcat_alv.
    DATA: w_events   TYPE slis_alv_event.
    DATA: gt_bsid TYPE TABLE OF bsid WITH HEADER LINE.
    INITIALIZATION.
      PERFORM build_events.
      PERFORM build_page_header.
    START-OF-SELECTION.
    *perform build_comment.     "top_of_page - in initialization at present
      SELECT * FROM bsid INTO TABLE gt_bsid UP TO 10 ROWS.
    *perform populate_for_fm using '1' '3' 'BUKRS' '8' 'GT_BSID' 'Whee'.
    *USING = Row, Column, Field name, display length, table name, heading
    *OR
      PERFORM build_fieldcat.
      gs_layout-zebra = 'X'.
    *top of page event does not work without I_callback_program
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program                = v_repid
          i_structure_name                  = 'BSID'
       i_background_id                   = 'ALV_BACKGROUND'
          i_grid_title                      = 'This is the grid title'
      I_GRID_SETTINGS                   =
          is_layout                         = gs_layout
          it_fieldcat                       = gt_fieldcat[]
          it_events                         = gt_events[]
        TABLES
          t_outtab                          = gt_bsid.
    Form..............:  populate_for_fm
    Description.......:  Populates fields for function module used in ALV
    FORM populate_for_fm USING p_row
                               p_col
                               p_fieldname
                               p_len
                               p_table
                               p_desc.
      w_fieldcat-row_pos      = p_row.          "Row Position
      w_fieldcat-col_pos      = p_col.          "Column Position
      w_fieldcat-fieldname    = p_fieldname.    "Field name
      w_fieldcat-outputlen    = p_len.          "Column Lenth
      w_fieldcat-tabname      = p_table.        "Table name
      w_fieldcat-reptext_ddic = p_desc.         "Field Description
      w_fieldcat-input        = '1'.
      APPEND w_fieldcat TO gt_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " populate_for_fm
    *&      Form  build_events
    FORM build_events.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = gt_events.
      READ TABLE gt_events
                 WITH KEY name =  slis_ev_user_command
                 INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_user_command TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
      READ TABLE gt_events
                 WITH KEY name =  slis_ev_top_of_page
                 INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_top_of_page TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
    ENDFORM.                    " build_events
    *&      Form  USER_COMMAND
    When user command is called it uses 2 parameters. The itab
    passed to the ALV is in whatever order it currently is on screen.
    Therefore, you can read table itab index rs_selfield-tabindex to get
    all data from the table. You can also check r_ucomm and code
    accordingly.
    FORM user_command USING  r_ucomm     LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      READ TABLE gt_bsid INDEX rs_selfield-tabindex.
    error checking etc.
      SET PARAMETER ID 'KUN' FIELD gt_bsid-kunnr.
      CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
    ENDFORM.                    "user_command
    *&      Form  top_of_page
    Your own company logo can go here if it has been saved (OAOR)
    If the logo is larger than the size of the headings in gt_page,
    the window will not show full logo and will have a scroll bar. Thus,
    it is a good idea to have a standard ALV header if you are going to
    use logos in your top of page.
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = gt_page
          i_logo             = 'ENJOYSAP_LOGO'.
    ENDFORM.                    "top_of_page
    *&      Form  build_fieldcat
    *Many and varied fields are available here. Have a look at documentation
    *for FM REUSE_ALV_LIST_DISPLAY and REUSE_ALV_FIELDCATALOG_MERGE
    FORM build_fieldcat.
      w_fieldcat-fieldname  = 'BUDAT'.
      w_fieldcat-seltext_m  = 'Dte pst'.
      w_fieldcat-ddictxt(1) = 'M'.
      w_fieldcat-edit = 'x'.
    Can change the position of fields if you do not want them in order
    of the DDIC or itab
    w_fieldcat-row_pos = '1'.
    w_fieldcat-col_pos = '10'.
      APPEND w_fieldcat TO gt_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " build_fieldcat
    *&      Form  build_page_header
          gt_page is used in top of page (ALV subroutine - NOT event)
          *H = Header, S = Selection, A = Action
    FORM build_page_header.
    For Headers, Key is not printed and is irrelevant. Will not cause
    a syntax error, but is not used.
      gs_page-typ  = 'H'.
      gs_page-info = 'Header 1'.
      APPEND gs_page TO gt_page.
      gs_page-typ  = 'H'.
      gs_page-info = 'Header 2'.
      APPEND gs_page TO gt_page.
    For Selections, the Key is printed (bold). It can be anything up to 20
    bytes. It gets printed in order of code here, not by key value.
      gs_page-typ  = 'S'.
      gs_page-key  = 'And the winner is:'.
      gs_page-info = 'Selection 1'.
      APPEND gs_page TO gt_page.
      gs_page-typ  = 'S'.
      gs_page-key  = 'Runner up:'.
      gs_page-info = 'Selection 2'.
      APPEND gs_page TO gt_page.
    For Action, Key is also irrelevant.
      gs_page-typ  = 'A'.
      gs_page-info = 'Action goes here'.
      APPEND gs_page TO gt_page.
    ENDFORM.                    " build_page_header

Maybe you are looking for