Can I try EJB's in JDev 9.0.3.4?

I'm creating Content Server(provider) using JDeveloper which I can use to deploy EJB, I suppose! Do I need Weblogic or any kind of application server or JDeveloper base install comes with any sort of container I can test on the EJB. Or, there is a JDev extension I need to add in the library to test content servers?

JDeveloper comes with a built in J2EE container - OC4J - which is the same one you get inside Oracle Application Server. You don't need anything else.
The 9.0.3 reviewer guide can walk you through the steps:
http://otn.oracle.com/products/jdev/htdocs/JDev903_ReviewersGuide.zip
Watch the EJB demo at:
http://otn.oracle.com/products/jdev/viewlets/viewlet-archive0903.html

Similar Messages

  • Can't access EJB deployed on remote OC4J - what am I doing wrong?

    I'm unable to access an EJB deployed on a remote OC4J instance (ie, part of a 9iAS installation on another machine vs local in JDeveloper).
    I've reverted to a stupid-simple EJB in hopes of getting it going prior to trying my actual code. The EJB works fine in JDev (9.0.3) - I 'run' the EJB to start the local OC4J instance, run my client code (generated via the "New Sample Java Client..." option in the Navigator context popup) and all is well.
    I then create an EAR file via the the "Create EJB Jar Deployment Profile..." context popup of the ejb-jar.xml node, followed by "Deploy to EAR file" from the context popup of the resulting ejb1.deploy node. I next "Deploy EAR File" via the "Oracle Enterprise Manager" that comes with 9iAS (the :1810 port). After successfully deploying, I modify my client code in JDeveloper, specifying the new connection information for the remote machine via the Hashtable constructor of InitialContext and attempt to run it. I've tried a number of Context.PROVIDER_URL forms, including: ormi://registered_pingable_host_name:23791/deployed_application_name
    ormi://registered_pingable_host_name:23791/session_deployment_name (from the <enterprise-beans><session-deployment name="xxx"/></enterprise-beans> section of my orion-ejb-jar.xml file, as per a tip in this forum)
    I've tried prefixing ormi:// with http:, but get no response whatesoever in this case.
    I've also tried it without the port number (this port number matches that in my remote OC4J's <oc4j_instance_home>/config/rmi.xml file).
    On the Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS settings, I've tried various values, generally using the 'admin' user, with passwords taken from:
    <oc4j_instance_home>/principals.xml
    <oc4j_instance_home>/application-deployments/application_name/principals.xml
    I've also tried matching the password in the jazn-data.xml, to no avail - this password appears encrypted anyway, but thought I'd give it a try on the off-chance that it was just a randomly-generated password - no go.
    I've also tried SCOTT/TIGER, anonymous, etc. Incidentally, the 'deactivated' attribute of the <user> tag is set to "false" in my principals.xml files.
    No matter what I do, I always get back "javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect"
    Additionally, I get this same message when I try to establish an Application Server Connection via JDev.
    Clearly, I'm missing something critical (and probably simple), but I can't for the life of me figure it out.
    Any help would be much appreciated!
    Thanks,
    Jim Stoll

    Ok, well this is a bit strange...
    3103 - 3103 also fails, and some experimentation has led me to find that any time that I specify a range smaller than 6 (3101 - 3106 works, 3101 - 3105, 3101-3101, 3103-3103, etc does not), the OC4J instance will not restart. I get "An error occurred while starting. The opmn request has failed. From opmn: HTTP/1.1 204 No Content Content-Length: 0 Content-Type: text/html Response: 0 of 1 processes started. Check opmn log files such as ipm.log and ons.log for detailed." in the OEM window (I specify the RMI port range, hit Apply, go to the OC4J instance home page, see that the Status is 'Down', hit Start, and get that message.) <ORACLE_HOME>/product/iasinfra/opmn/logs/ipm.log tells me:
    02/12/03 09:41:12 There is no rmi port left for starting an OC4J process. Please check oc4j's port property in OPMN's configuration file.
    02/12/03 09:41:12 start_proc: UID 3719788: failed to build args
    02/12/03 09:41:12 start_proc_req: failed to start a process in GID OC4JJim2, type: 2
    If I bump it up to 3101 - 3106 or higher, it starts right up. Running opmnadmin debug, as suggested by Venky (thanks Venky!), yields:
    PROCESS TABLE
    UID PID FLAGS TYPE STATUS REF HTTP AJP RMI JMS
    3654011 84 00000040 OC4J Alive 1 0 3005 3106 3206
    424987 604 00000000 Apache Alive 1 7777 0 0 0
    2932088 14849 00000000 OC4J Alive 1 0 3003 3103 3203
    3063160 14878 00000000 OC4J Alive 1 0 3001 3101 3201
    3194232 14906 00000000 OC4J Alive 1 0 3000 3105 3205
    3325304 14936 00000000 OC4J Alive 1 0 3002 3102 3202
    3456376 14964 00000000 OC4J Alive 1 0 3004 3104 3204
    Which is what I would expect, given the specified range of 3101-3106. Trying each of these ports in turn, I've found that I can hit the EJB successfully on 3106, but 3101 - 3105 all fail with:
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: Project7_2; nested exception is:
         javax.naming.AuthenticationException: No such domain/application: Project7_2
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void Samplemypackage9.MySessionEJBClient1.main(java.lang.String[])
              MySessionEJBClient1.java:15
    I'm a little concerned about assuming the high-end of the range to be the active port on a regular basis (though thus far, among about 20 - 30 tries spaced over 20 - 30 minutes, it has been...) - I guess I can have my code loop through the range until it finds a good port or exhausts the list, but that seems a bit excessive.
    Can you think of a reason that my OC4J instance won't start with a range size of less than 6? I'm on 9iAS 9.0.2, if that makes any difference.
    Thanks,
    Jim

  • Trouble running EJB application in jdev 11G

    Hi, I am just trying out jdev 11g, everything looks good except i am not able to run my application in either embedded oc4j or standalone oc4j 11g. I don't know, if it is a bug or i am doing something wrong. I also have this question, does jdev 11g support Tomcat 6? I will really appreciate any help regarding this. Thanks
    That's the error i get every time i run the application:
    [EJB 3.0]: Assigning default-data-source=jdbc/MySQL-Movies_DatabaseDS, specified in projects EJB 3.0 properties
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.0.17.45.24\o.j2ee\embedded-oc4j\config>
    "C:\Jdeveloper 11 Preview\jdk\bin\javaw.exe" -client "-Doracle.home=C:\Jdeveloper 11 Preview" -classpath "C:\Jdeveloper 11 Preview\j2ee\home\oc4j.jar;C:\Jdeveloper 11 Preview\jdev\lib\jdev-oc4j-embedded.jar" -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config "C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.0.17.45.24\o.j2ee\embedded-oc4j\config\server.xml"
    [waiting for the server to complete its initialization...]
    May 13, 2007 12:15:27 PM oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
    SEVERE: Could not open wallet. Wallet version not supported
    java.io.IOException: Could not open wallet. Wallet version not supported
    at oracle.security.pki.OracleWallet.open(OracleWallet)
    at oracle.security.jps.internal.credstore.ssp.CsfWalletManager.openWallet(CsfWalletManager.java:130)
    at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.<init>(SspCredentialStore.java:108)
    at oracle.security.jps.internal.credstore.ssp.SspCredentialStoreProvider.getInstance(SspCredentialStoreProvider.java:83)
    at oracle.security.jps.internal.credstore.ssp.SspCredentialStoreProvider.getInstance(SspCredentialStoreProvider.java:45)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getServiceInstance(JpsContextFactoryImpl.java:260)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContextFromDesc(JpsContextFactoryImpl.java:352)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:279)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:541)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:536)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:535)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<clinit>(PolicyDelegationController.java:94)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:107)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.security.jazn.JAZNConfig.setJAASPolicyProvider(JAZNConfig.java:2053)
    at oracle.security.jazn.JAZNConfig.setSecurityProperties(JAZNConfig.java:2126)
    at oracle.security.jazn.JAZNConfig.setSecurityProperties(JAZNConfig.java:2145)
    at com.evermind.server.OC4JServer.main(OC4JServer.java:433)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.classloader.util.MainClass.invoke(MainClass.java:89)
    at oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:41)
    oracle.security.jps.service.credstore.CredStoreException: Could not open wallet. Wallet version not supported
    at oracle.security.jps.internal.credstore.ssp.CsfWalletManager.openWallet(CsfWalletManager.java:139)
    at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.<init>(SspCredentialStore.java:108)
    at oracle.security.jps.internal.credstore.ssp.SspCredentialStoreProvider.getInstance(SspCredentialStoreProvider.java:83)
    at oracle.security.jps.internal.credstore.ssp.SspCredentialStoreProvider.getInstance(SspCredentialStoreProvider.java:45)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getServiceInstance(JpsContextFactoryImpl.java:260)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContextFromDesc(JpsContextFactoryImpl.java:352)
    at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:279)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:541)
    at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:536)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:535)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<clinit>(PolicyDelegationController.java:94)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:107)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.security.jazn.JAZNConfig.setJAASPolicyProvider(JAZNConfig.java:2053)
    at oracle.security.jazn.JAZNConfig.setSecurityProperties(JAZNConfig.java:2126)
    at oracle.security.jazn.JAZNConfig.setSecurityProperties(JAZNConfig.java:2145)
    at com.evermind.server.OC4JServer.main(OC4JServer.java:433)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.classloader.util.MainClass.invoke(MainClass.java:89)
    at oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:41)
    Caused by: java.io.IOException: Could not open wallet. Wallet version not supported
    at oracle.security.pki.OracleWallet.open(OracleWallet)
    at oracle.security.jps.internal.credstore.ssp.CsfWalletManager.openWallet(CsfWalletManager.java:130)
    ... 28 more
    May 13, 2007 12:15:31 PM oracle.dms.trace.TraceManager record_config
    INFO: TransactionTracing is enabled at MIN level
    07/05/13 12:16:50 Oracle Containers for Java EE (11.1.1.0.0) Technology Preview initialized
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 112171 ms.

    Running EJB's seem to work fine for me.
    Can you try to create a simple Session bean and run it and see if you get any problems?
    As far as support for other application servers, yes JDeveloper will support them, for the technology preview however we just did tests with the Oracle application server.

  • HELP!!! How I can call to EJB from another EJB??

    I have two EJBs, for each EJB I have a jar, how I can call to EJB jar to another???
    I have tried the following, in the first EJB I have import the second EJB jar and call it with context, lookup, PortableRemoteObject etc.. but the instruction lookup not find the second EJB reference.
    The name in the lookup instruction is the JNDI name of the second EJB but not find a reference to it.
    Please help me!!! Thanks!!
    The error is:
    javax.naming.NameNotFoundException: Missing node. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
         at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
         at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.extract(NotFoundHelper.java:50)
         at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:161)
         at com.inprise.j2ee.jndi.java.CorbaContext.resolveName(CorbaContext.java:242)
         at com.inprise.j2ee.jndi.java.CorbaContext.lookup(CorbaContext.java:261)
         at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:483)
         at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:493)
         at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:493)
         at com.inprise.j2ee.jndi.java.javaContext.lookup(javaContext.java:937)
         at com.inprise.j2ee.jndi.java.javaContext.lookup(javaContext.java:942)
         at javax.naming.InitialContext.lookup(InitialContext.java:350)
         at ejbclient.EnterpriseClientBean.addition(EnterpriseClientBean.java:115)
         at ejbclient.EnterpriseClientBean.actionPerformed(EnterpriseClientBean.java:97)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at avax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstr

    ok.. Here it goes.. I am writing a sample code..
    public class EJB1LogBean implements SessionBean {
    // test is a method of stateless session beam
    public void test ( TestVal val )
    throws RemoteException{
    try {
    EJB2LogHome ejb2Home= (EJB2LogHome)getHome("java:comp/env/ejb/EJB2LogHome",1);
    EJB2Log ejb2Log = ejb2LogHome.create ( val );
    } catch ( CreateException e ) {
         System.out.println("Create Exception occurred ");
         e.printStackTrace();
         } catch ( RemoteException e ) {
         System.out.println( "RemoteException Occured");
    e.printStackTrace();
         throw new RemoteException () ;
         } catch(Exception ee) {
    ee.printStackTrace();
    private EJBHome getHome(String jndiName,int type) {
    try {
    Context context = new InitialContext();
    Object ref = context.lookup( jndiName );
    switch(type)
    case 1:
    EJB2LogHome ejb2LogHome = ( EJB2LogHome )
    PortableRemoteObject.narrow( ref, EJB2LogHome.class );
    return ejb2LogHome;
    } catch ( Exception e ) {
    e.printStackTrace();
    return null;
    }//EJB1LogBean ends
    Here as you can see, EJB1LogBean(session bean) is calling a second EJB, EJB2LogBean (entity bean). TestVal is a sample value object passed. It is plain java class and can vary from app to app and it has got nothing to do with ejbs.
    "java:comp/env/ejb" is a J2EE standard and while getting a home interface, you have to append the home interface class name to "java:comp/env/ejb". Here I am passing "java:comp/env/ejb/EJB2LogHome" and "1" to getHome method, whose job is to get a reference to a home interface. getHome method is a local method. "1" is passed just to give a flexibility to getHome method as you can have more ejbs to invoked. In that case, you can go on adding different case statements for 2, 3 etc.
    The only thing you have to keep in mind is that your deployment descriptor for EJB1LogBean will contain the entires for both the beans i.e. for EJB1LogBean and EJB2LogBean. This is because EJB2LogBean is wrapped by EJB1LogBean.
    Hope this helps.
    Please let me know if you need anything more.
    - Amit

  • Can not deploy VSM1.3 to oc4j10g 10, can not translate EJB QL

    the OS is win2k
    oc4j version is oc4j 10g(10.0.3.0.0)
    started oc4j by java -Ddefault.cmp.pm=native_cmp -jar oc4j.jar
    when deploying vsm, the following EJB QL error:
    deploy-oc4j:
    [java] Error: Deploy error: deploy failed!: ; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instanti
    ationException: Error initializing ejb-module, Exception: Compile error: Error t
    ranslating EJBQL: java.lang.NullPointerException
    [java] com.evermind.client.orion.AdminCommandException: Deploy error: deplo
    y failed!: ; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instanti
    ationException: Error initializing ejb-module, Exception: Compile error: Error t
    ranslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.client.orion.DeployCommand.execute(DeployCommand
    .java:95)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] java.rmi.RemoteException: deploy failed!: ; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instanti
    ationException: Error initializing ejb-module, Exception: Compile error: Error t
    ranslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FR
    OM_THE_REMOTE_SERVER(RMIConnection.java:908)
    [java] at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnect
    ion.java:802)
    [java] at com.evermind.server.rmi.RemoteInvocationHandler.invoke(Remote
    InvocationHandler.java:69)
    [java] at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.in
    voke(RecoverableRemoteInvocationHandler.java:22)
    [java] at __Proxy0.deploy(Unknown Source)
    [java] at com.evermind.client.orion.DeployCommand.execute(DeployCommand
    .java:92)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] Caused by: oracle.oc4j.admin.internal.DeployerException: java.lang.I
    nstantiationException: Error initializing ejb-module, Exception: Compile error:
    Error translating EJBQL: java.lang.NullPointerException
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:75)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.internalDeploy(DefaultApplicationServerAdministrator.java:376)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.deploy(DefaultApplicationServerAdministrator.java:276)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:291)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] Caused by: java.lang.InstantiationException: Error initializing ejb-
    module, Exception: Compile error: Error translating EJBQL: java.lang.NullPointer
    Exception
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1076)
    [java] at com.evermind.server.Application.postInit(Application.java:688
    [java] at com.evermind.server.Application.setConfig(Application.java:20
    1)
    [java] at com.evermind.server.ApplicationServer.addApplication(Applicat
    ionServer.java:1947)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication
    (ApplicationDeployer.java:382)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(Appli
    cationDeployer.java:134)
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:61)
    [java] ... 10 more
    [java] Caused by: java.lang.InstantiationException: Compile error: Error tr
    anslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1021)
    [java] ... 16 more
    [java] Caused by: com.evermind.compiler.CompilationException: Error transla
    ting EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.compilation.Compilation.translateEjbq
    lQeries(Compilation.java:229)
    [java] at com.evermind.server.ejb.compilation.Compilation.compile(Compi
    lation.java:265)
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:930)
    [java] ... 16 more
    [java] ---- Embedded exception
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instantiatio
    nException: Error initializing ejb-module, Exception: Compile error: Error trans
    lating EJBQL: java.lang.NullPointerException
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:75)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.internalDeploy(DefaultApplicationServerAdministrator.java:376)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.deploy(DefaultApplicationServerAdministrator.java:276)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:291)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] Caused by: java.lang.InstantiationException: Error initializing ejb-
    module, Exception: Compile error: Error translating EJBQL: java.lang.NullPointer
    Exception
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1076)
    [java] at com.evermind.server.Application.postInit(Application.java:688
    [java] at com.evermind.server.Application.setConfig(Application.java:20
    1)
    [java] at com.evermind.server.ApplicationServer.addApplication(Applicat
    ionServer.java:1947)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication
    (ApplicationDeployer.java:382)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(Appli
    cationDeployer.java:134)
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:61)
    [java] ... 10 more
    [java] Caused by: java.lang.InstantiationException: Compile error: Error tr
    anslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1021)
    [java] ... 16 more
    [java] Caused by: com.evermind.compiler.CompilationException: Error transla
    ting EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.compilation.Compilation.translateEjbq
    lQeries(Compilation.java:229)
    [java] at com.evermind.server.ejb.compilation.Compilation.compile(Compi
    lation.java:265)
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:930)
    [java] ... 16 more
    [java] Java Result: 1
    [java] Error: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb
    does not exist in application vsm
    [java] com.evermind.client.orion.AdminCommandException: bindWebApp() failed
    !; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb
    does not exist in application vsm
    [java] at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAp
    pCommand.java:31)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] java.rmi.RemoteException: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb
    does not exist in application vsm
    [java] at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FR
    OM_THE_REMOTE_SERVER(RMIConnection.java:908)
    [java] at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnect
    ion.java:802)
    [java] at com.evermind.server.rmi.RemoteInvocationHandler.invoke(Remote
    InvocationHandler.java:69)
    [java] at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.in
    voke(RecoverableRemoteInvocationHandler.java:22)
    [java] at __Proxy0.bindWebApp(Unknown Source)
    [java] at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAp
    pCommand.java:28)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] Caused by: oracle.oc4j.admin.internal.DeployerException: Web module
    VSMWeb does not exist in application vsm
    [java] at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(We
    bApplicationBinder.java:187)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.bindWebApp(DefaultApplicationServerAdministrator.java:362)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:297)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] ---- Embedded exception
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb does
    not exist in application vsm
    [java] at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(We
    bApplicationBinder.java:187)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.bindWebApp(DefaultApplicationServerAdministrator.java:362)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:297)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] Java Result: 17

    I have a 10.1.2 app that deploys and binds just fine,
    but when I try to deploy the same app on a 10.1.3
    version it seems to deploy just fine but I can not
    access the application. When I go into the web
    frontend of the 10.1.3 server I see my app is
    deployed, status is shown as green but when I click
    on the web app it says that no JSPs were found also
    it is not bound. I deploy using the auto deploy
    feature.Can you check and see that the http-web-site.xml has a valid <web-app> entry for your web module?
    Have you tried to access a specific JSP and see the same error? Or are you trying to access just the root context?
    Can you try deploying the application using the deployment function in Application Server Control (http://host:1810) and see if it works and/or reports any error messages?
    -steve-

  • IPhone 4S Battery Life: Best solutions and procedures for 1st time user: 1-Do you have a battery life issue (learn first what the usage time spec is about) 2-What can you try to remedy the situation without reading 500 pages of posts

    What follows is a grouping of some of the most fruitful procedures - from what I've seen in the biggest battery life issue thread - and some background information and discussion for solving or improving the battery life with the iPhone 4S and may be applicable also to devices on which iOS 5.0/5.0.1 has been applied. Credit goes to the respective users who contributed this information to the forum and they should be commended for doing so. This is not a final listing. The goal here is to provide a first stop sort of knowledge base document for newcomers instead of having them perusing the never ending threads where the wheel is reinvented on every page...
    Please don't post your questions, usage screenshots, or claims that it worked or not for you or anything here except PROCEDURES/DEBUG STEPS/SOLUTIONS or improvements to the procedures already listed here. Try to use point form and to be as concise and clear as possible. Hope all this helps.
    Thank you and good luck!
    General info and specs
    First, take a look Apple's battery tips, info and specs(obligatory reading for all Iphone 4S users - read it once and for all):
    http://www.apple.com/batteries/iphone.html
    http://www.apple.com/batteries/
    ... you didn't read it? loll Always remember this i.e. the definition of "usage":
    Usage: Amount of time iPhone has been awake and in use since the last full charge.  The phone is awake when you’re on a call, using email, listening to music, browsing the web, or sending and receiving text messages, or during certain background tasks such as auto-checking email.
    I'm still not convinced you read the links so here's what Apple has to say in terms of fine tuning your battery life:
    Optimize your settings
    Depending on how they are configured, a few features may decrease your iPhone battery life.  For example, the frequency with which you retrieve email and the number of email accounts you auto-check can both affect battery life. The tips below apply to an iPhone running iOS 5.0 or later and may help extend your battery life.
    Minimize use of location services: Applications that actively use location services such as Maps may reduce battery life. To disable location services, go to Settings > General > Location Services or use location services only when needed.
    Turn off push notifications: Some applications from the App Store use the Apple Push Notification service to alert you of new data. Applications that extensively rely on push notifications (such as instant messaging applications) may impact battery life. To disable push notifications, go to Settings > Notifications and set Notifications to Off. Note that this does not prevent new data from being received when the application is opened. Also, the Notifications setting will not be visible if you do not have any applications installed that support push notifications.
    Fetch new data less frequently: Applications such as Mail can be set to fetch data wirelessly at specific intervals.  The more frequently email or other data is fetched, the quicker your battery may drain. To fetch new data manually, from the Home screen choose Settings > Mail, Contacts, Calendars > Fetch New Data and tap Manually. To increase the fetch interval, go to Settings > Mail, Contacts, Calendars > Fetch New Data and tap Hourly. Note that this is a global setting and applies to all applications that do not support push services.
    Turn off push mail: If you have a push mail account such as Yahoo! or Microsoft Exchange, turn off push when you don’t need it. Go to Settings > Mail, Contacts, Calendars > Fetch New Data and set Push to Off. Messages sent to your push email accounts will now be received on your phone based on the global Fetch setting rather than as they arrive.
    Auto-check fewer email accounts: You can save power by checking fewer email accounts. This can be accomplished by turning off an email account or by deleting it. To turn off an account, go to Settings > Mail, Contacts, Calendars, choose an email account, and set Account to Off. To remove an account, go to Settings > Mail, Contacts, Calendars, choose an email account, and tap Delete Account.
    Turn off Wi-Fi: If you rarely use Wi-Fi, you can turn it off to save power. Go to Settings > Wi-Fi and set Wi-Fi to Off. Note that if you frequently use your iPhone to browse the web, battery life may be improved by using Wi-Fi instead of cellular data networks.
    Turn off Bluetooth: If you rarely use a Bluetooth headset or car kit, you can turn off Bluetooth to save power.  Go to Settings > General > Bluetooth and set Bluetooth to Off.
    Use Airplane Mode in low- or no-coverage areas: Because your iPhone always tries to maintain a connection with the cellular network, it may use more power in low- or no-coverage areas.  Turning on Airplane Mode can increase battery life in these situations; however, you will be unable to make or receive calls.  To turn on Airplane Mode, go to Settings and set Airplane Mode to On.
    Adjust brightness: Dimming the screen is another way to extend battery life.  Go to Settings > Brightness and drag the slider to the left to lower the default screen brightness. In addition, turning on Auto-Brightness allows the screen to adjust its brightness based on current lighting conditions.  Go to Settings > Brightness and set Auto-Brightness to On.
    Turn off EQ: Applying an equalizer setting to song playback on your iPhone can decrease battery life.  To turn EQ off, go to Settings > iPod > EQ and tap Off. Note that if you’ve added EQ to songs directly in iTunes, you’ll need to set EQ on iPhone to Flat in order to have the same effect as Off because iPhone keeps your iTunes settings intact.  Go to Settings > iPod > EQ and tap Flat.
    Usage specs for the 4S - http://www.apple.com/iphone/specs.html:
    Talk time: Up to 8 hours (12.5% per hour drain) on 3G, up to 14 hours (7.1% per hour drain) on 2G (GSM)
    Standby time: Up to 200 hours (0.5% per hour drain)
    Internet use: Up to 6 hours on 3G (16.6% per hour drain), up to 9 hours (11.1% per hour drain) on Wi-Fi
    Video playback: Up to 10 hours (10% per hour drain)
    Audio playback: Up to 40 hours (2.5% per hour drain)
    So a scenario of normal usage could be for example: 4 heavy hours of 3G internet browsing (66.4%), with one hour of call on 3G (12.5%) and 22 hours of standby (11%) = 100%
    A battery life issue is a problem where the drain is really out of spec either during usage or standby or both. For example, multi-% per minute drain during usage or a 10% drain per hour during standby is problematic. Browsing the internet on 3G during one hour and losing 16-17% is not.
    Apple's test methodology for claiming the specs:
    http://www.apple.com/iphone/battery.html
    Procedures
    davidch tips (reset+full discharge recharge):
    Go through these steps to address the battery after updating to iOS 5.0.1:
    1. Reset all settings (settings app-> general-> reset)
    2. Go through initial setup steps (lang, wifi, siri, enable location, etc) and choose setup as new phone (don't worry your apps, data, contacts, mail will still be there). Do NOT restore from iCloud or iTunes (It can copy back corrupt settings)
    3. Turn off system location services timezone and iAd
    4. Fully discharge battery  (tilll it shuts off with the spinning wheel)
    5. Fully recharge battery (overnight if possible)
    In my experience this improves the Standby battery drain issue significantly in most cases.  It reduces drain from 2-4% or more per hr to 0.5% or less. It has worked for many, many users now. If it does not work after a few try's you may have a real battery or hardware issue and should contact Apple.  Good Luck!
    ram130's variant of davidch i.e. additional steps:
    Now using davidch original steps and attaching the tweaks I made to get me more usage. As shown on page 29.
    Go through these steps to address the battery after updating to iOS 5.0.1:
    1. Reset all settings (settings app-> general-> reset)
    2. Go through initial setup steps (lang, wifi, siri, enable location, etc) and choose setup as new phone (don't worry your apps, data, contacts, mail will still be there). Do NOT restore from iCloud or iTunes (It can copy back corrupt settings)
    3. Turn off system location services timezone and iAd
    4. Fully discharge battery  (till it shuts off with the spinning wheel)
    5. Fully recharge battery (overnight if possible)
    6. Disable Siri 'Raise To Speak' and REBOOT *( if possible use another camera to verify the                 infrared is off after the reboot).
    7. Set emails, icloud and calendars to fetch. ** test. Mines on hourly.
    8. If your in a no signal and your phone is saying "Searching..." even after 10mins, reboot while in that area and after 1-2min it should say "No Service". This mainly applies to Verizon customers and improve battery life in these areas.
    9. *optional* Goto Settings > General > Network and you will see "Hotspot.." loading something, wait a few seconds and it should say "setup personal hotspot" then exit out.
    * I notice a great improvement after disabling this and rebooting. This increased my "screen on" usage or at least helped it. Make the change.
    ** I have not tested push yet to narrow down the drain but I had this change on my phone. I believe exchange push is responsible for some stand by drain. As for icloud, haven't notice much of a difference. Just try it for a day. My email still came in fast most times. Again still testing, will report back on these..
    buxbuster tips(wifi sync, iCloud):
    These are my own tested workarounds that worked for my iPhone 4S and seemed to have worked for others as well :
    Workaround number 1. Deselect wifi-sync in iTunes and press sync.
    If that doesn't work try :
    Workaround number 2 : Remove iCloud, reset network settings. ( I guess this won't work for you since you don't have it enabled ).
    If both workarounds fail, you can always try to completely wipe your phone. That also solved some of the cases out there.
    rolandomerida tips - i.e. buxbuster and additional steps:
    Finally, I solved the syncing error loop. My contacts are syncing flawessly again between my devices and iCloud, and yes, the battery stopped draining, which is the main topic here.
    I followed instructions from buxbuster (check his workaround a few pages up!) and an additional BIG step to restore contacts and syncing, as seen in a MacRumors forum.
    This is what I did:
    1. Make a backup of your Address Book, using the vCard option (or both, it doesn't hurt). Save it for later.
    2. In your iPhone, delete iCloud account. When it asks, accept both: delete AND delete from my iPhone.
    3. Reset network settings. The iPhone will restart, then will ask you to unlock the SIM card.
    4.Turn Wi-Fi on.
    5. Add the iCloud account again.
    That's for Buxbuster's workaround. For some, it might work just like that. My iPhone repopulated from iCloud after step 5, but I still had that "server error" on iCloud. I had to do some extra steps, since my Mac was not syncing to iCloud and couldn't edit anything on my Mac or iCloud. Syncing back had to be fixed, too. If not, the syncing loop would continue from my iPhone, and the battery would drain awfully again.
    1. In System Preferences -> iCloud, I turned Contacts off. I chose "keep on My Mac" those contacts, but I got an empty Address Book after a while. And a few minutes later, iCloud contacts were empty and my iPhone also. It is scary at first! Now, before importing that vCard backup...
    2. Turn Wi-Fi off. This is important, since your contact-empty iCloud will attempt to wipe your Address Book from your Mac in seconds after importing.
    3. Import your vCard backup to Address Book. Just drag it to your blank Address Book window; it asks if you want to import "x" number of cards. Of course, say yes.
    4. Turn Wi-Fi on, and then iCloud contacts on again (System Preferences -> iCloud). It will offer to merge your newly populated Address Book with iCloud (which is empty at this point). It should upload every single contact to iCloud, and then to your iDevices. If not, a fifth step would be to import the vCard file to iCloud, but it shouldn't be necessary.
    So, with iCloud syncing working correctly, there is no battery draining! Again, that was my particular issue.
    I can't tell if this is the single answer to the widely spread battery draining problem, but it sure can be fixed with these workarounds, and yes, Apple should address the problem with a future update, for we affected customers don't need workarounds in the first place
    This is the MacRumors discussion:
    http://forums.macrumors.com/showthread.php?t=1256807
    And dont' forget to check buxbuster's fix, video, and THANK him!
    Miless tips (full 800mb release of 5.0.1 and sanitizing a restore):
    As for 4S battery life. Try doing this,
    1. Settings>Location Service ... disable all location services you do not need. In particularly Facebook because it drains the battery a lot.
    Scroll down to the bottom at Settings>Location services>System Services ... Disable Setting Time zone, location based iAds, Diagnostic & Usage.
    2. Settings>Notification>Calendar ... turn off the Notification Centre.
    3. Settings>General>Reset ... do Reset All Settings. Doing this will not wipe out your iPhone. It will just Reset the network settings, location warning, keyboard dictionary, etc... but it will clear up some corrupted data there. Generally this will help.
    Try these 3 steps first... if it still drains a lot, try the following,
    4. Drain your battery down to 1%. Then charge it up using USB from PC ... not the charger. The charger output 1.0 A ( x 5V from USB ... you get 5W power). From PC, output is only 0.5A x 5V = 2.5W power. Charging is slower but trickle charge 4S helps the battery retain its charge better. I think it takes about 3-3.5 hours to charge full from USB/PC compared to slightly below 2 hours using iPhone charger.
    If after doing the above still could not solve your battery issues (mine with iOS 5.0 was ok up to step 4, but not iOS 5.0.1).... plug you iPhone to a charger (any charger), from iPhone, access your iCloud ... set it up if you havent. Back up your iPhone data to iCloud. if you do not have enough storage (only 5GB is free), go to details and select the apps you need its data backup, choose only those you really need and leave those unnecessary ones out. Back up your camera roll to your PC/Mac manually as it could be too big to backup to iCloud.... once you have it setup, make sure you are on Wifi ...  tap backup to iCloud from your iPhone. It will take a while if the file is huge.
    Once backup to iCloud is completed, plug your iPhone to PC/Mac and launch iTunes 10.5.1 (make sure you have 10.5.1)
    Click Restore. It will automatically initiate a download of iOS 5.0.1 ipsw for iPhone 4S. Wait for the whole process to finish, ie. download, restore software/firmware.
    Once its done, do not set up your iPhone from iTunes. Set it up on your iPhone. Go through the selection. When prompted, select restore from iCloud (from your iphone backup earlier). Keep your iphone plugged into iTunes while restoring backup from iCloud. Because while restoring from iClouds, some data will be synced from iTunes if you plug in, e.g. music, video, etc... unless you bought these content from iTunes store. Apps will be downloaded from App Store from the cloud.
    Once it's all done restored. Turn off your iPhone,.. and turn it on again.
    Now, hopefully your battery wont be draining so fast anymore. Usually it wont after this. But you need to charge your battery at least 4-5 cycles to stabilize the charge on the battery. I dont know why... but battery life seems to get better and better for me after a few charge cycles after all the above work.
    Good luck. Let us know if it works for you.
    W. Raider tips (Sirii):
    Bottom line for me of things that helped battery life are:
    1. Turing off Siri and Rebooting the phone by holding the Home button and Top button down, ignoring the slider, until the phone shut down. (turn off Siri, reboot, and check top front of iPhone 4S against a lesser camera like the front-facing camera on an iPad2 - making sure the IR sensor is off)
    2. Fully draining the battery, meaning using the phone until it shuts itself off from a drained battery and then recharging it to 100% about 4, maybe 5 times. I charged it both with a Mac and a wall charger.
    Hope this is helpful!
    Comments
    jmm514 remarks (Twitter):
    I may have found something. I had Twitter disabled in my notifications, but got a tweet today that popped up on my home screen. Didn't know I had this enabled. At the bottom of the Twitter notification settings is the home scrren toggle. Since disabling this, battery life seems better. Considering there is no setting for frequency of checking for tweets, it appears the phone is continually connecting to wifi to check for new tweets.
    tmksnyder comments (notifications, corrupt data in iCloud):
    For me, I found my iphone on wifi mysteriously connecting to my mac.  I eventually narrowed it down to the Apple Move Trailers app which keeps a file in iCloud.  The phone was trying to sync the file with the mac in the background even when the Movie Trailers app was closed (hitting the red x).  Based on my macosx logs the iCloud process that was trying to sync was working directly between the phone and the mac without using itunes by connecting to an https address hosted on the phone.  It was connecting every 3 minutes and failing (while phone was awake or awake during during a notification).  I also found that iCloud control panel on OSX would error if I tried to delete the file.  I fixed it by removing the App and doing a hard reset which stopped the sync.  I probably could have turned off iCloud document sync in the phone but didn't think of that.  My battery life has greatly improved while at home on wifi.    I am now at 28 hrs standby, 2 hrs 20 minutes of usage, and 68% battery.  It was ok before where I could get 20-30 hrs standby and 6 -8 hrs usage.  My usage today was phone calls, 3g surfing, and music via bluetooth in the car.
    I also found even with Itunes iMatch, if I mass updated tages, art work etc, it would hit the phone on wifi even in standby.  I was amazed.   Granted if I am not doing updates, Match won't hot the phone so this was a once in awhile event.  I could drop my percentage by 5-10% in a matter of minutes when doing updates.   I think a lot of our problems are background processes, associated with iCloud, notification, and apps.  More features means more battery.   I think the key thing is to keep track of what has recently been added or changed if battery life gets worse all of a sudden.   It may be an app that was recently installed and if possible you may want to completely remove it and not just quit it.
    With twitter, i think it uses push notifications so it doesn't need to be running and actively poll on the phone. For instance , if i quit the mail app, i still will get mail notifications and can swipe the message and load mail. Apple Push Notifications servics maintain the connection to the phone and there are likely pings or connection checks  that occur for the service on an os level not an app level.  This minimizes the load so there arent a bunch of apps all runing and constantly checking.  The notification service , if it is contacted from twitter or another service with data, will check the settings you have registered to the with the apple push service and send the notification to your phone.  No matter what, there is a drain with notifications. M hunch is once one application is configured to receive notifications, connection checking occurs betwen the push service and the phone so it knows where it is on the network. If it is implemented correctly, these checks arent frequent if you are still and more frequent as you move. The other drain is for when the noification hits and is processsed.  If i get 9 emails over night, my screen just popped up for 20 seconds or so to process each message using battery.  I would even think that just go from low power to turning n the screen uses more juice than if the device was already on and i get the message.  On nights I get no notifications, I see a 3  or 4 percent drop.  On nights with a number of notifications, i have seen up to a 10 percent drop.  Besides notifications, wifi sync and icloud will poll on the local network and use up battery if the host computer is on and running itunes or trying to sync a data file that is corrupt (which i had with the apple movie trailers app causing my phone to drain).  For me turning off wifi sync and remving a corrupt file in icloud solved my battery issues and I get over 24 hrs of standby with 6 to 9 hrs of use and this is with all the normal location services and push serivices turned on.
    See http://developer.apple.com/library/mac/ipad/#documentation/NetworkingInternet/Co nceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html for more info.  I think it has a good overview of how the notifications work.

    Well seems like that rumor of iOS 5.0.1 is finally gone the way of the dogs since developers got a beta of 5.1. So as stated earlier in the master discussion-> I suspect if you are filling up this thread with false post or creating a master set of links to various post that are unreliable you are wasting your time. Press is not going to touch the story due to poor or inaccurate sources which may be links from the master thread. This can include inaccurate information, combination of conflicting post or postings from users which may not own the device. Reputable press organizations have policies that require discloser and strict rules about what is a reliable source for a story. It is clear that many of the post in the master thread, which are links presented here are questionable. 
    Sorry to say that postings taken without any analysis of their totality have been propagated via various sites, for example sites such as http://www.2012federalbudget(dot)com. (Do not visit but I suspect that this is not the 2012 federal-budget site you would expect based on analysis of the records. There are plenty of sites like http://www.2012federalbudget(dot)com propagating questionable post in these threads.) One site for example in the discussion thread used a self signed certificate, the site had a log in to allow users to enter their OpenID. Seems many of these sites are pop and drop drupel configurations.
    So remember this is how the really bad rumor of iOS 5.0.2 got started, the 5.1 memory leak issue, iCloud Issues, call quality, address book, etc.
    Some of the postings have been very comical, I think the latest now is a dropbox issue. Seems that the length of the previous thread has resulted in various app engines of some proxy servers/tools reaching their limits.
    So I would make sure to know the source of any information you link to. Make sure you avoid entering any information to outside links such as OpenID or Apple ID, these are big prize items for anyone with malicious intent.  If you have issues and are a valid user contact APPLE CARE. (Note link is using McAfee Secure Short URL Service, and is https.)
    http://mcaf.ee/ricdt
    The original solution still represents a high level of success for users having any battery issues.
    Install 5.0.1 on your iPhone 4s. Some users posting they are still using older versions, bad fake serial numbers, etc.
    Make sure your device can run iOS 5.0.1 and is not altered.
    Make sure you use a new Sim, not some cut down version which many users admit to doing. (Again, worth confirming what people are posting.)
    Reset the device doing a hard reset and software reset.
    Let battery drain and then charge for the full cycle, which is 24 hours.
    I think you will find you will get the battery usage that APPLE has stated for the device.
    Best of luck, stay safe and thanks

  • IPhone 4 shuts down on its own all the time. Sometimes restarts without ability to make calls, receive emails, and the wrong time.  Only a restore fixes it.  What can I try?

    So my iPhone had a broken screen and back for a while, which may have something to do with this.  I mean like missing peices.  I realize this leads to corrosion and I may have a broken iPhone but this is a really strange problem.  It's always shutting off on its own, sometimes in my pocket while locked and sometimes randomly while in use.   For example the other day this started happening everytime I started safari.  This happens all the time, I usually just restart it and it works for a while.   Sometimes after shutting off a few times in a row, after restarting it will show the wrong time, screws up phone calls and says that it cannot locate the gmail server, or something to that extent (won't load emails).   The phone calls are weird, I can't receive any.   Any calls that are made from the phone, go through on the other side and ring for them, but won't ring or make a connection on my side, also I can't end the call when this happens, it responds to me pressing end by fading the screen to that graytone color that it does before ending usually but stays on that screen whenever you go back to it, only disappearing after reseting.  Texts work, not in iMessage, and internet seems to work.   The only thing that fixes this condition is a restore. The iphone has been turning itself off over the last 3 months and its been getting progressively worse.  Recently its been pretty bad, and then the phone started to do all that weird stuff I've been talking about.  That started about 3 weeks ago and has happened 4 times, the last two times relatively close together.   This is really annoying and I can't afford to replace it.   Do I have to live with it?   What can I try?  Should I maybe replace the battery?  I took the panel off to look at it and the plastic around it was pitted possibly from being really hot.

    Please don't respond with useless comments.  I've already addressed the fact that my screen was broken a few months ago.  My phone may or may not be broken beyond repair either way, as I said before I can't afford a new phone.  It's a strange problem because from what I can tell no one else has posted the same problem anywhere I can find.  Don't be a dickhole.

  • I am trying to use siri. It was working earlier. Now when I ask it to call name and number it say, Siri keeps saying( SORRY SOMETHINGS GONE WRONG CAN YOU TRY AGAIN) I HAVE TRIED SEVERAL NAMES AND NUMBERS IN MY CONTACTS.   What am I doing wrong or how can

    I am trying to use siri, Siri keeps saying( SORRY SOMETHINGS GONE WRONG CAN YOU TRY AGAIN)
    I HAVE TRIED SEVERAL NAMES AND NUMBERS IN MY CONTACTS.
    What am I doing wrong or how can I correct it.

    Siri Fix
    Turn OFF Siri
    Reset Network Settings
    Turn ON Siri
    Done
    Steps:
    Tap Settings App>General>Siri>Turn OFF
    General>Reset, near bottom>Reset Network Settings
    Tap Settings App>General>Siri>Turn ON
    Done

  • I am trying to purchase an app and update my apps all are free but it won't accept my security code, all itkeeps saying is that my payment method has been declined, I only have one card so can't try another

    I am trying to purchase an app and update my apps all are free but it won't accept my card, all it keeps saying is that my payment method has been declined, I only have one card so can't try another. Now I can't use some of my apps because they are waiting to be updated. Somebody please help!!

    Hello Sriggers,
    Welcome to the Apple Support Communities!
    I understand that you are attempting to update some applications on your iPhone but the payment method was declined. In this situation, I would recommend reading over the information in the attached article to help resolve the situation. 
    Pay an unpaid balance in the iTunes Store - Apple Support
    Best,
    Joe

  • Since the last upgrade, FF no longer runs on my laptop! I get the crash report box but it never restarts upon pressing that option. I can't try the safe mode or the other self-help options because no FF browser window opens.

    FF worked fine before I accepted the latest update just a few days ago. My friend who lives far away said that she also has problems since the upgrade. When I click on the thumbnail to open FF no window opens, all I see is the crash report. Without the window I can't try the self-helps or give a crash ID (from what I understand from reading the options). None of the options in the crash report restore the browser. When I click on one, the box just pops right back up.
    Other than general slowness of my system and some possible hacking which got someone into my paypal account this week, I've had no other computer issues. (I've changed my email address with PP & changed my email passwords in case someone is accessing my machine through my email...I'm not very computer literate...I don't believe this can happen, yet no other options were presented).
    Because my friend also experienced this crash issue I think this is totally related to the upgrade & what ever it did to my computer such that FF no longer loads.
    Please give me steps to fix this issue without FF running--all the self-help techniques seem to assume that I can run FF, get a browser window, utilize the links therein. I can't get a window open at all!

    YAY!! I have Safe mode!!
    um, now what?

  • I have a spinning wheel in Mail - stuck on trying to load a new message. I've force quit both Mail and my whole computer, but when I open mail again, it brings up the same new message - and the side bar curser is stuck in Drafts. What can I try to cancel

    I have a spinning wheel in Mail - stuck on trying to load a new message. I've force quit both Mail and my whole computer, but when I open mail again, it brings up the same new message - and the side bar curser is stuck in Drafts. What else can I try to cancel

    Can you log on to the email account via webmail in a web browser, view the email and delete it from there if necessary.

  • What can I try next?  Adobe Reader on Mac not working. Repair installation/"shut down running..."

    I am trying to fill out a form online which will not open and it says that I should install the latest version of Adobe Reader. 
    I have downloaded and tried to install Adobe Reader 9.4 on my Mac Book Pro.  (computer software including Safari have been updated)
    The form still does not appear on the screen, so I tried have been looking into what is wrong with Reader.  One issue is when I select "about Adobe Plug-Ins" it seems that most of them have not been loaded.  i.e. "Acrobat Accessibility"
    Not sure what to do so I selected to "Repair Adobe Reader Installation" and this is what comes up:
    "Select the optional components you would like to repair..."
    This is what comes up:
    "Adobe PDFViewer Safari Plugin View, fill-in and collaborate on Adobe PDFs within Safari"
    I select that and then this message appears:
    "Please shut down running applications
    Adobe Reader requires Safari to be closed before it can install or remove the selected components. If you are running Safari, please close the application and then click OK to install selected components or remove unselected components. You may also press Cancel to install the selected components at a later time."
    I have closed all running applications that I can think of and the message will not go away after I press "ok".
    What can I try next?

    I tried this:
    Manually uninstalling a plugin
    If you can't use an uninstaller program to remove a plugin, you can remove it manually:
    In the Location bar, type about:config and press Return.
    The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise!, to continue to the about:config page.
    Search for the preference: plugin.expose_full_path.
    Double-click on the plugin.expose_full_path preference in the list to change the value to true.
    ''''''''''' '''''Enter about:plugins into the Location bar to display the About Plugins page.
    Each entry in the About Plugins page will have "File name:" followed by a path. Navigate to the folder shown for the plugin you want to remove.
    Rename the file to something other than its normal name - e.g. npswf32 becomes Xnpswf32''''''''''''''''
    Double-click on the plugin.expose_full_path preference in the list on the about:config page to change the value back to false to avoid exposing the plugin path to websites.
    The plugin will be removed.
    I can't select the file name to change it. It's just a list.

  • How can I use EJB component on Weblogic 8.1 server ?

    hi,dear sir:
    How can I use EJB component on Weblogic 8.1 server ?
    It need client jar to invoke ejb,but what will I to do for this jar file? what does it contain? format ?
    If my EJB module contain 100 session bean and 50 Entity bean,but I want invoke 20 session beans in my module, how can I to do?
    thank you...

    Hi,
    This forum is exclusively for Creator. please post this on appropriate forum
    regards
    CreatorTeam

  • I recently signed up for a one month trial of adobe pro.  I logged in.  I cannot convert a single page of PDF file to word or Excel with this trial.  I just get the request to sign up for a year.  What good is the trial if I can't try it?

    I recently signed up for a one month trial of adobe pro.  I logged in.  I cannot convert a single page of PDF file to word or Excel with this trial.  I just get the request to sign up for a year.  What good is the trial if I can't try it?

    Hey vcomfort6,
    Please ensure that you are using Adobe Acrobat and not Reader to convert PDF file to word or excel.
    Could you tell me whether it is a scanned document? Does this happen with all PDFs or any specific one?
    Do you get any error message? What exactly happens when you try doing the same?
    Hope to hear from you.
    Regards,
    Anubha

  • HT201263 My ipod Touch does not want to turn on. I've tried all the different methods and I'm stuck and dont know what to do now. What else can I try?

    My ipod Touch does not want to turn on. I've tried all the different methods and I'm stuck and dont know what to do now. What else can I try?

    JesusDGZ wrote:
    My ipod Touch does not want to turn on. I've tried all the different methods and I'm stuck and dont know what to do now. What else can I try?
    I have no clue what you mean by "all the different methods."  Here are my suggestions.
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

Maybe you are looking for

  • Execution ABAP Proxy in XI

    Referring  blog /people/siva.maranani/blog/2005/05/22/schedule-your-bpm is it possible to call abap client proxy from the same client as IS? I want to schedule BPM. I generated a proxy in XI ABAP Stack and I want to execute it from  Client 100 XI sys

  • Weird Server Problem - Apple Tech Support guys baffled!

    So here is a really weird one!! I go to the finder. I choose 'Network' from the sidebar. I select a columnar view of the servers showing the names of the machines connected to my network. The last item, names 'Servers' should show an alias with a lin

  • 10.4.9 sound

    When I upgraded to 10.4.9, the sound came out of my intel iMac louder than before. The sound also comes out louder on the windows partition of my Mac, which makes me think it might be a firmware problem, but I am not sure. If anyone could point me in

  • Login onto Oracle Access Manager HELP PLEASE!!!

    Hi All, I have a major problem, all of a sudden I am unable to log on to my Access Manager via the Web Console. My OAM is using OVD for User Directory and AD as the configuration Directory. When I try and logon using any user (LDAP mainly) it says "i

  • Calling from abroad with paying monthly

    I have a 2 part question. Part one, are the pay monthly subscriptions for unlimited north America usable from abroad? I will be in Austria and I need to make calls to America from there. Part two, if I buy one of these version cell phones sype offers