Jump to content
We've recently updated our Privacy Statement, available here ×

could not insert


mr.john.lynn
Go to solution Solved by mr.john.lynn,

Recommended Posts

I fired up my nice shiny new Jaspersoft 5.0.3 instance in Amazon EC2, and the first thing that I tried to do was add a JDBC data source. 

So I went to Create and then Data Source, and filled out all the information to point to a mySQL database that resides in another AWS instance. 

I clicked the "Test Connection" button and got the message "Connection passed" at the top of the screen. 

When I hit Submit to save the data source, I get a many-pages-long exception and stack trace. 

Looking at the stack trace, it looks like the main cause is:  "org.postgresql.util.PSQLException: ERROR: value too long for type character varying(100)"

Which value is too long? There's nothing unusual about this data source. And Test Connection was happy with it.

Any ideas of what to do would be greatly appreciated! 

 

 

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Problem is solved. The password for the data source is 50 characters long, which I guess is expanded because of encryption before storing it. 

The Password field on that data source web form should limit the field to some maximum length, in my opinion. 

For now, I changed my datasource password to be a short string. 

Link to comment
Share on other sites

  • 1 year later...

I resolved this by altering the table in the jasperserver database.  I increased the field size from 100 to 500, although I don't think this is a very good solution at all.

alter table jijdbcdatasource alter column password type varchar(500);

I agree with mr.john.lynn that if there is a true limit, then it should be reflected in the datasource creation web interface.

Link to comment
Share on other sites

  • 7 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...