Save 
Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

EXECUTE PROCEDURE sqlj.install_jar problem

Posted By: COLIN MCGRATH
Date: Thursday, 6 September 2012, at 2:37 p.m.

dbaccess hangs when I try EXECUTE PROCEDURE sqlj.install_jar

Running ids 11.70 Innovator-C edition on AIX 6.1
DB-Access Version 11.70.FC4IE
SHMBASE set to 0x700000010000000, as per machine notes when using J/Foundation
VPCLASS jvp,num=1
JVPJAVAHOME /usr8/IDS11.70/extend/krakatoa/jre
JVPHOME /usr8/IDS11.70/extend/krakatoa
JVPPROPFILE /usr8/IDS11.70/extend/krakatoa/.jvpprops
JVPLOGFILE /usr8/IDS11.70/tmp/jvp.log
JVPARGS -Dcom.ibm.tools.attach.enable=no;-verbose:gc
JVPCLASSPATH /usr8/IDS11.70/extend/krakatoa/krakatoa.jar:/usr8/IDS11.70/extend/krakatoa/jdbc.jar

/var/adm/ifx_loader_domain exists: -rw-rw---- 1 root informix

env vars I set for testing my first JAVA UDR:
INFORMIXKRAKATOADIR=$INFORMIXDIR/extend/krakatoa
CLASSPATH=$CLASSPATH:$INFORMIXKRAKATOADIR/krakatoa.jar:$INFORMIXKRAKATOADIR/jdbc.jar
PATH=$PATH:/usr/java5/bin
LDR_CNTRL=LOADPUBLIC@USERREGS

sbspace created:
Dbspaces
address number flags fchunk nchunks pgsize flags owner name
700000020537c80 7 0x48001 8 1 4096 N SBA informix sbspace

Chunks
address chunk/dbs offset size free bpages flags pathname
-- /usr8/IDS11.70/ids_dev/symlnk_dbspaces/sbspace

Metadata 194 112 194

$ oncheck -cS

Validating space 'sbspace' ...

sbspace Metadata Partition Partnum Used Free
sbspace:'informix'.TBLSpace 0x700001 6 44
sbspace:'informix'.sbspace_desc 0x700002 2 2
sbspace:'informix'.chunk_adjunc 0x700003 2 2
sbspace:'informix'.LO_ud_free 0x700004 2 8
sbspace:'informix'.LO_hdr_partn 0x700005 1 63

My test java file:
public class HelloWorld {
public static String getHelloWorld() {

return "Hello, world...";
}
}

Compilation works:
rm *.class
javac HelloWorld.java

Building a JAR file works:
rm hw.jar
jar cvf hw.jar HelloWorld.class

But when trying to install the JAR file and create corresponding function, dbaccess hangs at the EXECUTE PROCEDURE statement:

BEGIN WORK;
EXECUTE PROCEDURE sqlj.install_jar
('file:/usr1/cmcgrath/JAVA/infxHelloWorld/hw.jar',

'hw_jar', 0);

CREATE FUNCTION getHelloWorld()
RETURNS CHAR(50)
WITH (class='jvp')
EXTERNAL NAME 'hw_jar:HelloWorld.getHelloWorld'
LANGUAGE JAVA;
GRANT EXECUTE ON FUNCTION getHelloWorld() TO ALL;

COMMIT WORK;

------
contents of $INFORMIXDIR/temp/JVM_security:
grant codeBase "file:/usr8/IDS11.70/extend/krakatoa/-" {

permission java.security.AllPermission;
};
grant {

permission java.io.SerializablePermission "enableSubstitution";

permission java.lang.RuntimePermission "shutdownHooks";

permission java.lang.RuntimePermission "setContextClassLoader";

permission java.lang.RuntimePermission "reflectionFactoryAccess";

permission java.lang.RuntimePermission "unsafeAccess";

permission java.net.NetPermission "specifyStreamHandler";

permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

permission java.util.PropertyPermission "user.language","write";

permission java.util.PropertyPermission "user.dir","write";

permission java.security.SecurityPermission "getPolicy";

permission java.util.PropertyPermission "java.naming.factory.initial","w
rite";

permission java.util.PropertyPermission "java.naming.provider.url","writ
e";
};

-----
Contents of informix MSGPATH file:
13:09:08 Booting Language <java> from module <$INFORMIXDIR/extend/krakatoa/lmja
va.so>
13:09:08 Loading Module <$INFORMIXDIR/extend/krakatoa/lmjava.so>
13:09:08 The C Language Module </usr8/IDS11.70/extend/krakatoa/lmjava.so> loade
d
13:09:08 Loading Module <informix.jvp.dbapplet.impl.JarHandler>
13:09:08 Got the mutex
13:09:08 LIBPATH=/usr8/IDS11.70/extend/krakatoa/jre/bin/classic:/usr8/IDS11.70/
extend/krakatoa/jre/bin:/usr8/IDS11.70/extend/krakatoa/jre/lib/ppc64
13:09:08 VM args[0]= -Xss512k
13:09:08 VM args[1]= -Djava.security.policy=/usr8/IDS11.70/tmp/JVM_security
13:09:08 VM args[2]= -Xms16m
13:09:08 VM args[3]= -Xmx16m
13:09:08 VM args[4]= exit
13:09:08 VM args[5]= abort
13:09:08 VM args[6]= -Dcom.ibm.tools.attach.enable=no
13:09:08 VM args[7]= -verbose:gc
13:09:08 VM args[8]= vfprintf
13:09:08 VM args[9]= -Djava.class.path=/usr8/IDS11.70/extend/krakatoa/krakatoa.
jar:/usr8/IDS11.70/extend/krakatoa/jdbc.jar:/usr8/IDS11.70/extend/krakatoa
13:09:08 Successfully created Java VM.
13:17:38 Checkpoint Completed: duration was 0 seconds.
13:17:38 Thu Sep 6 - loguniq 3672, logpos 0xba018, timestamp: 0x3a93f0c Interv
al: 19839

