AnsweredAssumed Answered

Binding, Authentication Exceptions Trying SimpleExample.java

Question asked by jeffkahn on Nov 9, 2006
I am trying to run the SimpleExample JCRExample that accompanies the SDK.  I am able to compile SimpleExample.java.  At runtime, I am getting the following exceptions (one about binding and one about authentication.  Note that I have installed the .war file under Tomcat and I have been able to login as admin/admin through the web interface.  This is the same default username/pwd as provided in the example. 

I am running on Mac OS 10.4.8
I am running Apache Tomcat 5.5.9
I am running JVM 1.5.0_05-83
I am running the web application as localhost

     [java] 16:34:37,781 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: convert /tmp/Alfresco/ImageMagickContentTransformer_init_source_64436.gif  /tmp/Alfresco/ImageMagickContentTransformer_init_target_64437.png
     [java] 16:34:44,009 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
     [java] 16:34:44,055 INFO  [admin.patch.PatchExecuter] No patches were required.
     [java] 16:34:49,176 ERROR [alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
     [java] 16:34:49,177 ERROR [alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
     [java] 16:34:49,660 ERROR [smb.protocol.netbios] NetBIOSNameServer setup error:
     [java] java.net.BindException: Permission denied
     [java]     at java.net.PlainDatagramSocketImpl.bind0(Native Method)
     [java]     at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
     [java]     at java.net.DatagramSocket.bind(DatagramSocket.java:368)
     [java]     at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
     [java]     at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
     [java]     at java.net.DatagramSocket.<init>(DatagramSocket.java:234)
     [java]     at org.alfresco.filesys.netbios.server.NetBIOSNameServer.openSocket(NetBIOSNameServer.java:1076)
     [java]     at org.alfresco.filesys.netbios.server.NetBIOSNameServer.run(NetBIOSNameServer.java:1548)
     [java]     at java.lang.Thread.run(Thread.java:613)
     [java] 16:34:49,664 ERROR [alfresco.ftp.protocol] FTP Socket error
     [java] java.net.BindException: Permission denied
     [java]     at java.net.PlainSocketImpl.socketBind(Native Method)
     [java]     at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
     [java]     at java.net.ServerSocket.bind(ServerSocket.java:319)
     [java]     at java.net.ServerSocket.<init>(ServerSocket.java:185)
     [java]     at java.net.ServerSocket.<init>(ServerSocket.java:141)
     [java]     at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:372)
     [java]     at java.lang.Thread.run(Thread.java:613)
     [java] 16:34:49,673 ERROR [alfresco.smb.protocol] Server error :
     [java] java.net.BindException: Permission denied
     [java]     at java.net.PlainSocketImpl.socketBind(Native Method)
     [java]     at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
     [java]     at java.net.ServerSocket.bind(ServerSocket.java:319)
     [java]     at java.net.ServerSocket.<init>(ServerSocket.java:185)
     [java]     at java.net.ServerSocket.<init>(ServerSocket.java:141)
     [java]     at org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:249)
     [java]     at org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:158)
     [java]     at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:487)
     [java]     at java.lang.Thread.run(Thread.java:613)

The program continues and I get this:

     [java] 16:34:49,702 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_05-83; maximum heap size 63.313MB
     [java] 16:34:49,702 WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 63.313MB is less than recommended 512MB
     [java] 16:34:49,703 INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 1.4.0 (build-105) schema 21 - Installed version 1.4.0 (build-105) schema 21
     [java] Exception in thread "main" javax.jcr.LoginException: Alfresco Repository failed to authenticate credentials: Bad credentials presented: Bad credentials presented
     [java]     at org.alfresco.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:213)
     [java]     at org.alfresco.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:238)
     [java]     at org.alfresco.sample.jcr.SimpleExample.main(SimpleExample.java:53)
     [java] Caused by: org.alfresco.repo.security.authentication.AuthenticationException: Bad credentials presented
     [java]     at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(AuthenticationComponentImpl.java:69)

Outcomes