cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS 3.3g NetworkFile ...implement NetworkFileStateInterface

loftux
Star Contributor
Star Contributor
Hi,

Trying out 3.3g Nightly, and get the error "NetworkFile does not implement NetworkFileStateInterface" when first starting to browse the CIFS share. Never seen this error before. Machine is Ubuntu 10.04, 32bit.
Config is taken from subsystem properties file and pasted into alfresco-global.properties. Only change is to have CIFS run on non-privileged ports.

14:57:50,597 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
14:57:50,609 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
14:57:50,609 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
14:57:50,610 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/opt/alfresco/tomcat/shared/classes/alfresco-global.properties]
14:57:50,804 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:58:33,514 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
14:58:33,517 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
14:58:49,747 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
14:58:54,823 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
14:58:55,999 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
14:58:56,047 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:58:56,087 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
14:58:59,381 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
14:58:59,405 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:02,933 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
14:59:02,934 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
14:59:02,958 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:05,975 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
14:59:06,036 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
14:59:10,384 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/alfresco/alf_data
14:59:10,640 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
14:59:11,820 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
14:59:11,954 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
14:59:12,020 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
14:59:12,100 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:13,032 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
14:59:13,084 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:13,488 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
14:59:13,488 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1]
14:59:13,550 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:14,873 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1] complete
14:59:19,957 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
14:59:19,957 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
14:59:19,982 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
14:59:19,982 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
14:59:20,033 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:20,241 INFO  [org.alfresco.repo.imap.AlfrescoImapServer] IMAP service started on host:port alfresco:1143.
14:59:20,251 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
14:59:20,251 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
14:59:20,266 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:20,321 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
14:59:20,321 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
14:59:20,337 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:20,392 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]
14:59:20,393 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
14:59:20,419 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
14:59:20,420 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
14:59:20,454 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:20,876 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
14:59:20,890 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
14:59:21,006 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
14:59:21,006 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
14:59:21,006 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
14:59:21,050 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:59:21,133 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Synchronizing users and groups with user registry 'ldap-ad1'
14:59:21,156 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Retrieving groups changed since 2010-maj-17 14:32:32 from user registry 'ldap-ad1'
14:59:23,203 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-ad1 Group Analysis: Commencing batch of 0 entries
14:59:23,204 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-ad1 Group Analysis: Completed batch of 0 entries
14:59:23,212 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Retrieving users changed since 2010-maj-17 14:14:35 from user registry 'ldap-ad1'
14:59:23,281 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-ad1 User Creation and Association: Commencing batch of 3 entries
14:59:25,300 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-ad1 User Creation and Association: Processed 3 entries out of 3. 100% complete. Rate: 1 per second. 0 failures detected.
14:59:25,300 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] ldap-ad1 User Creation and Association: Completed batch of 3 entries
14:59:25,352 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Finished synchronizing users and groups with user registry 'ldap-ad1'
14:59:25,353 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] 3 user(s) and 0 group(s) processed
14:59:25,393 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
14:59:25,541 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_20-b02; maximum heap size 1448,813MB
14:59:25,541 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.3.0 (g 2841) schema 4100 - Originally installed version 3.3.0 (g 2841) schema 4100
15:00:00,804 INFO  [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection was re-established.
15:00:16,245 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 340 Web Scripts (+0 failed), 576 URLs
15:00:16,263 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
15:00:16,263 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
15:00:16,266 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 38963.5ms)
15:00:16,266 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:00:16,274 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:00:32,681 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 227 Web Scripts (+0 failed), 235 URLs
15:00:32,691 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
15:00:32,691 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
15:00:32,902 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 5562.658ms)
15:00:33,198 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:00:33,485 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:00:33,594 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:00:33,599 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:00:33,716 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:00:33,729 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:03:50,462 ERROR [org.alfresco.fileserver] java.lang.IllegalArgumentException: NetworkFile does not implement NetworkFileStateInterface
15:03:50,463 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.server.filesys.cache.FileStateLockManager.lockFile(FileStateLockManager.java:147)
15:03:50,463 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.procLockingAndX(NTProtocolHandler.java:2104)
15:03:50,463 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:299)
15:03:50,463 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1366)
15:03:50,463 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1458)
15:03:50,463 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:59)
15:03:50,463 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:153)
15:03:50,463 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)
15:03:50,463 ERROR [org.alfresco.fileserver] java.lang.IllegalArgumentException: NetworkFile does not implement NetworkFileStateInterface
15:03:50,464 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.server.filesys.cache.FileStateLockManager.lockFile(FileStateLockManager.java:147)
15:03:50,464 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.procLockingAndX(NTProtocolHandler.java:2104)
15:03:50,464 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:299)
15:03:50,464 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1366)
15:03:50,464 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1458)
15:03:50,464 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.CIFSThreadRequest.runRequest(CIFSThreadRequest.java:59)
15:03:50,464 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:153)
15:03:50,464 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)
18 REPLIES 18

