Name conflict / package weirdness

Hi all
I recently came across something weird that caused me a lot of grey hairs. Although I have worked around the problem, the explanation has got me stymied.
I have a package hierarchy that looks something like this:
zeeb.utils.db.DataAccessClass
zeeb.exceptions.CommunicationException
zeeb.objects.Good
zeeb.objects.Bad
zeeb.test.Good
zeeb.test.Bad
Note: to simplify things, I have renamed some of the classes and stripped out most of the methods. Each of the class definitions can be found below.
The class definitions for the 2 'Good' classes are identical - they simply sit in 2 different packages.
The same goes for the 2 'Bad' classes.
'Good' and 'Bad' are also almost identical - the only difference being in the syntax of their respective import statements:
Bad.java fragment
import zeeb.exceptions.*;Good.java fragment
import zeeb.exceptions.CommunicationException;As you can see, Good.java specifies CommunicationException 'explicitly', whilst Bad.java imports the entire package.
After I pop these files into the relevant folders and try and compile, this is what I get:
zeeb.objects.Good - compiles fine
zeeb.objects.Bad - compiles fine
zeeb.test.Good - compiles fine
zeeb.test.Bad - fails to compile
Here is the compilation error for zeeb.test.Bad:
Bad.java:13: exception zeeb.objects.CommunicationException is never thrown in body of corresponding try statement
                catch (CommunicationException ce) {
                ^
Bad.java:11: unreported exception zeeb.exceptions.CommunicationException; must be caught or declared to be thrown
                        dataAccess.executeUpdate();There are a couple of weird things here:
1. Firstly, why does zeeb.test.Bad fail to compile in the first place?
2. Secondly, if zeeb.test.Bad fails, why does zeeb.test.Good succeed? The only difference between the 2 classes is the idiom used for the import statement. But zeeb.exceptions.* expands to zeeb.exceptions.CommunicationException - so the 2 should be equivalent?
3. Lastly, if zeeb.test.Bad fails, why does zeeb.objects.Bad succeed? The 2 files are identical, the only difference being the package location.
Now here's the other funny thing. If I rename CommunicationException (and update the classes that reference it), the whole problem goes away. This got me thinking - perhaps there was another CommunicationException class somewhere in my CLASSPATH? I found one in rt.jar (javax.naming.CommunicationException) - so presumably that's the culprit here.
Still - there are some things here that don't add up. We have answered question '1' (above) - but questions '#2' and '#3' still stand. To reiterate the question (#2) again:
zeeb.exceptions.* expands to zeeb.exceptions.CommunicationException - so the 2 should be equivalent?
Can anyone enlighten me?
Many thanks
Pete
=============================
Class Definitions:
Bad.java (objects package)
package zeeb.objects;
import zeeb.utils.db.*;*
*import zeeb.exceptions.*;
public class Bad {
     public void foo() {
          DataAccessClass dataAccess = new DataAccessClass();
          try {     
               dataAccess.executeUpdate();               
          catch (CommunicationException ce) {
Bad.java (test package)
package zeeb.test;
import zeeb.utils.db.*;*
*import zeeb.exceptions.*;
public class Bad {
     public void foo() {
          DataAccessClass dataAccess = new DataAccessClass();
          try {     
               dataAccess.executeUpdate();               
          catch (CommunicationException ce) {
Good.java (objects package)
package zeeb.objects;
import zeeb.utils.db.*;
import zeeb.exceptions.CommunicationException;
public class Good {
     public void foo() {
          DataAccessClass dataAccess = new DataAccessClass();
          try {     
               dataAccess.executeUpdate();               
          catch (CommunicationException ce) {
Good.java (test package)
package zeeb.test;
import zeeb.utils.db.*;
import zeeb.exceptions.CommunicationException;
public class Good {
     public void foo() {
          DataAccessClass dataAccess = new DataAccessClass();
          try {     
               dataAccess.executeUpdate();               
          catch (CommunicationException ce) {
CommunicationException.java
package zeeb.exceptions;
public class CommunicationException extends Exception {
     public CommunicationException() {
     public CommunicationException(String message) {
          super(message);
DataAccessClass.java
package zeeb.utils.db;
import java.sql.*;*
*import java.util.*;
import zeeb.exceptions.*;
public class DataAccessClass {
     public DataAccessClass() {
     public void executeUpdate() throws CommunicationException {
          throw new CommunicationException();
}

pac wrote:
Here is the compilation error for zeeb.test.Bad:
Bad.java:13: exception zeeb.objects.CommunicationException is never thrown in body of corresponding try statement
catch (CommunicationException ce) {
^
Bad.java:11: unreported exception zeeb.exceptions.CommunicationException; must be caught or declared to be thrown
dataAccess.executeUpdate();...
2. Secondly, if zeeb.test.Bad fails, why does zeeb.test.Good succeed? The only difference between the 2 classes is the idiom used for the import statement. But zeeb.exceptions.* expands to zeeb.exceptions.CommunicationException - so the 2 should be equivalent?zeeb.exceptions.* doesn't "expand" to anything. It's just a shorthand convenience to make the compiler figure out what package a non-fully-qualified symbol reference belongs to.
Now here's the other funny thing. If I rename CommunicationException (and update the classes that reference it), the whole problem goes away. This got me thinking - perhaps there was another CommunicationException class somewhere in my CLASSPATH? I found one in rt.jar (javax.naming.CommunicationException) - so presumably that's the culprit here.
Not unless you imported javax.naming.*, which doesn't show in the (simplified) code snippets you posted.
I don't believe you have posted anything which truely represents the state of affairs which led to the compile error.

Similar Messages

  • [svn:bz-trunk] 20587: update the echoService destination name to qa.axis. EchoService to avoid a name conflict in ria package.

    Revision: 20587
    Revision: 20587
    Author:   [email protected]
    Date:     2011-03-03 14:11:37 -0800 (Thu, 03 Mar 2011)
    Log Message:
    update the echoService destination name to qa.axis.EchoService to avoid a name conflict in ria package.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/proxy-config.mods.xml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/dataTypesTest/p roxy-config.xml

  • Conflicting packages -- what-to-do?

    Code "pacman -Qi <package-name>" displays information on a given package. The header "Conflicts With" shows if the package conflicts with any packages. If conflicts are found, what are we suppose to do? For my information, how does conflicts occur?
    Example:
    When I run pkgsweeper, it found the following conflicting packages:
    iputils --> conflicts with : arping
    module-init-tools --> conflicts with : modutils
    mozilla --> conflicts with : mozilla-include
    According to "pacman -Q arping" the package doesn't exist. But the program does exist.
    [root@localhost root]# whereis arping
    arping: /usr/sbin/arping /usr/man/man8/arping.8.gz
    Package Sweeper:
    http://bbs.archlinux.org/viewtopic.php?t=2187

    Disclaimer : I haven't used pkgsweeper yet.
    But anyways :-) ... I don't think the conflicts are a problem <b> as long as you have not installed both packages</b>. It simply means, don't install both packages that conflict. And in fact, pacman won't let you install conflicting packages (maybe you can force it really hard somehow).
    My take on this output : too much information :-) ... it is only useful if accidently both packages are installed. Then your best choice is - generally - deinstall both, and reinstall the one you want (if that is possible).
    And one more bit of information : there actually do exist or existed the confliciting packages arping, modutils etc. The conflicts are simply introduced so that pacman can remove them once you install iputils etc.

  • Name conflict

    There is a game in aur named enigma. I did a package for a game, that is named enigma, too. It was formerly known as oxyd, and then have been open sourced as enigma.
    What to do? name the package enigma-oxyd?
    # $Id: PKGBUILD,v 1.1 2005/10/09 19:03:37 judd Exp $
    pkgname=enigma-oxyd
    pkgver=0.92
    pkgrel=1
    pkgdesc="Enigma is a puzzle game inspired by Oxyd on the Atari ST and Rock'n'Roll on the Amiga. The object of the game is to find uncover pairs of identically colored Oxyd stones. Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams, and, most of all, countless hairy puzzles usually block your direct way to the Oxyd stones... "
    depends=('sdl' 'sdl_ttf' 'sdl_mixer' 'sdl_image')
    url="http://www.nongnu.org/enigma/"
    groups=('game')
    conflicts=('enigma')
    source=(http://download.berlios.de/enigma-game/enigma-$pkgver.tar.gz)
    #source=(http://savannah.nongnu.org/download/enigma/$pkgname-$pkgver.tar.gz)
    md5sums=('4b1407c637ec5b4d452ba54392255c80')
    build() {
    cd $startdir/src/enigma-$pkgver
    ./configure --prefix=/usr/
    make || return 1
    make DESTDIR=$startdir/pkg install

    Cerebral wrote:
    Not so much in AUR as in extra.
    07:53pm $ pacman -Ss enigma
    extra/enigma 1.04-1
    Enigma is a puzzle game involving falling blocks
    OK
    I would call it enigma-oxyd. The pkgdesc should be shortened though.

  • PI 7.0 - SMICM - Host Name - Conflict with other places

    Hi Friends,
    We have host name conflict in SMICM and in other places.
    For example, in SMICM it shows the host name 'A' for HTTP protocol and it is green, where as in other places like in RZ10 (Profiles in ABAP), Exchange Profiles (Connection Parameters, Host name), in SLD and in Visual Admin the host name is mentioned as 'B'.
    At present, the messages are failing in SXMB_MONI with the error "CLIENT_RECEIVE_FAILED 402 ICM_HTTP_TIMEOUT  ".
    When we checked the paramter "icm/host_name_full" in RZ11,it shows the empty value.
    This problem comes in our quality PI system, ABAP stack.
    Could you kindly clarify in SMICM for the HTTP service from where the host name is taken and displays here?
    Kind regards,
    Jegathees P.

    Connect to the operating system. Check this file (replace xxx with your SID and, if applicable, 00 with the correct instance):
    C:\usr\sap\xxx\SYS\profile\xxx_DVEBMGS00_ILBNKxxx
    Find this line:
    icm/host_name_full = hostname.company.corp
    Is this maybe empty / incorrect / incomplete?
    After changing this the server needs to be restarted.
    Sometimes we had strange behaviors after host name changes, which went away after going to sicf -> execute -> right-click on default host -> deactivate -> right-click again -> activate -> in the pop-up click the second activate button, which is for activating the system and all dependent entries.

  • "recording name conflict" error

    Hi,
    I have a dependency problem building a new copy of Heimdal Kerberos (SS12.1 on SPARC) that I don't know how to work around. When make begins linking a number of the shared libraries together, it bombs out with:
    ld: fatal: recording name conflict: file `../krb5/.libs/libkrb5.so' and file `/opt/heimdal/lib/sparcv9/libkrb5.so' provide identical dependency names: libkrb5.so.25 (possible multiple inclusion of the same file)
    Libtool is finding /opt/heimdal/lib/sparcv9/libkrb5.so, listed in an .la file for openldap. But, since I built a new version of libkrb5.so, located at ../krb5/.libs/libkrb5.so, it fails. I tried to rename the old directory, but then it fails when it can't find it:
    ggrep: /opt/heimdal/lib/sparcv9/libgssapi.la: No such file or directory
    /opt/gnu/bin/sed: can't read /opt/heimdal/lib/sparcv9/libgssapi.la: No such file or directory
    libtool: link: `/opt/heimdal/lib/sparcv9/libgssapi.la' is not a valid libtool archive
    gmake[3]: *** [libhdb.la] Error 1
    gmake[3]: Leaving directory `/opt/ws/dists/Services/heimdal-1.2.1/lib/hdb'
    gmake[2]: *** [all] Error 2
    gmake[2]: Leaving directory `/opt/ws/dists/Services/heimdal-1.2.1/lib/hdb'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/opt/ws/dists/Services/heimdal-1.2.1/lib'
    gmake: *** [all-recursive] Error 1
    How do I get libtool to ignore the old file & use the new one? Any help would be greatly appreciated.
    Thanks.
    -John

    You probably have a shared library with a runpath that includes the location of the old libkrb5.so, and that does not include the location of the new version. The reference to libkrb5.so then can't be satisfied if you remove or rename the old directory. That dependency would also explain the linker complaint about the two copies of libkrb5.so when both are visible.
    Run ldd on the various project libraries to find ones with a dependency on /opt/heimdal/lib/sparcv9/libkrb5.so. Rebuild them with a new runpath (-R option) that does not include /opt/heimdal/lib/sparcv9 but does include the directory containing the new library version.
    If you can't remove /opt/heimdal/lib/sparcv9 from the runpath because the applciation needs other libraries in that directory, you need to replace the libkrb5.so in the directory with your new version. (I would rename the old directory so that you don't lose it.)
    (Note: the -L option tells the linker where to look for libraries at program link time. The -R option tells the run-time loader where to look for libraries when the program is run.)
    You also mention a ".la" file. I don't know what that is. I don't find a mention of such a thing in the Solaris Linker and Libraries Guide.

  • Possible name conflict flex - java

    I have a string property 'comments' in data object A, it was working fine that the data was passing from flex to java, then because of some other properties in A, i need to add @XmlType and propOrder for A, then suddendly 'comments' is always null from flex to java, when other properties are passing ok, after many attempts, i change the property name from 'comments' to some other name and it works again (actual value is passed from flex to java).
    So i am wondering, is it flex, web services, or jaxb that might have a name conflict with 'comments'? I have another property in A that also is null from flex to java, but this one is complex object that has a string property and a byte[] property, and it is null, does anyone have any thoughts/suggestions?
    Thanks
    Shannon

    Thanks Michael, i will take a look. My other property is 'uploadedFile' of a class 'uploadedFile' which has 'data' and 'fileName' properties, so i ended up changing all these names, and now it works.
    Shannon

  • Jndi name conflict found in

    I have received a naming conflict when starting up App Server 7.
    I am using the Sun Studio Enterprise.
    The abstract schema name for the entity bean is Billercenter and everywhere else that the bean is referenced is billerCenter.
    I am thinking that the server is complaining about the name not matching in the application module, but it won't let me change out the name. The following error is from the server.log. Anyone know what the fix is?
    [12/May/2004:16:59:13] SEVERE ( 4516): EJB5090: Exception in creating EJB container [javax.naming.NameAlreadyBoundException [Root exception is org.omg.CosNaming.NamingContextPackage.AlreadyBound: IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0]]
    [12/May/2004:16:59:13] SEVERE ( 4516): appId=billerCenter_EJBModule moduleName=billerCenter_EJBModule ejbName=billerCenter
    [12/May/2004:16:59:13] SEVERE ( 4516): LDR5012: Jndi name conflict found in [billerCenter_EJBModule]. Jndi name [ejb/Billercenter] for bean [billerCenter] is already in use.
    [12/May/2004:16:59:13] SEVERE ( 4516): LDR5013: Naming exception while creating EJB container:
    javax.naming.NameAlreadyBoundException. Root exception is org.omg.CosNaming.NamingContextPackage.AlreadyBound: IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0
    at org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read(AlreadyBoundHelper.java:60)
    at org.omg.CosNaming._NamingContextExtStub.bind(_NamingContextExtStub.java:222)
    at com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:552)
    at com.sun.jndi.cosnaming.CNCtx.bind(CNCtx.java:588)
    at javax.naming.InitialContext.bind(InitialContext.java:359)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:204)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:168)
    at com.sun.ejb.containers.BaseContainer.initializeHome(BaseContainer.java:409)
    at com.sun.ejb.containers.EntityContainer.initializeHome(EntityContainer.java:355)
    at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:230)
    at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
    at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
    at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
    at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
    at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
    at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
    at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
    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:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:536)
    [12/May/2004:16:59:13] WARNING ( 4516): CORE5020: Error while loading ejb module
    [12/May/2004:16:59:13] WARNING ( 4516): ADM5603:Event listener error [Error while loading EJB module [billerCenter_EJBModule]. Please refer to the server log for more details. ]

    12/May/2004:16:59:13] SEVERE ( 4516): LDR5012: Jndi name conflict found in [billerCenter_EJBModule]. Jndi name [ejb/Billercenter] for bean [billerCenter] is already in use.
    If you look at your deployment descriptor which should be ejb-jar.xml you s hould have more than 1 jndi entries which are identical for more than 1 ejbs ..

  • Help! NameAlreadyBound Exception, JNDI name conflict

    Hi, I am using EJB 3.0 and I really have no idea on using JNDI. I read several queries and answers on this problem but I dont know how to solve it. When i go to ejb-jar.xml, I see very little information. Please help! Urgently needed. Any ideas will do, thanks!
    EJB5090: Exception in creating EJB container [javax.naming.NameAlreadyBoundException: Use rebind to override]
    appId=ESCM moduleName=ESCM-ejb_jar ejbName=SystemfunctionBean
    LDR5012: Jndi name conflict found in [ESCM]. Jndi name [AHL.SystemfunctionRemote] for bean [SystemfunctionBean] is already in use.
    LDR5013: Naming exception while creating EJB container:
    javax.naming.NameAlreadyBoundException: Use rebind to override
    at com.sun.enterprise.naming.TransientContext.doBindOrRebind(TransientContext.java:279)
    at com.sun.enterprise.naming.TransientContext.bind(TransientContext.java:219)
    at com.sun.enterprise.naming.SerialContextProviderImpl.bind(SerialContextProviderImpl.java:98)
    at com.sun.enterprise.naming.LocalSerialContextProviderImpl.bind(LocalSerialContextProviderImpl.java:77)
    at com.sun.enterprise.naming.SerialContext.bind(SerialContext.java:372)
    at com.sun.enterprise.naming.SerialContext.bind(SerialContext.java:387)
    at javax.naming.InitialContext.bind(InitialContext.java:363)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:215)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:168)
    at com.sun.ejb.containers.BaseContainer.initializeHome(BaseContainer.java:948)
    at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:220)
    at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:671)
    at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:490)
    at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:184)
    at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:113)
    at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
    at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
    at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
    at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
    at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
    at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    CORE5021: Application NOT loaded: [ESCM]

    12/May/2004:16:59:13] SEVERE ( 4516): LDR5012: Jndi name conflict found in [billerCenter_EJBModule]. Jndi name [ejb/Billercenter] for bean [billerCenter] is already in use.
    If you look at your deployment descriptor which should be ejb-jar.xml you s hould have more than 1 jndi entries which are identical for more than 1 ejbs ..

  • Name conflict in the DTR in the consolidation workspace

    Hello Experts,
    While transporting the track, during assembly I am getting a name conflict in the DTR in the consolidation workspace. Any ideas on how to resolve this problem???
    Thanks and Regards,
    Divyata

    Hi,
    I got the solution.
    Regards,
    Divyata

  • Excessive Name Conflicts

    Hi,
    I have iTunes running on two seperate Windows 7 laptops and am unable to share between these. I am also seeing multiple error messages per second in the event viewer from Bonjour services.
    mDNSCoreReceiveResponse: Received from 192.168.1.130:50894 22 26AD664146XXXXXX.touch-able.tcp.local. SRV 0 0 3689 Colorado.local.
    mDNSCoreReceiveResponse: ProbeCount 2; will rename 18 26AD664146XXXXXX.touch-able.tcp.local. SRV 0 0 3689 Utah.local.
    Excessive name conflicts (32) for 26AD664146XXXXXX.touch-able.tcp.local. (SRV); rate limiting in effect
    I have the latest version of iTunes and Bonjour installed.
    Has anyone seen this or know how to resolve it ? I am also unable to get
    iPhone Remote working with both iTunes libraries at the same time.
    I have checked the Library Persistent ID on both itunes installs (.itl and .xml)
    and these are different.
    Thanks
    John

    I'm seeing multiple errors from Bonjour, also, on both my Win 7 and XP laptops.
    They are different from the ones you posted:
    492: ERROR: read_msg errno 10054 (An existing connection was forcibly closed by the remote host.)
    The number in front cycles through different values: 520,576, 240, 536, 236, 560, 492, 516, 568. Always a burst of ten of them with different numbers.

  • How to get a called procedure/function name within package?

    Hi folks,
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    For example:
    CREATE OR REPLACE PACKAGE BODY "TEST_PACKAGE" IS
       PROCEDURE proc_1 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
       PROCEDURE proc_2 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          proc_1;
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
    END; I would like to replace "???????" with a function which would return a name of called procedure, so result of trace data after calling TEST_PACKAGE.proc_2 would be:
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_2*
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_2*I tried to use "dbms_utility.format_call_stack" but it did not return the name of procedure/function.
    Many thanks,
    Tomas
    PS: I don't want to use an hardcoding

    You've posted enough to know that you need to provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    >
    I usually use this method
    1. Create a SQL type for logging information
    2. Put the package name into a constant in the package spec
    3. Add a line to each procedure/function for the name.
    Sample package spec
          * Constants and package variables
              gc_pk_name               CONSTANT VARCHAR2(30) := 'PK_TEST';Sample procedure code in package
          PROCEDURE P_TEST_INIT
          IS
            c_proc_name CONSTANT VARCHAR2(80)  := 'P_TEST_INIT';
            v_log_info  TYPE_LOG_INFO := TYPE_LOG_INFO(gc_pk_name, c_proc_name); -- create the log type instance
          BEGIN
              NULL; -- code goes here
          EXCEPTION
          WHEN ??? THEN
              v_log_info.log_code := SQLCODE;  -- add info to the log type
              v_log_info.log_message := SQLERRM;
              v_log_info.log_time    := SYSDATE;
              pk_log.p_log_error(v_log_info);
                                    raise;
          END P_PK_TEST_INIT;Sample SQL type
    DROP TYPE TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE TYPE_LOG_INFO AUTHID DEFINER AS OBJECT (
    *  NAME:      TYPE_LOG_INFO
    *  PURPOSE:   Holds info used by PK_LOG package to log errors.
    *             Using a TYPE instance keeps the procedures and functions
    *             independent of the logging mechanism.
    *             If new logging features are needed a SUB TYPE can be derived
    *             from this base type to add the new functionality without
    *             breaking any existing code.
    *  REVISIONS:
    *  Ver        Date        Author           Description
    *   1.00      mm/dd/yyyy  me               Initial Version.
        PACKAGE_NAME  VARCHAR2(80),
        PROC_NAME     VARCHAR2(80),
        STEP_NUMBER   NUMBER,
        LOG_LEVEL   VARCHAR2(10),
        LOG_CODE    NUMBER,
        LOG_MESSAGE VARCHAR2(1024),
        LOG_TIME    TIMESTAMP,
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
                    RETURN SELF AS RESULT
      ) NOT FINAL;
    DROP TYPE BODY TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE BODY TYPE_LOG_INFO IS
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
         RETURN SELF AS RESULT IS
        BEGIN
          self.package_name  := p_package_name;
          self.proc_name     := p_proc_name;
          self.step_number   := p_step_number;
          self.LOG_level   := p_LOG_level;
          self.LOG_code    := p_LOG_code;
          self.LOG_message := p_LOG_message;
          self.LOG_time    := p_LOG_time;
          RETURN;
        END;
    END;
    SHO ERREdited by: rp0428 on Jan 11, 2013 10:35 AM after 1st cup of coffee ;)

  • NWDI: Name Conflict in Consolidation Track

    Hi Experts,
    We transported our development components from Dev(development) to Cons(consolidation) track.
    It is throwing an error name conflict in CONS track.
    I have tried to accept active version in cons track.But it was not allowing me to create an activity.
    Error: FAILED: Checkout inactive DeltaV resource failed (Forbidden [(pre||post)-condition failed: DAV:access-denied]) 
    Could anyone help on this issue?
    Thanks in Advance.
    Best Regards,
    Arumugakarthika S

    Dear Arumugakarthika,
    the problem is most likely that the acl.xml in the following location is too restrictive:
    http://<dtrhost>:<port>dtr/ws/system/config/active/ACLs/byPath/acl.xml
    I assume it contains only access and read privileges for NWDI.Administrators.
    To correct this please proceed as follows:
    1. open up NWDS and log in to DTR with NWDI administrator user
    2. check out the acl.xml file
    3. since you will not be able to edit the acl.xml file from NWDS, locate it on your harddrive and edit it with other editor. Please also remove the read-only flag if needed.
    4. check in the new version of the file through NWDS.
    I add here a sample acl.xml which you can use as starting point for ACL permission settings.
    <?xml version="1.0" encoding="UTF-8"?>
    <acls>
    <acl>
      <resource>/</resource>
      <ace>
        <all />
        <grant>
          <privilege>access</privilege>
          <privilege>read</privilege>
          <privilege>write</privilege>
          <privilege>checkin</privilege>
          <privilege>import</privilege>
          <privilege>export</privilege>
          <privilege>integrate</privilege>
          <privilege>adminA</privilege>
          <privilege>adminX</privilege>
        </grant>
        <description></description>
      </ace>
      <ace>
        <isgroup />
        <principal>NWDI.Developers</principal>
        <grant>
          <privilege>access</privilege>
          <privilege>read</privilege>
          <privilege>write</privilege>
          <privilege>checkin</privilege>
        </grant>
        <description></description>
      </ace>
      <ace>
        <isgroup />
        <principal>NWDI.Administrators</principal>
        <grant>
          <privilege>access</privilege>
          <privilege>read</privilege>
          <privilege>write</privilege>
          <privilege>checkin</privilege>
          <privilege>import</privilege>
          <privilege>export</privilege>
          <privilege>integrate</privilege>
          <privilege>adminA</privilege>
          <privilege>adminX</privilege>
        </grant>
        <description></description>
      </ace>
    </acl>
    </acls>
    I hope this helps.
    Regards,
    Ervin

  • Excessive name conflicts (451) for Bonjour in event logs

    I have a few hundred PC laptops using iTunes, Bonjour, and AirPlay. Teachers are using iPads and AirPlay to project to pc Laptop and projector. The AirPlay works most of the time and stays active on the pc, but cannot be found by iPads after it is idle for a while. I am getting many errors indicating Excessive Name Conflicts (451) in the event logs. The exact message on one laptop is:
      Excessive name conflicts (451) for HS2105._airplay._tcp.local. (SRV); rate limiting in effect
    HS2105 is the workstation name. The laptop and iPad are on the same VLAN and multicasting is enabled on WAPs. I think Bonjour is the problem.  Any ideas?

    I'm seeing multiple errors from Bonjour, also, on both my Win 7 and XP laptops.
    They are different from the ones you posted:
    492: ERROR: read_msg errno 10054 (An existing connection was forcibly closed by the remote host.)
    The number in front cycles through different values: 520,576, 240, 536, 236, 560, 492, 516, 568. Always a burst of ten of them with different numbers.

  • Resolving name conflicts

    hi all, i have this package called "Exception", but whenever i try to access this package from elsewhere by calling Exception.Class1, the compiler thought i was going for java.lang.Exception.Class1 and gave me an error. is there a way to resolve this?

    @OP. The reason you do not want to name a package the same as a core Java class is that
    1. You will confuse anyone reading your code
    2. You will likely confuse you own IDE when it attempts to refactor, organize imports, etc. for you
    Take the following advice. Follow standard Java naming conventions. That means:
    1. A package should be all lower case. Rename your package to 'exceptions', and there will be less ambiguity
    2. A type (class, interface, enum, etc.) should be UpperCamelCase
    3. A method or a field should be lowerCamelCase
    4. Constants should be ALL_UNDERSCORE_DELIMITED_UPPER_CASE
    5. Avoid using core Java classes as names (e.g. anything in java.lang)
    When asking a question on these forums, follow the following guidelines:
    1. Write a short, concise description of what you have done, the problem you are encountering and what you think is wrong
    2. Post a short, concise and relevant portion of the code you believe is causing the issue (normally invoking caller and the receiving method code)
    3. If you are getting an actual error, post the stack trace. No one can help you without understanding what the error you are encountering is.
    Follow the above guidelines, and you will both post better questions and receive better answers to your issues. Your code will also follow Java (rather than what appears to be VB or C#) conventions and be easier to understand.
    - Saish

Maybe you are looking for