cancel
Showing results for 
Search instead for 
Did you mean: 

getting ObjID already in use

asifsehzaad
Champ in-the-making
Champ in-the-making
my env
os:linux (ubuntu 8)
JDK: 1.6
AS: TOMCAT6 (i copied the postgresql's database drivers in the lib directory)
DB: postgresql 8.3

i changed the dialect to pgsqldialect
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

and changed the repository.properties
db.schema.update=true
db.schema.update.lockRetryCount=24
db.schema.update.lockRetryWaitSeconds=5
db.driver=org.postgresql.Driver
db.name=alfresco
db.url=jdbc:postgresql://192.168.10.11/${db.name}
db.username=alfresco
db.password=alfresco
db.pool.initial=10
db.pool.max=20

restarted tomcat and can't seem to get rid of that exception.
16 REPLIES 16

asifsehzaad
Champ in-the-making
Champ in-the-making
the exception that i get is

10:36:31,577  ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExporter' defined in class path resource [alfresco/emailserver/email-service-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: internal error: ObjID already in use
Caused by: java.rmi.server.ExportException: internal error: ObjID already in use
        at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
        at sun.rmi.transport.Transport.exportObject(Transport.java:74)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:229)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)

asifsehzaad
Champ in-the-making
Champ in-the-making
bump.. Smiley Indifferent

any insights into this…will certainly help…

mrogers
Star Contributor
Star Contributor
The error being reported is to do with email-service-context.xml rather than anything to do with the database.

If you have changed the configuration of the email service I'd double check your configuration.

asifsehzaad
Champ in-the-making
Champ in-the-making
The error being reported is to do with email-service-context.xml rather than anything to do with the database.

If you have changed the configuration of the email service I'd double check your configuration.

I didn't change any thing other than the database configuration. but it seems RmiServiceExporter is trying to export a named service twice…i tried to change the name of the service from EmailService in email-service-context.xml to EmailService22 but it does no good and i am stuck here at this point…

asifsehzaad
Champ in-the-making
Champ in-the-making
The error being reported is to do with email-service-context.xml rather than anything to do with the database.

If you have changed the configuration of the email service I'd double check your configuration.

and i am pretty sure about this now… the exposure of emailserver as an rmiservcie is not going through…and if i try to disable (by commenting out all the referenced beans)…the exception moves to
<bean id="avmRemoteService" class="org.springframework.remoting.rmi.RmiServiceExporter">
      <property name="service">
         <ref bean="avmRemoteTransport"/>
      </property>
      <property name="serviceInterface">
         <value>org.alfresco.service.cmr.remote.AVMRemoteTransport</value>
      </property>
      <property name="serviceName">
         <value>avm</value>
      </property>
      <property name="registryPort">
         <value>${alfresco.rmi.services.port}</value>
      </property>
      <property name="servicePort">
         <value>${avm.rmi.service.port}</value>
      </property>
   </bean>
this guy here… so there is something very wrong with the way i am doing it….

asifsehzaad
Champ in-the-making
Champ in-the-making

here is my verison information…

#
# Enterprise version information
#

# Version label

version.major=3
version.minor=0
version.revision=0
version.label=

# Edition label

version.edition=Enterprise

# Build number

version.build=r11498

# Schema number

version.schema=501

asifsehzaad
Champ in-the-making
Champ in-the-making
any one looking/hearing/…smelling… i am at my wits end on this one…. i have greped,egreped,and [gG]rped, and *rep and everything in my power but am not able to knock this one off…

derek
Star Contributor
Star Contributor
This looks like the bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4267864

Please give the exact version of your JDK as reported by "java -version".
Also, add this to WEB-INF/class/log4j.properties
log4j.logger.org.springframework.remoting.rmi=DEBUG

This is definitely environmental, so look in other apps or config for another RMI registry running.  If you want, you can disable Alfresco's registry by adding this to shared/classes/alfresco/extension/custom–repository-context.xml:

   <bean id="registry" class="java.util.ArrayList" />         

asifsehzaad
Champ in-the-making
Champ in-the-making
That is my java version.
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

the bug id that you specifed is solved in my version of JDK…and i have a test code proving that for me…

import java.rmi.registry.LocateRegistry;

public class TestRegistry {

    public static void main(String args[]) {
        try {
            LocateRegistry.createRegistry(12345);
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
        System.err.println("registry created on 12345");
        try {
            LocateRegistry.createRegistry(23456);
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
        System.err.println("registry created on 23456");
    }
}
earlier i thought the port number might be conflicting with some other application on my machine (I am running postfix @ 25 so i even changed the port number in the email-server.properties but no good ) i checked and double checked and here are the open ports on my machine
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      4061/dovecot
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      4061/dovecot
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      4026/smbd
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      4061/dovecot
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      4061/dovecot
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      4106/httpd
tcp        0      0 192.168.10.11:5432      0.0.0.0:*               LISTEN      3925/postgres
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      4008/master
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      4026/smbd
tcp6       0      0 :::22                   :::*                    LISTEN      3901/sshd

i will try to put the log mode to debug and will post what i can find…