banania
Champ in-the-making
Champ in-the-making
Hello,

Yes, same problem here.
We had to update to 3.3G (because of lost documents during upgrade process, see ALF-2719).
CIFS still works, but logs are growing.


Regards
Banania

jriker1
Champ in-the-making
Champ in-the-making
Same here and it looks like uploading thru the file system it doesn't render the preview when you pull up the main attribute page but the thumbnail is still there or is regenerated.  To small to be sure.  If I download and upload thru the webpage the xls file it shows the redered preview.

JR

gnyce
Champ in-the-making
Champ in-the-making
This has made, in our discovery of this on 3.3g CE, the release unusable.  CIFS will work for copying in/out, but if you try to:

1) open directly from the CIFS Alfresco share, and Save As - or if you try to copy in a newer version of an existing file, you will lock up your computer, or

2) copy into the CIFS file-share a newer version of an existing file, the date/timestamp gets updated, but the contents of the file is not updated (very deceiving).

We're having to rollback to a previous release.  Disappointing, as I was looking forward to the datalists and themes creating content directly into the Share document library….

gnyce
Champ in-the-making
Champ in-the-making
I had filed a JIRA bug on this - https://issues.alfresco.com/jira/browse/JLAN-108    It was closed with the comment of "This should already be fixed by r20185, originally checked in to 3.3 on 17th May 2010, merged to HEAD on 9th June 2010."  So I am guessing it did not make it into 3.3g. 

Not sure if this is a "very bad idea", but I downloaded a 3.4dev nightly build and extracted the alfresco-jlan* jar and dropped that into the 3.3g installation.  So far so good, or at least, the previous behavior is no longer exhibited.  Will test to see if it is usable, as I really would like to use 3.3g, but can't with the CIFS stuff as released.

laco
Champ in-the-making
Champ in-the-making
I also have the same problem, does your fix work?

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
i have the same problem and  at first glance CIFS seems doesn't to work (it is very slow and every seems to be locked on windows connected to CIFS server).
My alfresco.log is full of DEBUGs even if log4j.properties is not set to DEBUG
12:48:00,868 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,873 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,882 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,883 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,889 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,898 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,899 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,905 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,917 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,918 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,924 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,934 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,934 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,940 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,950 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,950 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
12:48:00,956 DEBUG [org.alfresco.smb.protocol.auth] Using Write transaction
With this workaroud is the situation better?
I had filed a JIRA bug on this - https://issues.alfresco.com/jira/browse/JLAN-108    It was closed with the comment of "This should already be fixed by r20185, originally checked in to 3.3 on 17th May 2010, merged to HEAD on 9th June 2010."  So I am guessing it did not make it into 3.3g. 

Not sure if this is a "very bad idea", but I downloaded a 3.4dev nightly build and extracted the alfresco-jlan* jar and dropped that into the 3.3g installation.  So far so good, or at least, the previous behavior is no longer exhibited.  Will test to see if it is usable, as I really would like to use 3.3g, but can't with the CIFS stuff as released.
Regards

gnyce
Champ in-the-making
Champ in-the-making
So far, using the 3.4dev alfresco-jlan has not caused any obvious problems for us, and seems to be working OK, with 1-2 remaining issues that we are working around. 

The main bug - though I'm not positive it is in the CIFS code - goes like this.  Within a site, we cannot edit or update (through CIFS) an existing TXT file, but copying in a new file works fine.  We have some automated procedures that update some text files… we've worked around by deleting the existing copy and then putting in the new one… good enough for us. 

Interestingly, if we edit the text file with, say, MS Word, we are able to update just fine.  I _think_ that is because the MSWord procedure in updating an existing file is more like 1) save file as new name, 2) delete old file it is replacing, 3) rename new-name file as previous/original name.  The alfresco.log files point to a failure of rights and the acegi module, but who knows… we've tried it with people who have Manager rights to a site, with no change.

vizir
Champ in-the-making
Champ in-the-making
Hi Gnyce,

Can you pelase describe how you "downloaded a 3.4dev nightly build and extracted the alfresco-jlan* jar and dropped that into the 3.3g installation" cause i'm not able to figure out how to do this 😕

Many thanks,

boutch55555
Champ in-the-making
Champ in-the-making
Same here. The 3.4a jar did it for me too.
Can you pelase describe how you "downloaded a 3.4dev nightly build and extracted the alfresco-jlan* jar and dropped that into the 3.3g installation" cause i'm not able to figure out how to do this 😕

Download the zip from there (mine was alfresco-community-3.4.a.zip):
http://dev.alfresco.com/downloads/nightly/dist/
unpack it
the alfresco war is in /web-server/webapps/
Unpack the alfresco war
the jar is there : /WEB-INF/lib/alfresco-jlan-embed-3.4.a.jar
put it in $alfresco/tomcat/webapps/alfresco/WEB-INF/lib on your server and remove (backup) the old one
Smiley Very Happy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.