org.postgresql.util.PSQLException: ERROR: invalid input syntax for type inet: "null"

GitHub | rayluch | 9 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error with beef-strike and Armitage

    GitHub | 9 months ago | rayluch
    org.postgresql.util.PSQLException: ERROR: invalid input syntax for type inet: "null"
  2. 0

    Stop Hibernate from trying to re-create indexes on every startup

    Stack Overflow | 2 years ago | Evgeny Chesnokov
    org.postgresql.util.PSQLException: ERROR: relation "statusindex" already exists
  3. 0

    Syntax error while upgrading Liferay 6.0.5 to 6.1.0

    Stack Overflow | 2 years ago com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: syntax error at or near "s" Position: 81
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have an application that invokes Liquibase.update(Contexts contexts, Writer output). I want it to only show the changes and not risk making any changes, hence I set the connection to be read-only: {code} def liquibaseConnection = new JdbcConnection(connection) liquibaseConnection.setReadOnly(true) def liquibase = new Liquibase("my-changelog.xml", resourceAccessor, liquibaseConnection) def contexts = new Contexts() liquibase.update(contexts, getOutputWriter()) {code} However, even though if I instantiate Liquibase with a read-only connection, it still attempts to perform a database update to release the lock: {code} org.postgresql.util.PSQLException: ERROR: cannot execute UPDATE in a read-only transaction at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse( at org.postgresql.core.v3.QueryExecutorImpl.processResults( at org.postgresql.core.v3.QueryExecutorImpl.execute( at org.postgresql.jdbc2.AbstractJdbc2Statement.execute( at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags( at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate( at liquibase.executor.jvm.JdbcExecutor$1UpdateStatementCallback.doInStatement( at liquibase.executor.jvm.JdbcExecutor.execute( at liquibase.executor.jvm.JdbcExecutor.update( at liquibase.executor.jvm.JdbcExecutor.update( at liquibase.lockservice.StandardLockService.releaseLock( at liquibase.Liquibase.update( at liquibase.Liquibase.update( {code} Note that the error only occurs after the updateSQL operation was completed successfully. Even lock acquisition seems to work (probably by not touching the database). For some reason that is unclear to me, it seems that only the release part is failing to work properly with a read-only connection.

    JIRA | 2 years ago | Rafael Chaves
    org.postgresql.util.PSQLException: ERROR: cannot execute UPDATE in a read-only transaction

  1. silex 5 times, last 5 months ago
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.postgresql.util.PSQLException

    ERROR: invalid input syntax for type inet: "null"

    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse()
  2. PostgreSQL JDBC Driver
    1. org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(
    2. org.postgresql.core.v3.QueryExecutorImpl.processResults(
    3. org.postgresql.core.v3.QueryExecutorImpl.execute(
    4. org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
    5. org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(
    6. org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(
    6 frames
  3. msf
    1. msf.DatabaseImpl.executeUpdate(
    2. msf.DatabaseImpl.execute(
    3. msf.RpcConnectionImpl.execute(
    4. msf.RpcQueue.processRequest(
    5 frames
  4. Java RT
    1 frame