Troubleshooting
Common issues, solutions, and frequently asked questions for NetFUNNEL Java Agent integration.
Installation Issues
Library Installation Failure
Symptoms:
- Cannot find
netfunnel-agent.jarfile - Dependency addition failure
Solutions:
- Check JAR file: Verify that the
netfunnel-agent.jarfile is in thelibsfolder - Check dependency path: Verify that the JAR file path is correct in Gradle/Maven configuration
- Check external dependencies: Verify that
gsonandjackson-module-kotlinare correctly added
Initialization Failure
Symptoms:
- Error occurs when starting server
- NetFUNNEL is not initialized
Solutions:
- Check clientId: Verify that
clientIdis correctly set - Check secretKey: Verify that
secretKeyis correctly set - Check empty strings: Verify that
clientIdandsecretKeyare not empty strings - Check build: Verify that the project is correctly built
Interceptor/Filter Issues
Interceptor Not Working
Symptoms:
- Interceptor is not called
- NetFUNNEL logic is not executed
Solutions:
- Check registration: Verify that the
addInterceptorsmethod ofWebMvcConfigureris correctly implemented - Check path patterns: Verify that
addPathPatternsis correctly set - Check bean registration: Verify that Interceptor is registered with
@Component - Check order: Verify that there are no ordering issues with other Interceptors
Filter Not Working
Symptoms:
- Filter is not called
- NetFUNNEL logic is not executed
Solutions:
- Check registration: Verify that
FilterRegistrationBeanis correctly registered - Check URL patterns: Verify that
addUrlPatternsis correctly set - Check order: Verify that Filter order is correctly set with
setOrder
Trigger Rule Issues
Trigger Rules Not Matching
Symptoms:
- Queue is not applied
- Waiting room is not displayed even for URLs that match the rules
Solutions:
- Check rules: Verify that trigger rules are correctly set in the console
- Check URL: Verify that the accessed URL matches the rule's Value
- Check Match option: Verify that Match options (Equals, Contains, StartsWith, EndsWith) are correct
- Check case sensitivity: Verify the Aa option (case sensitivity) setting
- Use test feature: Use the console's trigger rule test feature to verify that URLs match the rules
Waiting Room Not Displayed
Symptoms:
- Waiting room is not displayed even for URLs that match the rules
- Users proceed directly
Solutions:
- Check segment activation: Verify that the segment is activated
- Check entry status: Verify that entry status is set to
Waiting - Check entry limit: Set entry limit to
0for testing - Check rule matching: Verify that trigger rules are correctly matched
Network and Connection Issues
Network Connection Error
Symptoms:
- Cannot connect to NetFUNNEL server
- Requests fail
Solutions:
- Check connection: Check internet connection status
- Check firewall: Verify that NetFUNNEL domain is not blocked
- Configure proxy: Configure proxy if necessary
- Check server URL: Verify that
serverUrlsetting is correct
Timeout Error
Symptoms:
- Requests timeout
- No response received
Solutions:
- Check network status: Check network connection status
- Check server status: Check NetFUNNEL server status
- Check settings: Verify that initialization settings are correct
Logging Issues
Logs Not Output
Symptoms:
- Logs are not output even though log level is set
Solutions:
- Check dependency: Verify that
logback-classicdependency is added - Check log level: Verify that
logLevelsetting is correct - Check log configuration: Check
logback.xmlorlogback-spring.xmlconfiguration
Key Management Issues
Key Not Returned
Symptoms:
- Next user waits indefinitely
- Queue does not progress
Solutions:
- Check returnKey setting: Verify that
returnKeysetting is correct - Check timeout: Check segment timeout settings
- Check server logs: Check server logs for key return related errors
Debugging Tips
Check Logs
You can check logs by setting logLevel for debugging:
import ch.qos.logback.classic.Level;
NetFunnelInitialize config = NetFunnelInitialize.Companion.builder()
.clientId("{{CLIENT_ID}}")
.secretKey("{{SECRET_KEY}}")
.logLevel(Level.DEBUG) // Enable debugging logs
.build();
Common Check Items
- Check initialization: Verify that
NetFunnelInitializeis correctly created - Interceptor/Filter registration: Verify that Interceptor/Filter is correctly registered
- Trigger rules: Verify that trigger rules are correctly set in the console
- Check dependencies: Verify that all required dependencies are correctly added
Related Documentation
- Installation and Initialization: Detailed configuration guide
- API Reference: Complete function specifications
- Initialization Settings: All initialization parameters
- FAQ: Frequently asked questions