13:17:38 Maximum server connections 2
13:17:38 Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 0, P
log used 2, Llog used 2

(Nothing else till I kill the dbaccess process and shut down the engine)

-----
Contents of jvp.log:
loading native library /usr8/IDS11.70/extend/krakatoa/libjvp.so
Read JVP property file/usr8/IDS11.70/extend/krakatoa/.jvpprops
2012/09/06 13:09:09.173 JVP#8: TraceableImpl: trace settings property is null
DBAThread Pool is enabled with size = 20 with patrol interval = 5
Alarm Time set to 3

-----
Contents of JVM_9764920_gc:
13:09:08
<?xml version="1.0" ?>

<verbosegc version="20091111_AA">

13:09:08 <initialized>
<attribute name="gcPolicy" value="-Xgcpolicy:optthruput" />
<attribute name="maxHeapSize" value="0x1000000" />
<attribute name="initialHeapSize" value="0x1000000" />
<attribute name="compressedRefs" value="false" />
<attribute name="pageSize" value="0x1000" />
<attribute name="requestedPageSize" value="0x1000" />
</initialized>
13:09:08
13:09:10 <sys id="1" timestamp="Sep 06 13:09:10 2012" intervalms="0.000">
<time exclusiveaccessms="0.056" meanexclusiveaccessms="0.039" threads="2" last
threadtid="0x0000000111783900" />
<refs soft="42" weak="44" phantom="0" dynamicSoftReferenceThreshold="32" maxSo
ftReferenceThreshold="32" />
<tenured freebytes="10087952" totalbytes="16777216" percent="60" >

<soa freebytes="9249296" totalbytes="15938560" percent="58" />

<loa freebytes="838656" totalbytes="838656" percent="100" />
</tenured>
<gc type="global" id="1" totalid="1" intervalms="0.000">

<classunloading classloaders="0" classes="0" timevmquiescems="0.000" timetak
enms="0.204" />

<finalization objectsqueued="47" />

<timesms mark="7.964" sweep="0.382" compact="0.000" total="8.735" />

<tenured freebytes="13884064" totalbytes="16777216" percent="82" >

<soa freebytes="13045408" totalbytes="15938560" percent="81" />

<loa freebytes="838656" totalbytes="838656" percent="100" />

</tenured>
</gc>
<tenured freebytes="13884064" totalbytes="16777216" percent="82" >

<soa freebytes="13045408" totalbytes="15938560" percent="81" />

<loa freebytes="838656" totalbytes="838656" percent="100" />
</tenured>
<refs soft="42" weak="40" phantom="0" dynamicSoftReferenceThreshold="26" maxSo
ftReferenceThreshold="32" />
<time totalms="8.911" />
</sys>
13:09:10 Unhandled exception
Type=Segmentation error vmState=0x00040000
13:09:10 J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00
000000 Signal_Code=00000032
Handler1=09001000A05BAA20 Handler2=09001000A05B1E58
R0=0000000000000001 R1=0000000112C97120 R2=09001000A0677EA0 R3=000000000000054F
R4=000000000000001F R5=0000000112C96FE9 R6=0900000001EC781D R7=0000000000000020
R8=0000000000000000 R9=0000000011170017 R10=0000000112C974F4 R11=000000000000000
0
R12=797465733D223135 R13=0000000112CA0800 R14=0000000112897478 R15=0000000112897
600
R16=0000000000000007 R17=0000000000000000 R18=09001000A05BEB88 R19=09001000A05CA
000
R20=0000000111A88400 R21=00000001128974A0 R22=00000001128976A0 R23=0000000000000
000
R24=09001000A05A54B0 R25=00000000000CCC00 R26=00000001104BFD78 R27=3732313622207
065
R28=7263656E743D2236 R29=3022203E0A202020 R30=203C736F61206672 R31=6565627974657
33D
IAR=797465733D223134 LR=797465733D223135 MSR=A00000000000D032 CTR=090000000007C9
20
CR=2400048820000000 FPSCR=0202400000000000 XER=2000000002024000
FPR0 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR1 fff8000002024000 (f: 33701888.000000, d: -NaNQ)
FPR2 fff8000002008000 (f: 33587200.000000, d: -NaNQ)
FPR3 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR4 4040000000000000 (f: 0.000000, d: 3.200000e+01)
FPR5 4530000000000000 (f: 0.000000, d: 1.934281e+25)
FPR6 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR7 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR8 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR9 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR10 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR11 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR12 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR13 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR14 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR15 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR16 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR17 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR18 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR19 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR20 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR21 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR22 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR23 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR24 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR25 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR26 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR27 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR28 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR29 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR30 0000000000000000 (f: 0.000000, d: 0.000000e+00)
FPR31 0000000000000000 (f: 0.000000, d: 0.000000e+00)

-----

Any idea what I'm doing wrong?

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.