Error Messages Displayed During Execution

This section describes common errors you may experience during execution.

Problem

Sybase CEP Studio produces an error similar to:

In workspace 'Default', top module 'PassThrough':
Error: Cannot find user_output_c8adapter_initialize in library sdk_adapter_lib.
Error C8_SERVER-3601: Module 'Default/PassThrough/PassThrough_SDKOutputTutorialCsvFileAdapter' execution failed.

This means that Sybase CEP Server cannot find the entry point in the adapter library. This error also is printed in the Sybase CEP Server log. Please review the following questions to see if any of them might be causing your problem.

Problem

You get an error message similar to one of the following:

Possible causes include:

Problem

You are using a UDF that you compiled on Microsoft Windows and you see an error message similar to the following:

Error: failed to start program
(program_path='C:/Documents and Settings/<username>/My Documents/SybaseCEPRepository/5.2.0/UserDefinedAggregators/Xconcat/xconcat.ccx',
reason='Request processing failed: Server returned: Exception Error C8_SERVER-4404: Could not execute a command in container 'http://<nodename>:<port>/Container'.
Request processing failed: Server returned: Client Invalid Request: Error parsing XML: Error: Can not load library 'xconcat' with path 'C:/Program Files/SybaseC8/Server/bin\xconcat.dll'. (nspr_error='error 126', system_error='The operation completed successfully. ').
Error C8_SERVER-4101: Could not execute loader command for workspace 'Default'.', server='http://localhost:<port>/', workspace_name='Default')

Possible causes include:

Possible solutions:

Rebuild the .dll, copy it to the server bin directory then stop and restart the server.

Problem

You are using an in-process adapter that you compiled on Microsoft Windows and you see an error message similar to the following:

Error: failed to start program
(program_path='C:/Documents and Settings/<username>/My Documents/SybaseCEPRepository/5.2.0/UserDefinedAggregators/Xconcat/xconcat.ccx',
reason='Request processing failed: Server returned: Exception Error C8_SERVER-4404: Could not execute a command in container 'http://<nodename>:<port>/Container'.
Request processing failed: Server returned: Client Invalid Request: Error parsing XML: Error: Can not load library 'xconcat' with path 'C:/Program Files/SybaseC8/Server/bin\xconcat.dll'. (nspr_error='error 126', system_error='The operation completed successfully. ').
Error C8_SERVER-4101: Could not execute loader command for workspace 'Default'.', server='http://localhost:<port>/', workspace_name='Default')

Possible causes include:

Possible solutions:

Rebuild the .dll, copy it to the server bin directory; then stop and restart the server. If you are using Microsoft Windows, you must make sure that the initialize(), execute(), and shutdown() functions are exported from your .dll.

Problem

When you run your out-of-process adapter, you see one or more error messages similar to one of the following:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/EngineConfiguration
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/xml/rpc/Service

The exact name of the missing class may vary.

The most likely cause is that your CLASSPATH environment variable is not set properly. Make sure that you include each of the .jar files in the directory

C:\Program Files\SybaseC8\Server\sdk\java5\lib

See Setting Up Your Environment, which lists the .jar files that should be in your CLASSPATH.

Problem

When you run the program, you get a message similar to the following:

Could not send tuple: java.io.IOException: Could not resolve url
'ccl://localhost:6789/Stream/Default/JavaInputAdapter1/InStream':
Info: Can not resolve uris

The exact URL may be different.

The possible causes include the following:

  1. The server is not running.

  2. The server is running but the query module is not executing.

  3. The URL is incorrect.

Make sure that the server is running and the query is running. After you start the server, you should start the components in the following order:

  1. The output adapter (if it is an out-of-process adapter).

  2. The query module.

  3. The input adapter (if it is an out-of-process adapter)

Make sure that the URL is correct. In Sybase CEP Studio, you can see the URL by clicking on the stream and then clicking on the "Properties" tab for that stream.

Problem

C8OpenStreamConnForReading() or C8OpenStreamConnForWriting() returns a value other than C8_OK.

Possible causes include:

  1. The URI is spelled incorrectly. Remember that the URI is case-sensitive.

  2. Sybase CEP Server is not running or is inaccessible from the test client machine.

  3. The Sybase CEP Studio has not initialized the stream. If Sybase CEP Studio is not running, or if the query module has not been loaded into Sybase CEP Studio, then the stream will not be initialized and the adapter will not be able to connect to it.

  4. If a file is specified, the permissions have not been set correctly to allow reading and writing?

Problem

You try to use a TitleRow (in other words, a list of the column names in the stream schema) and parts of the title row are processed as though they were data. Remove the TitleRow from the input to resolve this issue.

Problem

You see a message similar to:

error while loading shared libraries: libstlport.so.5.1: cannot open shared object file: No such file or directory

or

Can not load library 'library_name' with path 'some_path'.  
(Reason='Failure to load dynamic library (-5977,0)')

If you are on a Unix-like operating system, and if you are trying to compile and register a query, then you may not have set the LD_LIBRARY_PATH environment variable to include the directory the library file is in.

To solve the problem, update your LD_LIBRARY_PATH and then restart the server. Also check that your PATH is correct.

Problem

You see a message similar to the following when you try to compile a CCL module that uses a UDF:

CCLC2036: Error: Unknown operator 'MyFunc( long )'.  MyFunc(x)

The error indicates that the compiler did not recognize the function named MyFunc with parameters of the specified types (the type "long" in this example).

Possible causes include: