cancel
Showing results for 
Search instead for 
Did you mean: 

problem with running examples with eclipse

pmarreddy
Champ in-the-making
Champ in-the-making
i am trying to run a sample examples in a repository package and got this error,
thanks Prashanth

Dec 17, 2005 1:32:17 PM net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
Dec 17, 2005 1:32:34 PM net.sf.joott.uno.UnoConnection connect
SEVERE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
13:32:44,484 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: imconvert "C:\DOCUME~1\Prasanth\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_844.gif"  "C:\DOCUME~1\Prasanth\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_845.png"
Dec 17, 2005 1:32:50 PM net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
Dec 17, 2005 1:34:16 PM net.sf.joott.uno.UnoConnection connect
SEVERE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
13:34:17,484 ERROR [alfresco.smb.protocol] Error accessing Win32 NetBIOS, check DLL is on the path
13:34:17,687 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use: JVM_Bind
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(Unknown Source)
   at java.net.ServerSocket.bind(Unknown Source)
   at java.net.ServerSocket.<init>(Unknown Source)
   at java.net.ServerSocket.<init>(Unknown Source)
   at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:377)
   at java.lang.Thread.run(Unknown Source)
13:34:17,765 INFO  [service.descriptor.DescriptorService] Alfresco started (Open Source) - v1.1.0; repository v1.0.0
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
It looks like there are a couple of issues here.

The ImageMagick error is due to the imconvert.exe not being in the PATH environment variable. The same goes for the error regarding the Win32 NetBIOS DLL. Both these files can be found in the bin directory of the windows distributions.

The JVM_Bind error is caused by something already running on port 21 (the one FTP requires). Do you have another FTP server running on your machine?

Hope this helps.

smarcon
Champ in-the-making
Champ in-the-making
Hi,

I'm just at the beginning of my study of alfresco and just replying to pmarreddy:

In case you are using eclipse (must be the same with any IDE or command line cases), it seems that if you start the repository once and it reaches an exception preventing it to close correctly (most of the cases if you reach any exception I think), you could have a javaw.exe running and using the 21 port. Just kill that process to release the port.

It would maybe be interesting to catch the exception and perform a clean exit if one reaches an exception when starting the repository, no?

Stephane

derek
Star Contributor
Star Contributor
Hi,

The examples are designed to illustrate usage of APIs and features.  In this case, the errors you see have not caused the repository startup to fail.  Certain features have failed to initialise (i.e. FTP and OpenOffice transformations) but the rest is running fine.

The FTP problem is probably caused by an existing example still running.  Kill the example before attempting to run it or another one again.

Regards

pmarreddy
Champ in-the-making
Champ in-the-making
thank u ver much for ur help.

prasanth