pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
java.lang.ClassNotFoundException: batchprint.Batch
2+ messages / 2 participants
[nested] [flat]

* java.lang.ClassNotFoundException: batchprint.Batch
@ 2022-01-07 18:21  Atul Kumar <akumar14871@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Atul Kumar @ 2022-01-07 18:21 UTC (permalink / raw)
  To: pgsql-general <pgsql-general@lists.postgresql.org>

Hi,

I have a function with below definition:

CREATE OR REPLACE FUNCTION onesam.batchprint_individual(
p1 character varying,
p2 character varying,
p3 character varying,
p4 boolean,
p5 boolean,
p6 character varying,
p7 integer,
p8 integer)
    RETURNS integer
    LANGUAGE 'javau'
    COST 100
    VOLATILE PARALLEL UNSAFE
AS $BODY$
batchprint.Batch.individual(java.lang.String, java.lang.String,
java.lang.String, java.lang.Boolean, java.lang.Boolean, java.lang.String,
java.lang.Integer, java.lang.Integer)
$BODY$;




And I am trying to execute below query:

SELECT batchprint_INDIVIDUAL(
                                                '96674538',
                                                '',
                                                '',
                                                't',
                                                'f',
                                                'UsysOfficial',
                                                '1103003',
                                                '1020')

and the ERROR I am getting is:
ERROR: java.lang.ClassNotFoundException: batchprint.Batch SQL state: XX000

My postgres version is 11.14.


Could anyone suggest any kind of solution for it, as I couldn't find
anything informative from a database perspective.



Regards,
Atul

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: java.lang.ClassNotFoundException: batchprint.Batch
@ 2022-01-07 18:27  Rob Sargent <robjsargent@gmail.com>
  parent: Atul Kumar <akumar14871@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Rob Sargent @ 2022-01-07 18:27 UTC (permalink / raw)
  To: Atul Kumar <akumar14871@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

>                                                 '1103003',
>                                                 '1020')
> 
> and the ERROR I am getting is:
> ERROR:  java.lang.ClassNotFoundException: batchprint.Batch
> SQL state: XX000
> 
> My postgres version is 11.14.
> 
> 
> Could anyone suggest any kind of solution for it, as I couldn't find anything informative from a database perspective.
> 
> 
And your CLASSPATH is what exactly?  
\! echo $CLASSPATH might show it

> 
> Regards,
> Atul

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-01-07 18:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 18:21 java.lang.ClassNotFoundException: batchprint.Batch Atul Kumar <akumar14871@gmail.com>
2022-01-07 18:27 ` Rob Sargent <robjsargent@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox