Documentum新手求助:连接源时出现DFC_BOF_CLASS_CACHE_INIT_ERROR错误
First, let's restate the error you're encountering to align on the issue:
DfException:: THREAD: Thread-694; MSG: [DFC_BOF_CLASS_CACHE_INIT_ERROR] Failed to initialize class cache.; ERRORCODE: ff; NEXT: null at com.documentum.fc.client.impl.bof.cache.NullClassCacheManager.checkCacheConsistency(NullClassCacheManager.java:46) at com.documentum.fc.client.impl.bof.compoundclass.CompoundClassMgr.getImpClass(CompoundClassMgr.java:66) at com.documentum.fc.client.impl.objectmanager.AbstractPersistent...
This error typically stems from issues with DFC's class cache access, configuration mismatches, or permission problems. As someone who's worked through this exact hiccup early on with Documentum, here are practical, step-by-step fixes to try:
1. Validate your dfc.properties configuration
- Locate your
dfc.propertiesfile (usually in the DFC install directory or your project's resources folder) and double-check these critical settings:docbase.name: Must match the exact name of your Documentum repository (no typos!)docbase.host: Ensure this is the correct server hostname/IP where your Documentum Content Server runsdocbase.port: Default is 1489, but confirm with your admin if it's been modified
- Also, make sure the user running your application has read permissions on this file—missing access can block DFC from loading essential configs.
2. Check the class cache directory's existence and permissions
DFC stores class cache files in a system temp directory by default:
- Windows:
%TEMP%\dfc\cache - Linux/macOS:
/tmp/dfc/cache - Take these two actions:
- If the directory doesn't exist, manually create it (DFC sometimes fails to auto-generate it on first run)
- Confirm the user running your app has read/write/execute permissions here—without write access, DFC can't generate or update cache files.
3. Confirm DFC and Documentum Server version compatibility
This is a top pitfall for newbies! DFC versions are tightly tied to Documentum Content Server versions. For example:
- DFC 7.3 won't work smoothly with a Documentum 16.x server
- Mismatched versions break class cache initialization
- Reach out to your Documentum admin to get the exact DFC version that matches your server, then replace your current DFC jars with the compatible set.
4. Clear corrupted existing cache files
Old, damaged cache files often trigger this error. Here's how to fix it:
- Shut down your application completely
- Navigate to the DFC cache directory noted in step 2
- Delete all files and folders inside the cache directory
- Restart your application—DFC will generate fresh, uncorrupted cache files on startup
5. Remove conflicting DFC jar files
If you're running this in a Java project, ensure you don't have multiple versions of DFC jars in your classpath. Having both dfc.jar from version 7.2 and 7.3, for example, causes class loading conflicts that break cache initialization:
- Clean your project's dependency tree (if using Maven/Gradle) to eliminate duplicate DFC entries
- Manually check your
libdirectory and delete any outdated or duplicate DFC jars
Hopefully one of these steps gets you past the error! Let me know if you hit any roadblocks while troubleshooting.
内容的提问来源于stack exchange,提问作者Akhil

