Sybase datasource connection fails with JZ0PN: Specified port number of -1 was out of range due to invalid connection-property in datasource definition

Solution Unverified - Updated -

Issue

  • IJ000453: Unable to get managed connection
  • IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to create connection:

    ERROR [stderr] (default task-14) Caused by: java.sql.SQLException: JZ0PN: Specified port number of -1 was out of range. Port numbers must meet the following conditions: 0 <= portNumber <= 65535
    
  • IJ031089: Failed to load datasource: com.sybase.jdbc4.jdbc.SybDataSource

    NoSuchMethodException: Method setChar.encoding not found
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • An EAP datasource configuration which uses com.sybase.jdbc4.jdbc.SybDataSource JDBC driver

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.