Please HELP me with this! Error 1046!

I can't understand what my problem is. When I check the errors his don't tell me everything. But when I run it, it says: 1046: it was not found or was not a compilation constant: house2.

import flash.events.MouseEvent;

import flash.display.Loader;

import flash.net.URLRequest;

import flash.events.Event;

var loadvar:Loader = new Loader();

home1 var = loadvar;

home1. Load (new URLRequest("img/home1.jpg"));

home1.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);

var house2 = loadvar;

home2. Load (new URLRequest("img/home2.jpg"));

home2.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);

function onComplete(e:Event):void

{

var img:Bitmap = (e.target.content) Bitmap;

IMG. Width = 100;

IMG. Height = 100;

};

thumb1. AddChild (home1);

Thumb2.addChild (home2);

But it works when I take our everything that has to do with home 2.

you assign the same charger to three different instance names loadvar, home1, home2.  and you have only one charger while you need two if you want to see home1.jpg and home.jpg simultaneously:

use:

import flash.events.MouseEvent;

import flash.display.Loader;

import flash.net.URLRequest;

import flash.events.Event;

var home1:Loader = new Loader();

home1. Load (new URLRequest("img/home1.jpg"));

home1.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);

var home2:Loader = new Loader();

home2. Load (new URLRequest("img/home2.jpg"));

home2.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);

function onComplete(e:Event):void

{

var img:Bitmap = (e.target.content) Bitmap;  It does nothing useful.

IMG. Width = 100;

IMG. Height = 100;

};

thumb1. AddChild (home1);

Thumb2.addChild (home2);

both will be charge now, but you won't see them both because they are positioned on top of the other.  That is to say, compensate for one of them.

Tags: Adobe Animate

Similar Questions

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • help me with this error code 80070005 Code...

    help me with this error code 80070005 Code...
    my windows is not updated for a few days...
    Please help me...

    You don't have to know which operating system you use, this discussion is for Windows XP, etc. of Vista and Windows 7.

    Error message when you use Microsoft Update or Windows Update Web sites to install updates on Windows 2000, Windows XP and Windows Server 2003: 0 x 80070005
    http://support.Microsoft.com/kb/968003/

    If you are using Vista, then the denied access is handled differently-

    Error code 0 x 80070005 is also described as ACCESS DENIED (you may not to install updates.

    Please check that you are logged into an account with administrative privileges.

    Please follow these instructions if you encounter this error code during checking or install updates via Windows Udpate.  What follows applies only to Windows Vista.

    1. Download AccessChk (Sysinternals).  This tool allows you to assess the level of access of some users or groups of resources, including files, directories, registry keys, global objects and Windows services.  Here is the link to download the tool: http://technet.microsoft.com/en-us/sysinternals/bb664922.aspx

    2. save the zip on your desktop and extract the file:
    -Right-click on the file and select extract all...
    -Click Next when prompted for the Destination.

    Therefore, you should see a folder called AccessChk on your desktop.

    3. open the folder AccessChk

    4 press and hold the shift key and right-click in the window.  Select "open here command prompt.

    5. a command prompt window should open a similar message:
    C:\Users\\Desktop\accesschk >

    6. type the following command and press ENTER:
    "" AccessChk.exe "nt service TrustedInstaller" s - n k ' hklm\software\Microsoft\Windows\CurrentVersion\Component Based Servicing "> accesskchk.txt
    Tip: You should be able to copy and paste the command into the command prompt.

    7. close the command prompt window.  Open the Accesschk folder on your desktop (if it has been closed).

    8. double-click on Accesschk.txt (text file), it should open Notepad.

    If this is insufficient,

    1 if please download the subinacl.msi from the following link and save the patch to installation on the desktop:
     
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=e8ba3e56-d8fe-4A91-93Cf-ed6985e3927b&displaylang=en#AffinityDownloads
    SubInACL (SubInACL.exe)
     
    2. go to your desktop and double-click on the downloaded file.
    3. Please select the C:\Windows\System32 folder as the Destination folder during installation. Later, we will use this tool to reset the permissions on the current computer settings.
    4. click on the button 'Start' in the 'Search' bar type: "Notepad" (without the quotes) and press ENTER.
    5. copy the following commands, and then paste them into the opened Notepad window:
     
    off @echo
     
    Subinacl /subkeyreg HKEY_LOCAL_MACHINE/Grant = administrators = f
    Subinacl /subkeyreg HKEY_CURRENT_USER/Grant = administrators = f
    Subinacl /subkeyreg HKEY_CLASSES_ROOT/Grant = administrators = f
    Subinacl % lecteur_systeme % /subdirectories / Grant = administrators = f
    Subinacl /subkeyreg HKEY_LOCAL_MACHINE/Grant = system = f
    Subinacl /subkeyreg HKEY_CURRENT_USER/Grant = system = f
    Subinacl /subkeyreg HKEY_CLASSES_ROOT/Grant = system = f
    Subinacl % lecteur_systeme % /subdirectories / Grant = system = f
     
    @Echo =========================
    Completed @Echo.
    @Echo =========================
    @pause
     
    6. After you paste the above commands, please close the Notepad window. Choose "Save" when you are prompted to save the file. Type "reset.bat" as the file name and choose "Desktop" in the Panel on the left as the save location.

    7. refer to the desktop and right click the reset.bat file, then choose "Run as Administrator".

    8. you will see a window of type BACK treatment.
     
    NOTE: It may take several minutes, please be patient. When it is finished, you will be prompted with the message: "finished, press any key to continue."

    Note: On some driver update installation procedure, we also received this error code, please redirect this kind of case to the Team System Vista, because it can be considered for structure of third-party programs.

    Look for updates after that.

    Hope this information is useful.

    This problem may be caused by third-party security programs such as firewalls and antivirus software. You can disable or remove to check the issue.

    From: Microsoft Answers Support Engineer

    TaurArian [MVP] 2005-2010 - Update Services

  • WindowsUpdate_80246007 - cannot install Service Pack 2 for Vista. Can someone help me with this error message? What di I do to solve it?

    WindowsUpdate_80246007 - cannot install Service Pack 2 for Vista. Can someone help me with this error message? What di I do to solve it?

    WindowsUpdate_80246007 - cannot install Service Pack 2 for Vista. Can someone help me with this error message? What di I do to solve it?

    2 forums: you can go:

    1 Windows Vista IT Pro forum, section of Windows Vista service packs:
    Section of Windows Vista service packs:

    http://social.technet.Microsoft.com/forums/en/itprovistasp/threads

    2. Windows Update section:
    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Help me with this error report... :(

    This is my request


    SELECT VENDOR_ID, $VENDOR_NAME, CREATION_DATE AP_SUPPLIERS WHERE VENDOR_ID BETWEEN: P_FROM AND: P_TO

    & P_WHERE ORDER BY VENDOR_ID


    & P_WHERE EAST LEXICALE parameter that will b called trigger report parameter...

    function boolean return AfterPForm is

    Start

    IF (: P_FROM IS NULL AND: P_TO IS NULL) THEN

    : P_WHERE: =' ';

    ON THE OTHER

    : P_WHERE: =' WHERE BETWEEN VENDOR_ID: P_FROM AND: P_TO';

    END IF;

    return (true);

    end;

    the report is getting filled with success, but when I check the print review I get the error message: error ORA-00933...

    Please help me with this,

    _________________________________________________________________________________________________

    Vinay Thakur

    [email protected]

    Use:

    SELECT VENDOR_ID, $VENDOR_NAME, CREATION_DATE

    OF AP_SUPPLIERS

    & P_WHERE

    ORDER BY VENDOR_ID

    and:

    function boolean return AfterPForm is

    Start

    IF (: P_FROM IS NULL OR : P_TO IS NULL) THEN

    : P_WHERE: = ";

    ON THE OTHER

    : P_WHERE: = ' WHERE BETWEEN VENDOR_ID: P_FROM AND: P_TO';

    END IF;

    return (true);

    end;

    Kind regards

    Zlatko

  • The address bar where I can type in the Web addresses does not appear on my Mozilla, please help me with this... How to activate it?

    The address bar where I can type in the Web addresses does not appear on my Mozilla, please help me with this... How to activate it?

    Hi kdwis,

    Going to try view > toolbars and activation of the Bar of Navigation and in the bookmarks toolbar.

    Hope this helps!

  • Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Why are publish you again? You must first answer the question I ask in your original thread.

  • BlackBerry smartphones please help me with this indicator on my screen... it has reduced the quality of the voice

    Please help me with the rectangular symbol on the top next to the speaker symbol. It seems that I turned on an option by mistake, and whenever I've make or receive a call, this symbol appears. This was not the case previously.

    For this reason, my voice call quality has declined considerably. Please help quickly.

    Thank you

    itsmits

    Of course, he was told here in the forums of many times.

    It's the Audio Boost indicator call.

    To change, press your green numbering > Menu key > Enhanced Audio Boost.

  • They help me with this error March Eclipse + Tomcat 8 + JSF + PrimeFaces OmniFaces?

    Hello friends of the forum!

    I am a JSF tutorial, and when generating a coming sell order page, I get the following error in Tomcat:

    There are 28, 2015 start 13:48:19 org.apache.tomcat.util.digester.SetPropertiesRule

    WARNING: [SetPropertiesRule] {Server/Service/engine/host/context} set the property 'source' 'org.eclipse.jst.jee.server:PrimeFacesVenta6' option did not find a corresponding property.

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: Server Version: Apache Tomcat/8.0.24

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: Server built: July 1, 2015 20:19:55 UTC

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: Number of server: 8.0.24.0

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: Name of operating system: Windows Server 2008 R2

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: OS Version: 6.1

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: Architecture: x 86

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: Home of Java: C:\Java-JRE-32

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: JVM Version: 1.7.0_72 - b14

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: JVM vendor: Oracle Corporation

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: CATALINA_BASE: E:\Proyectos\OpenXava\openxava-5.3\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: CATALINA_HOME: C:\Tomcat

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: command line argument:-Dcatalina.base=E:\Proyectos\OpenXava\openxava-5.3\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: command line argument:-Dcatalina.home = C:\Tomcat

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: command line argument:-Dwtp.deploy=E:\Proyectos\OpenXava\openxava-5.3\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: :-Djava.endorsed.dirs=C:\Tomcat\endorsed command line argument

    There are 28, 2015 connect 13:48:19 org.apache.catalina.startup.VersionLoggerListener

    INFO: command line argument:-Dfile.encoding = Cp1252

    There are 28, 2015 13:48:19 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

    NEWS: APR based Apache Tomcat Native library that allows optimal performance in production environments was not found on the java.library.path: C:\Java-JRE-32\bin. C:\Windows\Sun\Java\bin; C:\Windows\System32; C:\Windows; C:/Java-JRE-32/bin/client; C:/Java / JRE / 32/location; C:/Java-JRE-32/lib/i386; C:\Program Files (x 86) \Common Files\Crystal Decisions\2.0\bin\NOTES\; C:\Program Files (x 86) \Common Files\Crystal Decisions\2.0\bin\NOTES\DATA\; C:\Program Files\ibm\gsk8\lib64; C:\Program Files\ibm\gsk8\bin; C:\Informix-SDK-410\bin; C:\Windows\System32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\system32\WindowsPowerShell\v1.0\; C:\informix\bin; C:\jrex64\bin; C:\jdkx64\bin; C:\Program Files (x86)\MySQL\Connector.J 5.1\;) C:\Program Files (x 86) \ibm\gsk7\bin; C:\Program Files (x 86) \ibm\gsk7\lib; C:\Gradle\bin; C:\JDBC-Informix\lib; C:\Users\gechenique\Downloads\xBaseJ\bin; C:\Program Files (x 86) \Common Files\Bosch\VideoSDK; C:\Eclipse-Luna;.

    There are 28, 2015 init org.apache.coyote.AbstractProtocol 13:48:19

    INFO: Initializing ProtocolHandler ['http-nio-8080"]

    There are 28, 2015 13:48:19 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

    INFO: Using a switch shared for read/write to servlet

    There are 28, 2015 init org.apache.coyote.AbstractProtocol 13:48:19

    INFO: Initializing ProtocolHandler ["ajp-nio-8009"]

    There are 28, 2015 13:48:19 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

    INFO: Using a switch shared for read/write to servlet

    There are 28, 2015 13:48:19 org.apache.catalina.startup.Catalina load

    INFO: Initializing processed in ms 780

    There are 28, 2015 13:48:19 org.apache.catalina.core.StandardService startInternal

    INFO: Starting service Catalina

    There are 28, 2015 13:48:19 org.apache.catalina.core.StandardEngine startInternal

    INFO: Starting the Servlet engine: Apache Tomcat/8.0.24

    There are 28, 2015 13:48:20 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom

    INFO: Creating instance of SecureRandom for the generation of using [SHA1PRNG] session ID a [121] milliseconds.

    There are 28, 2015 13:48:22 org.apache.jasper.servlet.TldScanner scanJars

    INFO: At least one POT has been analyzed for TLDS still did not contain any TLDs. activate record debugging for this logger for a list complete pots that were analysed but found no TLD in their. Skip the useless jars when scanning can improve boot time and JSP compilation time.

    There are 28, 2015 13:48:22 org.omnifaces.ApplicationInitializer logOmniFacesVersion

    INFO: Using version 2.1 OmniFaces

    There are 28, 2015 13:48:22 com.sun.faces.config.ConfigureListener contextInitialized

    INFO: initializing Mojarra 2.2.9 (-SHOT 20141218-0939 https://svn.java.net/svn/mojarra~svn/tags/2.2.9@14083) to the context ' / PrimeFacesVenta6'

    There are 28, 2015 createInstance com.sun.faces.spi.InjectionProviderFactory 13:48:23

    INFO: JSF1048: PreDestroy/PostConstruct annotation present.  Servlet methods marked with these annotations have tell processed annotations.

    There are 28, 2015 13:48:23 com.sun.faces.config.ConfigureListener contextInitialized

    SEVERE: Critical error during deployment:

    java.lang.ExceptionInInitializerError

    to org.omnifaces.application.OmniApplication. < init > (OmniApplication.java:69)

    at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89)

    at org.omnifaces.application.OmniApplicationFactory.getApplication(OmniApplicationFactory.java:54)

    at com.sun.faces.application.InjectionApplicationFactory.getApplication (unknown Source)

    at com.sun.faces.config.InitFacesContext.getApplication (unknown Source)

    to com.sun.faces.lifecycle.ClientWindowFactoryImpl. < init >(Unknown Source)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (unknown Source)

    the impossible (unknown Source)

    to java.lang.Class.newInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplementationInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getFactory (unknown Source)

    at javax.faces.FactoryFinder.getFactory (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.process (unknown Source)

    at com.sun.faces.config.ConfigManager.initialize (unknown Source)

    at com.sun.faces.config.ConfigureListener.contextInitialized (unknown Source)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1408)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1398)

    at java.util.concurrent.FutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    Caused by: java.lang.IllegalStateException: CDI API is not available in this environment.

    to org.omnifaces.config.BeanManager. < init > (BeanManager.java:88)

    to org.omnifaces.config.BeanManager. < clinit > (BeanManager.java:49)

    ... 28 more

    Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.spi.BeanManager

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1313)

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1164)

    at java.lang.Class.forName0 (Native Method)

    at java.lang.Class.forName (unknown Source)

    to org.omnifaces.config.BeanManager. < init > (BeanManager.java:82)

    ... more than 29

    There are 28, 2015 13:48:23 org.apache.catalina.core.StandardContext listenerStart

    GRAVE: Context Exception initialization instance of listener class com.sun.faces.config.ConfigureListener event sending

    java.lang.RuntimeException: java.lang.ExceptionInInitializerError

    at com.sun.faces.config.ConfigureListener.contextInitialized (unknown Source)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1408)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1398)

    at java.util.concurrent.FutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    Caused by: java.lang.ExceptionInInitializerError

    to org.omnifaces.application.OmniApplication. < init > (OmniApplication.java:69)

    at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89)

    at org.omnifaces.application.OmniApplicationFactory.getApplication(OmniApplicationFactory.java:54)

    at com.sun.faces.application.InjectionApplicationFactory.getApplication (unknown Source)

    at com.sun.faces.config.InitFacesContext.getApplication (unknown Source)

    to com.sun.faces.lifecycle.ClientWindowFactoryImpl. < init >(Unknown Source)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (unknown Source)

    the impossible (unknown Source)

    to java.lang.Class.newInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplementationInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getFactory (unknown Source)

    at javax.faces.FactoryFinder.getFactory (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.process (unknown Source)

    at com.sun.faces.config.ConfigManager.initialize (unknown Source)

    ... more than 10

    Caused by: java.lang.IllegalStateException: CDI API is not available in this environment.

    to org.omnifaces.config.BeanManager. < init > (BeanManager.java:88)

    to org.omnifaces.config.BeanManager. < clinit > (BeanManager.java:49)

    ... 28 more

    Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.spi.BeanManager

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1313)

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1164)

    at java.lang.Class.forName0 (Native Method)

    at java.lang.Class.forName (unknown Source)

    to org.omnifaces.config.BeanManager. < init > (BeanManager.java:82)

    ... more than 29

    There are 28, 2015 13:48:23 org.apache.catalina.core.StandardContext listenerStart

    GRAVE: Context Exception initialization instance of listener class org.omnifaces.ApplicationListener event sending

    java.lang.NoClassDefFoundError: has not been initialized class org.omnifaces.config.BeanManager

    at org.omnifaces.ApplicationListener.checkCDIAvailable(ApplicationListener.java:63)

    at org.omnifaces.ApplicationListener.contextInitialized(ApplicationListener.java:55)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1408)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1398)

    at java.util.concurrent.FutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    There are 28, 2015 13:48:23 com.sun.faces.config.ConfigureListener contextInitialized

    INFO: initializing Mojarra 2.2.9 (-SHOT 20141218-0939 https://svn.java.net/svn/mojarra~svn/tags/2.2.9@14083) to the context ' / PrimeFacesVenta6'

    There are 28, 2015 createInstance com.sun.faces.spi.InjectionProviderFactory 13:48:23

    INFO: JSF1048: PreDestroy/PostConstruct annotation present.  Servlet methods marked with these annotations have tell processed annotations.

    There are 28, 2015 13:48:23 com.sun.faces.config.ConfigureListener contextInitialized

    SEVERE: Critical error during deployment:

    java.lang.NoClassDefFoundError: has not been initialized class org.omnifaces.config.BeanManager

    to org.omnifaces.application.OmniApplication. < init > (OmniApplication.java:69)

    at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89)

    at org.omnifaces.application.OmniApplicationFactory.getApplication(OmniApplicationFactory.java:54)

    at com.sun.faces.application.InjectionApplicationFactory.getApplication (unknown Source)

    at com.sun.faces.config.InitFacesContext.getApplication (unknown Source)

    to com.sun.faces.lifecycle.ClientWindowFactoryImpl. < init >(Unknown Source)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (unknown Source)

    the impossible (unknown Source)

    to java.lang.Class.newInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplementationInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getFactory (unknown Source)

    at javax.faces.FactoryFinder.getFactory (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.process (unknown Source)

    at com.sun.faces.config.ConfigManager.initialize (unknown Source)

    at com.sun.faces.config.ConfigureListener.contextInitialized (unknown Source)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1408)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1398)

    at java.util.concurrent.FutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    There are 28, 2015 13:48:23 org.apache.catalina.core.StandardContext listenerStart

    GRAVE: Context Exception initialization instance of listener class com.sun.faces.config.ConfigureListener event sending

    java.lang.RuntimeException: java.lang.NoClassDefFoundError: has not been initialized class org.omnifaces.config.BeanManager

    at com.sun.faces.config.ConfigureListener.contextInitialized (unknown Source)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1408)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1398)

    at java.util.concurrent.FutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    Caused by: java.lang.NoClassDefFoundError: has not been initialized class org.omnifaces.config.BeanManager

    to org.omnifaces.application.OmniApplication. < init > (OmniApplication.java:69)

    at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89)

    at org.omnifaces.application.OmniApplicationFactory.getApplication(OmniApplicationFactory.java:54)

    at com.sun.faces.application.InjectionApplicationFactory.getApplication (unknown Source)

    at com.sun.faces.config.InitFacesContext.getApplication (unknown Source)

    to com.sun.faces.lifecycle.ClientWindowFactoryImpl. < init >(Unknown Source)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (unknown Source)

    the impossible (unknown Source)

    to java.lang.Class.newInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl (unknown Source)

    at javax.faces.FactoryFinderInstance.getImplementationInstance (unknown Source)

    at javax.faces.FactoryFinderInstance.getFactory (unknown Source)

    at javax.faces.FactoryFinder.getFactory (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist (unknown Source)

    at com.sun.faces.config.processor.FactoryConfigProcessor.process (unknown Source)

    at com.sun.faces.config.ConfigManager.initialize (unknown Source)

    ... more than 10

    There are 28, 2015 13:48:23 org.apache.catalina.core.StandardContext startInternal

    GRAVE: One or more listeners could start. You will find all the details in the appropriate container log file

    There are 28, 2015 13:48:23 org.apache.catalina.core.StandardContext startInternal

    SEVERE: Context [/ PrimeFacesVenta6] startup failed due to previous errors

    There are 28, 2015 13:48:23 org.apache.catalina.core.StandardContext listenerStop

    GRAVE: Sending Exception context destroyed instance of listener class com.sun.faces.config.ConfigureListener event

    java.lang.NoClassDefFoundError: has not been initialized class org.omnifaces.config.BeanManager

    to org.omnifaces.application.OmniApplication. < init > (OmniApplication.java:69)

    at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89)

    at org.omnifaces.application.OmniApplicationFactory.getApplication(OmniApplicationFactory.java:54)

    at com.sun.faces.application.InjectionApplicationFactory.getApplication (unknown Source)

    at com.sun.faces.config.InitFacesContext.getApplication (unknown Source)

    at com.sun.faces.config.ConfigureListener.contextDestroyed (unknown Source)

    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4774)

    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5390)

    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1408)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1398)

    at java.util.concurrent.FutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    There are 28, 2015 getFactory javax.faces.FactoryFinderInstance 13:48:23

    SEVERUS: Application has not been properly initialized at startup, could not find factory: javax.faces.application.ApplicationFactory. Try to find relief.

    There are 28, 2015 13:48:23 com.sun.faces.config.ConfigureListener contextDestroyed

    SEVERE: Unexpected Exception When you try to tear down the length of the Mojarra

    java.lang.IllegalStateException: could not find relief for javax.faces.application.ApplicationFactory of the factory.

    at javax.faces.FactoryFinderInstance.getFactory (unknown Source)

    at javax.faces.FactoryFinder.getFactory (unknown Source)

    at com.sun.faces.config.InitFacesContext.getApplication (unknown Source)

    at com.sun.faces.config.ConfigureListener.contextDestroyed (unknown Source)

    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4776)

    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5390)

    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1408)

    to org.apache.catalina.core.ContainerBase$ StartChild.call (ContainerBase.java:1398)

    at java.util.concurrent.FutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    There are 28, 2015 start 13:48:23 org.apache.coyote.AbstractProtocol

    INFO: From ProtocolHandler ['http-nio-8080"]

    There are 28, 2015 start 13:48:23 org.apache.coyote.AbstractProtocol

    INFO: From ProtocolHandler ["ajp-nio-8009"]

    There are 28, 2015 start 13:48:23 org.apache.catalina.startup.Catalina

    INFO: 4262 SP server startup

    These errors were installed after Omnifaces to send an object to a bean.

    The page code that generates the error is:

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN".

              " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.DTD "> "

    " < html xmlns =" http://www.w3.org/1999/xhtml "

    ' xmlns:ui = ' http://xmlns.JCP.org/JSF/Facelets "" "

    ' xmlns:f = ' http://xmlns.JCP.org/JSF/core "" "

    ' xmlns:h = ' http://xmlns.JCP.org/JSF/HTML "" "

    ' xmlns:p = ' http://PrimeFaces.org/UI ">

    < h:head >

    by default, < title > < ui:insert name = "title" > title < / ui:insert > < / title >

    < / h:head >

    < h:body >

    "< ui:composition template="./WEB-INF/templates/plantilla.xhtml ">

    < ui: set name = "content" >

    < f: event type = listener = "#{personaBean.listar ('F')"preRenderView"}" / > "

    < f: event type = listener = "#{productoBean.listar ('F')"preRenderView"}" / > "

    < h:form >

    < p:outputLabel value = "Persona" >

    < / p:outputLabel >

    < p:selectOneMenu value = "#{ventaBean.venta.persona}" converter = "omnifaces. SelectItemsConverter">

    < f: selectItem noSelectionOption = 'true' itemLabel = "select' Valeurelement = ' #{null}" / >

    "< f: selectItems value =" #{personaBean.lstPersonas} "var = 'by' itemLabel =" #{per.nombre} "Valeurelement =" #{by} "/ >

    < / p:selectOneMenu >

    < p:outputLabel value = "Producto" >

    < / p:outputLabel >

    < p:selectOneMenu value = "#{ventaBean.producto}" converter = "omnifaces. SelectItemsConverter">

    < f: selectItem noSelectionOption = 'true' itemLabel = "select' Valeurelement = ' #{null}" / >

    "< f: selectItems value =" #{productoBean.lstProductos} "var = itemLabel =" #{pro.nombre 'pro'} ' Valeurelement = ' #{pro} "/ >

    < / p:selectOneMenu >

    < p:outputLabel value = "Price" >

    < / p:outputLabel >

    < p:inputText value = "#{ventaBean.cantidad}" / > "

    < p:commandButton value = "Add" actionListener = "#{ventaBean.agregar ()}" updated = "detail" / > ""

    < p:dataTable id = value = "#{ventaBean.lista"detail"} ' var 'det' = >"

    < p:column headerText = "Product number" >

    #{det.producto.nombre}

    < / p:column >

    < p:column headerText = "Price" >

    #{det.producto.precio}

    < / p:column >

    < p:column headerText = "Amount" >

    #{det.cantidad}

    < / p:column >

    < / p:dataTable >

    < p:commandButton value = "Clerk Venta" / >

    < / h:form >

    < / ui: define >

    < / ui:composition >

    < / h:body >

    < / html >

    El Código del bean es el siguiente:

    package com.mitocode.bean;

    import java.util.ArrayList;

    import java.util.List;

    Import javax.faces.bean.ManagedBean;

    Import javax.faces.view.ViewScoped;

    import com.mitocode.model.DetalleVenta;

    import com.mitocode.model.Producto;

    import com.mitocode.model.Venta;

    @ManagedBean

    @ViewScoped

    public class VentaBean {}

    venta of Venta private = new Venta();

    private product product = new Producto();

    private int amount;

    private list < DetalleVenta > lista = new ArrayList < DetalleVenta > ();

    public list < DetalleVenta > getLista() {}

    return the list;

    }

    {} public void setLista (list list < DetalleVenta >)

    This.Lista = list;

    }

    public int getCantidad() {}

    to return the amount;

    }

    {} public void setCantidad (int amount)

    This.Cantidad = amount;

    }

    public getProducto() {} Producto

    return of product;

    }

    {} public void setProducto (product product)

    This.producto = product;

    }

    public getVenta() {} Venta

    return her venta;

    }

    {} public void setVenta (Venta venta)

    This.Venta = venta;

    }

    public void agregar() {}

    Det DetalleVenta = new DetalleVenta();

    det.setCantidad (amount);

    det.setProducto (product);

    This.Lista.Add (Det);

    }

    }

    I googled as could be, but is no solution to my problem.

    Maven already added to the CDI module, as recommended by StackOverflow, which makes the page is rendered, but when any button is active, is displayed a 404 error page.

    Maven is also added to the module "welder".

    What strikes me is that in the tutorial of the CDI and modules 'welder' are not added.

    My work environment is the following:

    Eclipse of March (4.5)

    Mojarra 2.2.9

    5.2 PrimeFaces

    OmniFaces 2.1

    Tomcat 8

    I hope you can help me with this.

    Thank you much in advance.

    Message editado por: gechenique

    Hello

    As the error seems to occur in OmniFaces I recommend the rattling.

    Thank you!

  • Please help me with this vi

    Hello friends I m new learner

    Please help me

    I have this program Please tell me how to send readings and data in table vi and wwhen I press the button log file it should save the file one by one? and

    Please tell me the logic also when I press next, he must go to the next page and back then return to the page and pressing out he must go out and finally next page button should disappear...

    someone help me please

    Thanks in advance

    concerning

    Naomie

    Please use complete words when entering posts on the forum and not 'text speak '.  A plea for words full

    A problem I see is that you have lots of tunnels in the structure of your case where you do not connect the data in all cases.  You end up with the tunnels for "Use default if unwired", feeding the default data in your shift register which later get used.  Probably not what you want.

  • Please help me with IIS error

    When my client connects to the Web site, he blow them out and im getting this error


    Error: File report_vehicleHistory.asp an unexpected error.
    A recoverable error (C0000005) occurred in an external object.
    The script cannot continue to run...





    Failed application w3wp.exe, version 7.0.6001.18000, time stamp 0 x 47919413,
    module ObserverDLL_800181.dll, version 8.0.181.0, time stamp 0x4a0ca247, failed
    exception 0xc0000005, offset 0x00f4def6, process 0xe4c id error, code 0x01ce7277e3effc81 application start time.

    Help, please
    Morne

    Ask in the forum IIS:

    http://forums.IIS.NET/

  • Please help me with this &#60; I have a virus, a bug, malware or something...

    There is something called Firewall Builder windows (activate ultimate protection then asks a credit card on an anonymous line) that keeps popping up and saying I have all sorts of things wrong... but I can't find a way to remove it, it blocks my anti virus and the scanner tools Microsoft apparently can't find it I need help with this... He also does something to my to my system restore, I can't go back today... This bug also always flashes something on torrent link detected everytime I try to download something from Microsoft... it's very frustrating please help.

    sincerely of Tanya Willis

    http://www.bleepingcomputer.com/virus-removal/remove-Windows-Firewall-constructor

  • Can someone help me with this error?

    http://prntscr.com/5uou9e

    Get this error when trying to use a model of the intro. Help?

    It seems that the expression was written in the German version of After Effects.

    You can either change your language AE in German, or you need to replace the term "Einstellungen as Schieberegler" with "Cursor" in all your expressions.

  • Please help me with this request - I'm trying with Dense rank

    version 10g

    I got a quote for an account. If the same quote is received under different account I should mark the old account has received as being deleted.
    Please help me.
    /* Formatted on 2010/06/28 14:13 (Formatter Plus v4.8.8) */
    WITH temp AS
         (SELECT '1-11TWQL' quote_id, 'COPS' ACCOUNT, 'Ordered' status,
                 TO_DATE ('12/23/2009 3:37:54',
                          'mm/dd/yyyy hh:mi:ss PM'
                         ) captured_date
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'RFS',
                 TO_DATE ('12/23/2009 3:37:50', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Rejected',
                 TO_DATE ('12/23/2009 3:37:52', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:51', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Ordered',
                 TO_DATE ('12/23/2009 3:04:24', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'RFS',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Rejected',
                 TO_DATE ('12/23/2009 3:04:22', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Validated',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL)
    SELECT   quote_id, ACCOUNT, status, captured_date,
             DENSE_RANK () OVER (PARTITION BY quote_id ORDER BY quote_id,
              ACCOUNT) rn
    --         ,CASE DENSE_RANK () OVER (PARTITION BY quote_id ORDER BY quote_id,
    --              ACCOUNT)
    --            WHEN 1
    --               THEN 'Y'
    --            ELSE 'N'
    --         END deleted_flag
        FROM temp
    ORDER BY quote_id, captured_date;
    power required
    WITH temp AS
         (SELECT '1-11TWQL' quote_id, 'COPS' ACCOUNT, 'Ordered' status,
                 TO_DATE ('12/23/2009 3:37:54',
                          'mm/dd/yyyy hh:mi:ss PM'
                         ) captured_date, 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'RFS',
                 TO_DATE ('12/23/2009 3:37:50', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Rejected',
                 TO_DATE ('12/23/2009 3:37:52', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:51', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Ordered',
                 TO_DATE ('12/23/2009 3:04:24', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'RFS',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Rejected',
                 TO_DATE ('12/23/2009 3:04:22', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Validated',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL)
    SELECT   quote_id, ACCOUNT, status, captured_date, deleted_flag
        FROM temp
    ORDER BY quote_id, captured_date;

    This gives a shot:

    SELECT quote_id
         , account
         , status
         , captured_date
         , CASE
                WHEN account_cnt  = 1
                  OR account     != first_account
                THEN 'N'
                ELSE 'Y'
           END                                     AS deleted_flag
    FROM
    (
      SELECT quote_id
           , account
           , status
           , captured_date
           , FIRST_VALUE(account) OVER (PARTITION BY quote_id ORDER BY captured_date) AS first_account
           , COUNT(DISTINCT account) OVER (PARTITION BY quote_id) AS account_cnt
      FROM   temp
    )
    ORDER BY quote_id, captured_date;
    
  • Please help me with this SQL query

    I'm practicing of SQL queries and met one involving the extraction of data from 3 different tables.

    The three paintings are as below

    < pre >
    Country
    Location_id country
    LOC1 Spain
    loc2 England
    LOC3 Spain
    loc4 USA
    loc5 Italy
    loc6 USA
    loc7 USA
    < / pre >
    < pre >


    User
    user_id location_id
    loc1 U1
    loc1 U2
    loc2 U3
    loc2 U4
    loc1 U5
    U6 loc3
    < / pre >
    < pre >


    Publish
    user_id post_id
    P1 u1
    P2 u1
    U2 P3
    P4 u3
    P5 u1
    P6 u2
    < / pre >

    I am trying to write a SQL query - for each country of the users, showing the average number of positions

    I understand the logic behind all this that we must first consolidate all locations, and then the users in one country and then find the way to their positions.
    But, I'm having a difficulty to this format SQL. Could someone help me please with this request.

    Thank you.

    Select
    Country.Country,
    Count (*) Totalpostspercountry,
    Count (distinct post.user_id) Totaldistincuserspercountry,
    count (*) / count (distinct post.user_id) Avgpostsperuserbycountry
    Of
    countries, have, post
    where country.location_id = muser.location_id
    and muser.user_id = post.user_id
    Country.country group

    The output is like this for your sample data - hope that's what you're looking for :)

    COUNTRY, TOTALPOSTSPERCOUNTRY, TOTALDISTINCUSERSPERCOUNTRY, AVGPOSTSPERUSERBYCOUNTRY
    In England, 1, 1, 1.
    Spain, 5, 2, 2.5.

  • Please help me with this question...

    Hello world

    Sorry to ask the same question that has been published several times in this forum.

    I have the following scenario...
    Database name: database1
    
    schema names: schema1
                  schema2
                  schema3
                  schema4
                  schema5 
                  schema6
                  schema7
    
    workspace is with: schema1
                       schema2
    
    
    1. can i create 1 application that need to access tables in both schema1 and schema2 ?
    comments: I think we have to choose "parsing schema" when i am creating an application.
              if i choose the parsing schema as "schema1". 
    2.how can i create a "form on a table" or some other wizard based forms which is in schema2?
    3.what priviliges do i need to create "form on a table" or some other wizard based forms which is in schema2?
    
    4.As my workspace is with schema1 and schema2. How can i create "forms" on tables which are in
     schema3? do i need to "create a view of table in schema3"  in schema1?
    
    
    
    All the above question will raise if i have to create forms or reports with "wizards". Is this stmt correct?
    
    I mean if i create a form "manually" all i need to look whether i have insert,update and delete priv on
    that object? is it correct?
    I think that this question has been answered several times.sorry for the repost.

    Thank you

    It is not necessary to say "Please help me" as aid happens almost always. Maybe sometimes you need to get back your question after a while. However, back to your question. I can tell you how to solve this problem:

    grant select, insert, update, delete on all the tables in the schema of analysis
    grant select on all the analysis schema views
    grant to run on all procedures and packages to the scheme of analysis
    creation of synonyms in the scheme of analysis for all tables, views, sequences, etc.

    You can do all this programmatically in a loop instead of write for each object separatelly.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

Maybe you are looking for