Reason out the error in Userdump directory
Error coming across are as follows:
*** SESSION ID:(20.362) 2007-09-07 18:09:14.000
Skipped error 604 during the execution of SYS.ANIRUDHA
*** 2007-09-07 18:09:14.000
ksedmp: internal or fatal error
ORA-00604: error occurred at recursive SQL level 1
ORA-01438: value larger than specified precision allows for this column
ORA-06512: at line 2
Dump file f:\oracle\admin\midc\udump\midc_ora_3048.trc
Mon Sep 10 10:29:16 2007
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Oracle9i Release 9.2.0.1.0 - Production
JServer Release 9.2.0.1.0 - Production
I find all the trc files having this error. What error is this and how to resolve it.
Please resolve the issue.
You have a procedure or trigger called SYS.ANIRUDHA which is being called in an after-logon trigger.
The procedure errors out.
As your session has ADMINISTER DATABASE privilege, the trigger continues, and the error is dumped to a trace file.
You need to look at SYS.ANIRUDHA line 2, there is a statement there which generates a number which doesn't fit into a column.
Storing your own procedures/triggers under SYS is a bad idea, as they are not exported using exp.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
Regards
JerelHi, thank you for your replies, I found out few things about my servlet, and its portability
and i have few questions, although i marked this topic as answered i guess its ok to post
I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
of the modified files to the user for them to download the modified files.
What i am using to get the tempdir i will paste
File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
System.out.println(baseurl);
baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
links to the user for download ?
and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
And i want to create unique directory for each request made to the servlet , so file names dont clash.
one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
Reply A.S.A.P. please..
Thanks and regards,
Mihir Pandya -
Can't create new pdfs from powerpoint; either form within Adobe or within powerpoint. I could do this yesterday and today it won't work for some reason. The error says "an unexpected error occurred. PDFMaker was unable to produce the Adobe PDF. How do I fix this?
Is there a log file in the document folder indicating what the problem was. There are a number of reasons that PDF creation may fail. You can try to print to the Adobe PDF printer to see if there is any indication in that process. The processing is different, but the same problems may show up with both processes.
-
Help me find out the error in my first hello application
Hello every body !!!!
I am new to JEE.I am competent on JDK and also have worked on Tomcat JSP,servlet.
But i am having problem running my first JEE programme.
I have Sun Java System Application Server 9.1 with NetBeans 6 on WinXP.
I have used NetBeans 6 hence those comments are there.
Below are the code i have used:
In the hello-ejb module i have following Bean and remote interfaces==>>>
package hello;
import javax.ejb.Stateless;
@Stateless
public class HelloBean implements HelloRemote {
private String name="Yoodleyee";
public String sayHello() {
//return null;
return "My Name is "+name;
// Add business logic below. (Right-click in editor and choose
// "EJB Methods > Add Business Method" or "Web Service > Add Operation")
package hello;
import javax.ejb.Remote;
@Remote
public interface HelloRemote {
public String sayHello();
In the Hello-app-client module i have main()==>>
package hello;
import javax.ejb.EJB;
public class Main {
@EJB
private static HelloRemote helloBean;
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hi "+helloBean.sayHello());
since this program does not require deployment descriptor and also NetBean creates its own deployment discriptor hence i have not written any.
While the BUILD is successfull.But when Run this application I get deployment error.I am pasting the error stack below:
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
init:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
pre-pre-compile:
pre-compile:
do-compile:
post-compile:
compile:
pre-dist:
do-dist-without-manifest:
do-dist-with-manifest:
post-dist:
dist:
pre-run-deploy:
Initial deploying Hello to C:\nikhil workstation\EJB work\NetBeansProjects\Hello\dist\gfdeploy
Completed initial distribution of Hello
Start registering the project's server resources
Finished registering server resources
moduleID=Hello
deployment started : 0%
Deploying application in domain failed; Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
Deployment error:
The module has not been deployed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
... 16 more
BUILD FAILED (total time: 1 second)
Where as the server log has the following stack
----Log File Rotated---
Apr 18, 2008 5:06:42 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
C:/Sun/SDK/jdk\bin\java
-Dcom.sun.aas.instanceRoot=C:/Program Files/glassfish-v2/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=C:/Program Files/glassfish-v2/lib/install/applications/jmsra/imqjmsra.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/SDK/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Program Files/glassfish-v2/updatecenter/lib/updatecenter.jar,C:/Program Files/glassfish-v2/jbi/lib/jbi.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=C:/Program Files/glassfish-v2/config
-Dcom.sun.aas.defaultLogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=C:/Program Files/glassfish-v2
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=C:/Program Files/glassfish-v2/updatecenter
-Ddomain.name=domain1
-Dhttp.nonProxyHosts=1*|prdits.tatasteel.co.in*|prd.tatasteel.co.in*|myportal.tatasteel.co.in*|<local>*|localhost|127.0.0.1|WAGONTRACKER
-Dhttp.proxyHost=151.0.1.128
-Dhttp.proxyPort=3128
-Dhttps.proxyHost=151.0.1.128
-Dhttps.proxyPort=3128
-Djava.endorsed.dirs=C:/Program Files/glassfish-v2/lib/endorsed
-Djava.ext.dirs=C:/Sun/SDK/jdk/lib/ext;C:/Sun/SDK/jdk/jre/lib/ext;C:/Program Files/glassfish-v2/domains/domain1/lib/ext;C:/Program Files/glassfish-v2/javadb/lib
-Djava.library.path=C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\bin;C:\Program Files\glassfish-v2\lib
-Djava.security.auth.login.config=C:/Program Files/glassfish-v2/domains/domain1/config/login.conf
-Djava.security.policy=C:/Program Files/glassfish-v2/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=C:/Program Files/glassfish-v2/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Program Files/glassfish-v2/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/jvm.log
-cp
C:/Program Files/glassfish-v2/lib/jhall.jar;C:\Program Files\glassfish-v2\lib\appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
Starting Sun Java System Application Server 9.1 (build b58g-fcs) ...
MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_03] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
C:/Program Files/glassfish-v2/domains/domain1/config/.__com_sun_appserv_pid
ADM0001:SunoneInterceptor is now enabled
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
WEB0114: SSO is disabled in virtual server [server]
WEB0114: SSO is disabled in virtual server [__asadmin]
ADM1079: Initialization of AMX MBeans started
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://WAGONTRACKER:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
autoDeployment status dir missing, creating a new one
[AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\MEjbApp.ear for autodeployment.
deployed with moduleid = MEjbApp
[AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\MEjbApp.ear.
[AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\__ejb_container_timer_app.ear for autodeployment.
deployed with moduleid = __ejb_container_timer_app
[AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\__ejb_container_timer_app.ear.
[AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\__JWSappclients.ear for autodeployment.
deployed with moduleid = __JWSappclients
[AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\__JWSappclients.ear.
WEB0302: Starting Sun-Java-System/Application-Server.
JBIFW0010: JBI framework ready to accept requests.
No Principals mapped to Role [noaccess].
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
SMGT0007: Self Management Rules service is enabled
Application server startup complete.
javax.ejb.EJB.description()Ljava/lang/String;
Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [MyHello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:338)
... 10 more
Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
... 14 more
Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 21 more
javax.ejb.EJB.description()Ljava/lang/String;
Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open(ApplicationArchivist.java:238)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
... 10 more
Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
... 17 more
Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 24 more
javax.ejb.EJB.description()Ljava/lang/String;
Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open(ApplicationArchivist.java:238)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
... 10 more
Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
... 17 more
Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 24 more
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context ''
JBIFW0012: JBI framework startup complete.
Please help me find the error and eliminate it.
I am disgusted with it as i am stuck at this position for last 15 days.I have failed to find solution in google etc.
Even the demo sample projects given in NetBeans are generating error messages.
Please help...
Yoodleyee>
Please help me find the error and eliminate it.
I am disgusted with it as i am stuck at this position for last 15 days.15 days on "Hello Anything" should never happen.
Even the demo sample projects given in NetBeans are generating error messages.Somebody explain to me how JSF is making life "easy".
There's a lot here.
% -
How to find out the error in J2EE application without debugging
Hi all,
I am trying JCO example for Sales order in Netweaver Development Studio 2.0.3 and JCO 2.1.4.
I am using Java class as a object and calling the class in servlet.
I am checking one by one method ie systeminfo for getting connection and Salesorder method to get the detail.
I am using Printwrite class in Srvlet and getting the error in browser. but inside the method how I can get the error. the same way i can use the OUT.println in class also.
Thanks in advance.
Regards,
ramYou can check the log in the LogViewer service of your J2EE server
-
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
class Image01 extends Frame{ //controlling class
Image rawImage; //ref to raw image file fetched from disk
Image modImage; //ref to modified image
int rawWidth;
int rawHeight;
int[][][] threeDPix;
int[][][] threeDPixMod;
int[] oneDPix;
int inTop; //Inset values for the container object
int inLeft;
double slope;//Controls the slope of the line
String inputData;//Obtained via the TextField
TextField inputField;//Reference to TextField
ImgIntfc02 imageProcessingObject;
//=====================================================//
public static void main(String[] args)
Image01 obj = new Image01(); //instantiate this object
obj.repaint(); //render the image
} //end main
//=====================================================//
public Image01()
{ //constructor
//Get an image from the specified file in the current
Label instructions = new Label(
"Type a slope value and Replot.");
add(instructions);
inputField = new TextField("1.0",5);
add(inputField);
// directory on the local hard disk.
rawImage =
Toolkit.getDefaultToolkit().getImage("myco.jpeg");
//Use a MediaTracker object to block until the image
// is loaded or ten seconds has elapsed.
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(rawImage,1);
try
{ //because waitForID throws InterruptedException
if(!tracker.waitForID(1,10000))
System.out.println("Load error.");
System.exit(1);
//end if
catch(InterruptedException e)
System.out.println(e);
this.setVisible(true);//make the Frame visible
rawWidth = rawImage.getWidth(this); //Raw image has been loaded. Establish width and
rawHeight = rawImage.getHeight(this); // height of the raw image.
inTop = this.getInsets().top; //Get and store inset data for the Frame object so
inLeft = this.getInsets().left; // that it can be easily avoided.
this.setSize(800,800);
//this.setSize(inLeft+rawWidth,inTop+2*rawHeight); //Use the insets and the size of the raw image to
this.setTitle("Copyright 1997, Baldwin"); // establish the overall size of the Frame object.
this.setBackground(Color.yellow); //Make the Frame object twice the height of the
// image so that the raw image and the modified image
// can both be rendered on the Frame object.
int[] oneDPix = new int[rawWidth * rawHeight]; //Declare an array object to receive the pixel
// representation of the image
//Convert the rawImage to numeric pixel representation
try
//because grapPixels() throws InterruptedException
//Instantiate a PixelGrabber object specifying
// pix as the array in which to put the numeric
// pixel data.
PixelGrabber pgObj = new PixelGrabber(rawImage,0,0,rawWidth,rawHeight,oneDPix,0,rawWidth);
//Invoke the grabPixels() method on the PixelGrabber
// object to actually convert the image to an array
// of numeric pixel data stored in pix. Also test
// for success in the process.
if(pgObj.grabPixels() && ((pgObj.getStatus() & ImageObserver.ALLBITS) != 0))
for(int cnt = 0; cnt < (rawWidth*rawHeight);cnt++)
oneDPix[cnt] = oneDPix[cnt];
} //end for loop
threeDPix = convertToThreeDim(oneDPix,imgCols,imgRows);
int[][][] convertToThreeDim(int[] oneDPix,int imgCols,int imgRows)
//Create the new 3D array to be populated
// with color data.
int[][][] data =
new int[imgRows][imgCols][4];
for(int row = 0;row < imgRows;row++){
//Extract a row of pixel data into a
// temporary array of ints
int[] aRow = new int[imgCols];
for(int col = 0; col < imgCols;col++){
int element = row * imgCols + col;
aRow[col] = oneDPix[element];
}//end for loop on col
//Move the data into the 3D array. Note
// the use of bitwise AND and bitwise right
// shift operations to mask all but the
// correct set of eight bits.
for(int col = 0;col < imgCols;col++){
//Alpha data
data[row][col][0] = (aRow[col] >> 24)
& 0xFF;
//System.out.println(data[row][col][0]);
//Red data
data[row][col][1] = (aRow[col] >> 16)
& 0xFF;
//Green data
data[row][col][2] = (aRow[col] >> 8)
& 0xFF;
//Blue data
data[row][col][3] = (aRow[col])
& 0xFF;
}//end for loop on col
}//end for loop on row
return data;
}//end convertToThreeDim
threeDPixMod =imageProcessingObject.processImg(threeDPix,imgRows,imgCols);
public int[][][] processImg(
int[][][] threeDPix,
int imgRows,
int imgCols){
//Display some interesting information
System.out.println("Program test");
System.out.println("Width = " + imgCols);
System.out.println("Height = " + imgRows);
//Make a working copy of the 3D array to
// avoid making permanent changes to the
// image data.
int[][][] temp3D =
new int[imgRows][imgCols][4];
for(int row = 0;row < imgRows;row++){
for(int col = 0;col < imgCols;col++){
temp3D[row][col][0] =
threeDPix[row][col][0];
temp3D[row][col][1] =
threeDPix[row][col][1];
temp3D[row][col][2] =
threeDPix[row][col][2];
temp3D[row][col][3] =
threeDPix[row][col][3];
}//end inner loop
}//end outer loop
//Get slope value from the TextField
slope = Double.parseDouble(
inputField.getText());
//Draw a white diagonal line on the image
for(int col = 0;col < imgCols;col++){
int row = (int)(slope*col);
if(row > imgRows -1)break;
//Set values for alpha, red, green, and
// blue colors.
temp3D[row][col][0] = (byte)0xff;
temp3D[row][col][1] = (byte)0xff;
temp3D[row][col][2] = (byte)0xff;
temp3D[row][col][3] = (byte)0xff;
}//end for loop
//Return the modified array of image data.
return temp3D;
}//end processImg
oneDPix = convertToOneDim(
threeDPixMod,imgCols,imgRows);
int[] convertToOneDim( int[][][] data,int imgCols,int imgRows){
//Create the 1D array of type int to be
// populated with pixel data, one int value
// per pixel, with four color and alpha bytes
// per int value.
int[] oneDPix = new int[
imgCols * imgRows * 4];
//Move the data into the 1D array. Note the
// use of the bitwise OR operator and the
// bitwise left-shift operators to put the
// four 8-bit bytes into each int.
for(int row = 0,cnt = 0;row < imgRows;row++){
for(int col = 0;col < imgCols;col++){
oneDPix[cnt] = ((data[row][col][0] << 24)
& 0xFF000000)
| ((data[row][col][1] << 16)
& 0x00FF0000)
| ((data[row][col][2] << 8)
& 0x0000FF00)
| ((data[row][col][3])
& 0x000000FF);
cnt++;
}//end for loop on col
}//end for loop on row
return oneDPix;
}//end convertToOneDim
modImg = createImage(
new MemoryImageSource(
imgCols,imgRows,oneDPix,0,imgCols));
//end if statement
else System.out.println("Pixel grab not successful");
catch(InterruptedException e)
System.out.println(e);
modImage = this.createImage(new MemoryImageSource(rawWidth,rawHeight,pix,0,rawWidth)); //Use the createImage() method to create a new image
// from the array of pixel values.s
this.addWindowListener(new WindowAdapter() //Anonymous inner-class listener to terminate program
//anonymous class definition
public void windowClosing(WindowEvent e)
System.exit(0); //terminate the program
}//end windowClosing()
} //end WindowAdapter
);//end addWindowListener
}//end constructor
//=======================================================//
//Override the paint method to display both the rawImage
// and the modImage on the same Frame object.
public void paint(Graphics g)
if(modImage != null)
g.drawImage(rawImage,inLeft+50,inTop+50,this);
g.drawImage(modImage,inLeft+50,inTop+rawHeight+100,this);
}//end if
}//end paint()
}//end Image05 class
//=======================================================//You won't get much help with a post like this: no context, no stack trace, no code formatting...
-
I have SQL*Plus: Release 11.1.0.7.0 - Production on Tue Dec 27 20:49:56 2011
Copyright (c) 1982, 2008, Oracle. All rights reserved.
I try some example from book
create or replace
procedure swap(
p_parm1 in out number,
p_parm2 in out number) as
l_temp number;
begin
l_temp : = p_parm1;
p_parm1 : = p_parm2;
p_parm2 : = l_temp;
end ;
the only thing I get is Warning: Procedure created with compilation errors.
how can I fine and fix the erroron sqlplus
SQL>show err;
SQL> create or replace
procedure swap(
p_parm1 in out number,
p_parm2 in out number) as
l_temp number;
begin
l_temp : = p_parm1;
p_parm1 : = p_parm2;
p_parm2 : = l_temp;
end ; /
Warning: Procedure created with compilation errors.
SQL> show err;
Errors for PROCEDURE SWAP:
LINE/COL ERROR
7/8 PLS-00103: Encountered the symbol ":" when expecting one of the
following:
:= . ( @ % ;
SQL>
create or replace
procedure swap(
p_parm1 in out number,
p_parm2 in out number) as
l_temp number;
begin
l_temp := p_parm1;
p_parm2 := l_temp;
p_parm1 := p_parm2;
end ;SQL> /
Procedure created.
SQL> -
How to find out the error PL/SQL
Actually I have written stored procedures in oracle. Which contains 5 insert statements.
While calling stored procedures in java. I get an error. How find out error in which line.
How to debug.The few times a stack trace wasn't enough for debugging, I would test the stored procedure from within SQL*Plus, and sprinkle calls to DBMS_OUTPUT.PUT_LINE() to add tracing statements.
To actually see the output from DBMS_OUTPUT in SQL*Plus, you have to issue the command:
SET SERVEROUTPUT ONNote that the output is very very buffered; don't use the timing of the output to you screen as debugging information. -
hi all,
heres a problem I can't it out can any one help me.
Its not printing the WieldValue5
the String here it should ignore "SXGI", "F"'s, and "E" and it should print ControlID1
WieldType1
WieldValue1
ControlID5
WieldType5
WieldValue5
its not printing "WieldValue5"
public class Example {
public static void main(String[] args) throws Exception {
String strReq = "SXGIDFControlID1FWieldType1FWieldValue1F" +
"ControlID2FWieldType2FWieldValue2F" +
"ControlID3FWieldType3FWieldValue3F" +
"ControlID4FWieldType4FWieldValue4F" +
"ControlID5FWieldType5FWieldValue5E";
int iIndexF = strReq.indexOf("F");
String strTemp = strReq.substring(iIndexF + 1);
int iIndexE = -1;
while(-1 != iIndexF) {
iIndexF = strTemp.indexOf("F");
if(-1 == iIndexF) {
throw new Exception("Error in ControlID");
String strControlID = strTemp.substring(0, iIndexF);
System.out.println(strControlID);
int iIndexFieldType = strTemp.indexOf("F", iIndexF + 1);
if(-1 == iIndexFieldType) {
throw new Exception("Error in FieldType");
String strFieldType = strTemp.substring(iIndexF + 1, iIndexFieldType);
System.out.println(strFieldType);
int iIndexFieldValue = strTemp.indexOf("F", iIndexFieldType + 1);
String strFieldValue;
if(-1 == iIndexFieldValue) {
throw new Exception("Error in FieldValue");
strFieldValue = strTemp.substring(iIndexFieldType + 1, iIndexFieldValue);
System.out.println(strFieldValue);
iIndexF = iIndexFieldValue;
if(-1 == iIndexF) {
iIndexE = strTemp.indexOf("E", iIndexFieldType + 1);
if(-1 == iIndexE) {
throw new Exception("Error in FieldValue");
strFieldValue = strTemp.substring(iIndexFieldType + 1, iIndexE);
System.out.println(strFieldValue);
iIndexFieldType = iIndexE;
strTemp = strTemp.substring(iIndexFieldValue + 1);
System.out.println(strTemp);
}null
nullBased on the information you've provided, here's a stripped down version:
String strReq = "SXGIDFControlID1FWieldType1FWieldValue1F" +
"ControlID2FWieldType2FWieldValue2F" +
"ControlID3FWieldType3FWieldValue3F" +
"ControlID4FWieldType4FWieldValue4F" +
"ControlID5FWieldType5FWieldValue5E";
int beg = 0, end = 0;
while ( true ) {
beg = strReq.indexOf("F",beg);
end = strReq.indexOf("F",beg+1);
if (beg != -1) {
if ( end == -1) {
end = strReq.indexOf("E",beg+1);
if ( end == -1)
end = strReq.length();
System.out.println(strReq.substring(beg+1,end));
else
break;
beg = end;
} -
Need possible reason for the error!!!
The following error occured on a QA machine while testing....when clicked on a lable a dialog should come up which contains a table with data.
I am not able to reproduce this error on developmenet machines....So i need the possible reason the occurance of this error..
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTableUI.registerKeyboardAction(BasicTableUI.java, Compiled Code)
at javax.swing.plaf.basic.BasicTableUI.registerKey(BasicTableUI.java, Compiled Code)
at javax.swing.plaf.basic.BasicTableUI.registerKey(BasicTableUI.java, Compiled Code)
at javax.swing.plaf.basic.BasicTableUI.installKeyboardAction(BasicTableUI.java:616)
at javax.swing.plaf.basic.BasicTableUI.installUI(BasicTableUI.java:497)
at javax.swing.JComponent.setUI(JComponent.java, Compiled Code)
at javax.swing.JTable.setUI(JTable.java:2081)
at javax.swing.JTable.updateUI(JTable.java:2134)
at ASMSFrame.UserDialog.setTable(UserDialog.java:264)
thanksLine number 264 of UserDialog.java is throwing a NullPointerException. You are probably calling a method on an object that does not exist.
-
Urgent help me to find out the error
hi ppl,
i have installed jre-1_5_0_04-windows-i586-p-iftw . but i am not able to compile any java program. when i try to compile javaw it is generating an error " could not find the main class : program will exit ".
pls help me to figure out what went wrong.
pls i need a reply soon.
sweetyThe JRE doesn't include a compiler. You need the SDK.
javaw is used to run Java applications, not to compile them. -
public void datfileout()
try
BufferedWriter outstream = new BufferedWriter(new FileWriter("character.txt"));//declares variable that reads in from file
for(int x=0;x<holdinfo.size();x++)
outstream.write((String)holdinfo.get(x));//writes names to file
outstream.newLine();//starts a new line
outstream.close(); //closes file
catch (Exception e)
System.err.println("Caught exception " + e.toString());//checks for an error
this is what i have attempted to put in an applet but it seems just to freeze every time i go in this method what should i do?Your code works for me :
* Applet_Test.java
import java.io.*;
import java.util.*;
import javax.swing.*;
public class Applet_Test extends JApplet {
public void init() {
datfileout();
System.out.println("Applet_Test is OK");
ArrayList holdinfo = new ArrayList();{
holdinfo.add("Test 1");
holdinfo.add("Test 2");
holdinfo.add("Test 3");
public void datfileout() {
try {
BufferedWriter outstream = new BufferedWriter(new FileWriter("character.txt"));
for(int x=0;x<holdinfo.size();x++) {
outstream.write((String)holdinfo.get(x));//writes names to file
outstream.newLine();//starts a new line
outstream.close(); //closes file
} catch (Exception e) {
System.err.println("Caught exception " + e.toString());//checks for an error
} -
Need help with my batch code, cant seem to figure out the errors.
Hello all, so as part of my job I have to check a list of shared drives on random servers throughout the world to make sure they are not open. I am trying to make a batch file to check them all at once instead of mapping to each one individually. It would
save a lot of time. So far I got this code with the help of a member of
reddit:
@echo off
:: Ensure Extensions are enabled to avoid silent failure
setlocal EnableExtensions DisableDelayedExpansion
set "Input-Server-List=H:\Desktop\serverlist.txt"
set "Open-Share-List=H:\Desktop\open_shares.txt"
set "Locked-Share-List=H:\Desktop\locked_shares.txt"
:: Create empty files
copy nul "%Open-Share-List%" 1>nul
copy nul "%Locked-Share-List%" 1>nul
:: Test the shares to see if they're online or not
for /f "usebackq delims=" %%S in ("%Input-Server-List%") do @(
pushd "%%~S" 2>nul && (
popd
1>> "%Open-Share-List%" echo %%~S
echo ONLINE -- %%S
) || (
1>> "%Locked-Share-List%" echo %%~S
echo OFFLINE - %%S
echo Testing Complete! Results have been logged to File.
:: Open files in default program (typically notepad.exe)
explorer "%Open-Share-List%"
explorer "%Locked-Share-List%"
:: End of script
endlocal
timeout -1 /nobreak
exit /b
But there are a few (approx 4) servers that are coming up as online/accessible in the list that are actually closed/appropriately locked down. I have no idea why.. all the rest are working as they should. Any help would be much appreciated. Any questions
let me know. Once again, I would really really appreciate some help.Here's a tester:
Get-Content .\shareList.txt | ForEach {
$share = $_
If (Test-Path -Path $share) {
$found = $true
} Else {
$found = $false
try {
$null = Get-ChildItem -Path $share -ErrorAction Stop
$connect = $true
} catch {
$connect = $false
$props = @{
Share = $share
Found = $found
Connect = $connect
New-Object PsObject -Property $props
} | Select Share,Found,Connect |
Sort Connect,Share |
Export-Csv .\shareListCheck.csv -NoTypeInformation
As the others have pointed out though, this won't really give you any solid information.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
I'm having trouble importing an audio book.
Repair your Apple software update.
Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
If you don't find ASU, go to Control Panel:
START > CONTROL PANEL > Programs n Features / highlight ASU and click CHANGE then REPAIR, -
How to find out the names which have overlapping times
Hello:
I've a table which contains some names and their calling time period. I need to find out which of those names have overlapping time period.
Name|StartTime|EndTime
A|26/3/2011 12:33:16 PM|26/3/2011 12:40:10 PM
A|26/3/2011 12:41:28 PM|26/3/2011 12:43:19 PM
A|26/3/2011 12:42:28 PM|26/3/2011 12:47:50 PM
B|26/3/2011 10:22:28 PM|26/3/2011 10:50:10 PM
B|26/3/2011 10:49:28 PM|26/3/2011 10:53:50 PM
B|26/3/2011 10:50:28 PM|26/3/2011 10:59:50 PM
B|26/3/2011 10:59:58 PM|26/3/2011 11:10:50 PM
C|26/3/2011 11:05:58 PM|26/3/2011 11:10:50 PM
C|26/3/2011 11:40:58 PM|26/3/2011 11:50:50 PM
I need those names which have multiple calls and one call starts before the end of another call. If anyone have four calls and two of those overlapped (A has two overlapping and B has three overlapping), that name should also come into my list like below:
Name|Overlapping_Count
A|1
B|2
Can anyone help me please?
Thanks/RazinThans for pointing out the error in my post. It seems, being rather busy in this period, I'm starting to wear out as I missed the fact the overlaps would be returned twice. :(
I had in mind a more general case where as single row overlaps with more than one other row.
The OP's data contained one to one overlaps only and it seems no generalized approach was needed.
with
the_data as
(select 'A' name,to_date('26/03/2011 12:33:16','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:40:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'A' name,to_date('26/03/2011 12:41:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:43:19','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'A' name,to_date('26/03/2011 12:42:20','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:42:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'A' name,to_date('26/03/2011 12:42:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:47:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:22:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:50:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:49:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:53:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:50:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:59:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:59:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'C' name,to_date('26/03/2011 11:05:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'C' name,to_date('26/03/2011 11:40:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:50:50','dd/mm/yyyy hh24:mi:ss') end_time from dual
select name,count(distinct overlap) overlapping_count
from (select x.name,to_char(greatest(x.start_time,y.start_time),'yyyymmddhh24miss')||'|'||to_char(least(x.end_time,y.end_time),'yyyymmddhh24miss') overlap
from the_data x,the_data y
where x.name = y.name
and greatest(x.start_time,y.start_time) < least(x.end_time,y.end_time)
and x.start_time != y.start_time
and x.end_time != y.end_time
group by name
order by name
with
the_data as
(select 'A' name,to_date('26/03/2011 12:33:16','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:40:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'A' name,to_date('26/03/2011 12:41:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:43:19','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'A' name,to_date('26/03/2011 12:42:20','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:42:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'A' name,to_date('26/03/2011 12:42:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:47:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:22:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:50:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:49:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:53:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:50:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:59:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'B' name,to_date('26/03/2011 10:59:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'C' name,to_date('26/03/2011 11:05:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
select 'C' name,to_date('26/03/2011 11:40:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:50:50','dd/mm/yyyy hh24:mi:ss') end_time from dual
t as
(select name,
case when max(end_time) over(partition by name order by start_time,end_time rows between unbounded preceding and 1 preceding) > start_time
then 0
else 1
end start_of_group
from the_data
select name,
count(*) overlapping_count
from t
where start_of_group = 0
group by name
order by nameRegards
Etbin
Maybe you are looking for
-
How do I pick where a video is stored ??
What I mean is, I am trying to move some MP4 video files onto my Itunes. It works ok, but stores them under "TV SHow" rather than movies. I find I cant sync them to put them onto my IPOD classic unless they are in the Movies folder. Probably a simple
-
Images looks darker in Adobe Camera Raw than in Photoshop
when I open a raw image in adobe camera raw at 16 bit Adobe RGB and don't make any adjustments in acr when I then bring it into Photoshop is looks softer contrast and lighter.
-
Essbase migration from different env
Hi All, I need to migrate CUBE from DEV to QA env, I use the Essbase Administration tool to connect DEV and QA Essbase server, I copied the application from DEV to QA, after I test in the OBIEE report, found only the dimensions have data, the fact ha
-
Dynamic dropdown filling in offline form
Hi, I have a internal table contaning some values, i have binded my dropdown element wih the field of the table containing the values, however i see only the first value in the table and its an offline form. Correct replies will be well rewarded.
-
Macbook pro 3.1 with 64bit kernel. when??
hi all, there's already 10.6.2. and still no chance of using it 64bit on a macbook pro 3.1 (which, by all means, is a completely decent computer that should run in 64bit like a charm). so the question is: when can we expect a firmware update to fix t