Exception in thread "main" kodo.util.FatalInternalException:
I have a method that is trying to save multiple objects:
public void go()
tx.begin();
for (int i = 0; i < 10; i++) {
Person p = new Person();
p.setForename("doug");
p.setSurname("emerald");
p.setGender("m");
p.setBirthdate(new Date());
pm.makePersistent(p);
((KodoPersistenceManager) pm).flush();
tx.commit();
After calling close() on the PersistenceManager and Factory I get this
error:
Exception in thread "main" kodo.util.FatalInternalException: 0 ::
0:kodo.runtime.PNonTransState@15f7107 ::
0:kodo.runtime.PNonTransState@15f7107
at
kodo.runtime.PersistenceManagerImpl.setStateManager(PersistenceManagerImpl.java:2923)
at kodo.runtime.StateManagerImpl.commit(StateManagerImpl.java:680)
at
kodo.runtime.PersistenceManagerImpl.endTransaction(PersistenceManagerImpl.java:907)
at
kodo.runtime.PersistenceManagerImpl.afterCompletion(PersistenceManagerImpl.java:679)
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:86)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:422)
at JDOPerf.go(JDOPerf.java:67)
at JDOPerf.<init>(JDOPerf.java:33)
at JDOPerf.main(JDOPerf.java:16)
What could be causing this error?
Doug
This error was a side effect of the problem I had in my previous post
regarding sequences and application identity. It is now resolved.
Thanks
Stephen Kim wrote:
Does Person use application identity? Can you post the Persion's id class?
Doug Emerald wrote:
I should amend this, the error is on the tx.commit() call.
Doug Emerald wrote:
I have a method that is trying to save multiple objects:
public void go()
tx.begin();
for (int i = 0; i < 10; i++) {
Person p = new Person();
p.setForename("doug");
p.setSurname("emerald");
p.setGender("m");
p.setBirthdate(new Date());
pm.makePersistent(p);
((KodoPersistenceManager) pm).flush();
tx.commit();
After calling close() on the PersistenceManager and Factory I get this
error:
Exception in thread "main" kodo.util.FatalInternalException: 0 ::
0:kodo.runtime.PNonTransState@15f7107 ::
0:kodo.runtime.PNonTransState@15f7107
at
kodo.runtime.PersistenceManagerImpl.setStateManager(PersistenceManagerImpl.java:2923)
>>
at kodo.runtime.StateManagerImpl.commit(StateManagerImpl.java:680)
at
kodo.runtime.PersistenceManagerImpl.endTransaction(PersistenceManagerImpl.java:907)
>>
at
kodo.runtime.PersistenceManagerImpl.afterCompletion(PersistenceManagerImpl.java:679)
>>
at
kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:86)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:422)
at JDOPerf.go(JDOPerf.java:67)
at JDOPerf.<init>(JDOPerf.java:33)
at JDOPerf.main(JDOPerf.java:16)
What could be causing this error?
Doug
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Similar Messages
-
Exception in thread "main" java.util.NoSuchElementException
Hello there,
I need to store resultset values in arrays.
Following is my code:
(Note : The function uses the jdbc connection with mysql that is return from other function.)
public static void getResultSetInArray(Connection con) throws Exception
Map list = new HashMap();
Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY);
ResultSet rs = stmt.executeQuery("show columns from launchcomm.events");
while(rs.next())
list.put(rs.getString("Field"),rs.getString("Type"));
rs.close();
con.close();
System.out.println("List = " + list + "\n");
Iterator iter = null;
iter = list.keySet().iterator();
System.out.println("iter = " + iter);
String field;
String type;
int i=1;
System.out.println("list size = " + list.size());
while(iter.hasNext() != false)
System.out.println("iter.hasNext() = " + iter.hasNext() +"......" +(i++));
System.out.println("iter.next() = " + iter.next());
field = (String)iter.next();
type = (String)list.get(iter.next());
Following is my output with error:
List = {folder_name=varchar(50), is_repeat=tinyint(1), footer=text, thankyou_email=text, box_header_bg_color=varchar(25), organization_id=int(11), attendee_delete_right=tinyint(1), show_ticket_remaining=tinyint(1), order_confirmation_email=text, save_for_later=tinyint(1), start_register=tinyint(4), id=int(11), logo=varchar(100), publish=tinyint(1), end_unregister=datetime, owner_id=int(11), confirmation_email=text, audience_id=int(11), event_color_code=varchar(30), showcalendar=tinyint(1), registration_enddate=datetime, directory_name=varchar(20), eventstatus_id=int(11), contact_id=int(11), password_protect=tinyint(1), include_header=tinyint(1), thankyou_page=text, header=text, is_hotel_capacity=tinyint(1), want_close=tinyint(1), travel_housing_request=tinyint(1), box_header_text_color=varchar(25), default_location_id=int(11), end_reg_modification=datetime, user_id=int(11), passkey_eventcode=varchar(255), page_size=int(11), passkey_password=varchar(255), event_capacity=int(11), box_text_color=varchar(25), updated_on=datetime, link_color=varchar(25), ends_on=datetime, hotel_capacity=int(11), template_id=int(11), allow_overlap_session=tinyint(1), starts_on=datetime, reg_another_button=varchar(50), passkey_partnerid=int(11), personalized_url=tinyint(1), hide_start_date=tinyint(1), hide_end_date=tinyint(1), include_footer=tinyint(1), text_color=varchar(25), allow_another_registrant=tinyint(1), passkey_eventid=int(11), resize=tinyint(1), default_closetemplate=tinyint(1), dateformat=text, personalize_agenda=tinyint(1), cssfile_id=int(11), passkey_information=tinyint(1), confirmation_page=text, activate_waitlist=tinyint(1), box_border_color=varchar(25), google_analytics_code=text, show_iframe_design=tinyint(1), confirmation_mail_format=tinyint(1), url=varchar(100), bg_color=varchar(25), package_id=int(11), name=varchar(200), password=varchar(50), capacity=int(11), modify_registration=tinyint(1), is_event_capacity=tinyint(1), include_css=tinyint(1), passkey_username=varchar(255), created_on=datetime, promote_url=varchar(100), page_views=int(11), box_bg_color=varchar(25), title_text_color=varchar(25), registration_open_text=text, require_login=tinyint(1), closetemplate_description=text, registration_startdate=datetime, domain=varchar(200), timezone_id=varchar(100), description=text, tag=varchar(255), allow_unregister=tinyint(1), order_confirmation_page=text, css=text, showmap=tinyint(1)}
iter = java.util.HashMap$KeyIterator@18a47e0
list size = 95
iter.hasNext() = true......1
iter.next() = folder_name
iter.hasNext() = true......2
iter.next() = footer
iter.hasNext() = true......3
iter.next() = box_header_bg_color
iter.hasNext() = true......4
iter.next() = attendee_delete_right
iter.hasNext() = true......5
iter.next() = order_confirmation_email
iter.hasNext() = true......6
iter.next() = start_register
iter.hasNext() = true......7
iter.next() = logo
iter.hasNext() = true......8
iter.next() = end_unregister
iter.hasNext() = true......9
iter.next() = confirmation_email
iter.hasNext() = true......10
iter.next() = event_color_code
iter.hasNext() = true......11
iter.next() = registration_enddate
iter.hasNext() = true......12
iter.next() = eventstatus_id
iter.hasNext() = true......13
iter.next() = password_protect
iter.hasNext() = true......14
iter.next() = thankyou_page
iter.hasNext() = true......15
iter.next() = is_hotel_capacity
iter.hasNext() = true......16
iter.next() = travel_housing_request
iter.hasNext() = true......17
iter.next() = default_location_id
iter.hasNext() = true......18
iter.next() = user_id
iter.hasNext() = true......19
iter.next() = page_size
iter.hasNext() = true......20
iter.next() = event_capacity
iter.hasNext() = true......21
iter.next() = updated_on
iter.hasNext() = true......22
iter.next() = ends_on
iter.hasNext() = true......23
iter.next() = template_id
iter.hasNext() = true......24
iter.next() = starts_on
iter.hasNext() = true......25
iter.next() = passkey_partnerid
iter.hasNext() = true......26
iter.next() = hide_start_date
iter.hasNext() = true......27
iter.next() = include_footer
iter.hasNext() = true......28
iter.next() = allow_another_registrant
iter.hasNext() = true......29
iter.next() = resize
iter.hasNext() = true......30
iter.next() = dateformat
iter.hasNext() = true......31
iter.next() = cssfile_id
iter.hasNext() = true......32
iter.next() = confirmation_page
iter.hasNext() = true......33
iter.next() = box_border_color
iter.hasNext() = true......34
iter.next() = show_iframe_design
iter.hasNext() = true......35
iter.next() = url
iter.hasNext() = true......36
iter.next() = package_id
iter.hasNext() = true......37
iter.next() = password
iter.hasNext() = true......38
iter.next() = modify_registration
iter.hasNext() = true......39
iter.next() = include_css
iter.hasNext() = true......40
iter.next() = created_on
iter.hasNext() = true......41
iter.next() = page_views
iter.hasNext() = true......42
iter.next() = title_text_color
iter.hasNext() = true......43
iter.next() = require_login
iter.hasNext() = true......44
iter.next() = registration_startdate
iter.hasNext() = true......45
iter.next() = timezone_id
iter.hasNext() = true......46
iter.next() = tag
iter.hasNext() = true......47
iter.next() = order_confirmation_page
iter.hasNext() = true......48
iter.next() = showmap
Exception in thread "main" java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:844)
at java.util.HashMap$KeyIterator.next(HashMap.java:877)
at GetDataTypeFromDB.getResultSetInArray(GetDataTypeFromDB.java:57)
at GetDataTypeFromDB.main(GetDataTypeFromDB.java:16)
I am unable to fine the reason for the exception.
Please help me to solve my problem.
Regards,
Thevoice
Edited by: TheVoice on May 14, 2008 12:01 AMTheVoice wrote:
while(iter.hasNext() != false)
System.out.println("iter.hasNext() = " + iter.hasNext() +"......" +(i++));
System.out.println("iter.next() = " + iter.next());
field = (String)iter.next();
type = (String)list.get(iter.next());
}Your major problem is that iter.next() advances one place every time you call it, so in every iteration of that loop, you advance three steps. The first step is guaranteed to be okay, because you checked it with iter.hasNext(), but the other two are not. In addition, you are in effect "skipping" the printing of two out of every three items.
To print out every item, you probably want to do something like this (call it only one and store it in a variable):
while(iter.hasNext())
String field = (String)iter.next();
System.out.println("iter.hasNext() = " + iter.hasNext() +"......" +(i++));
System.out.println("iter.next() = " + field);
String type = (String)list.get(field);
}For additional clarity, I would recommend using Generics, Map.entrySet(), and the for-each loop:
public static void getResultSetInArray(Connection con) throws Exception
Map<String,String> list = new HashMap<String,String>();
Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY);
ResultSet rs = stmt.executeQuery("show columns from launchcomm.events");
while(rs.next())
list.put(rs.getString("Field"),rs.getString("Type"));
rs.close();
con.close();
for (Map.Entry<String,String> e : list.entrySet())
String field = e.getKey();
String type = e.getValue();
// do stuff with them
}Edited by: spoon_ on May 14, 2008 7:34 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: utils.CertGen
I want to set the environment by using the setWLSEnv.sh shell in linux OS. Then execute the "java weblogic.utils.CertGen" the below error is occurred.
[root@loaclhost ~]# cd /oracle/Middleware_1033/wlserver_10.3/server/bin/
[root@loaclhost bin]# ll
total 16
drwxr-x--- 2 root root 4096 Dec 3 14:37 international
-rwxr-x--- 1 root root 3845 Dec 3 14:38 setWLSEnv.sh
-rwxr-x--- 1 root root 4150 Dec 3 14:38 startNodeManager.sh
[root@loaclhost bin]# sh setWLSEnv.sh
CLASSPATH=/oracle/Middleware_1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/patch_jdev1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/jdk160_18/lib/tools.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/weblogic_sp.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/weblogic.jar:/oracle/Middleware_1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/webservices.jar:/oracle/Middleware_1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/oracle/Middleware_1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/oracle/Middleware_1033/wlserver_10.3/server/bin:/oracle/Middleware_1033/modules/org.apache.ant_1.7.1/bin:/oracle/Middleware_1033/jdk160_18/jre/bin:/oracle/Middleware_1033/jdk160_18/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
Your environment has been set.
[root@loaclhost bin]# java weblogic.utils.CertGen welcome1 vinoth_MS1_cert vinoth_MS1_key domestic vinoth
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.utils.CertGen
at gnu.gcj.runtime.FirstThread.run() (/usr/lib64/libgcj.so.5.0.0)
at JvThreadRun(java.lang.Thread) (/usr/lib64/libgcj.so.5.0.0)
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib64/libgcj.so.5.0.0)
at __gcj_personality_v0 (/oracle/Middleware_1033/wlserver_10.3/server/bin/java.version=1.4.2)
at __libc_start_main (/lib64/tls/libc-2.3.4.so)
at JvRegisterClasses (/oracle/Middleware_1033/wlserver_10.3/server/bin/java.version=1.4.2)
You have new mail in /var/spool/mail/root
But i use check the command " echo CLASSPATH " it's doesn't show any thing.
How to resolve this problem to execute the mentioned command "java weblogic.utils.CertGen welcome1 vinoth_MS1_cert vinoth_MS1_key domestic vinoth"
Regards,
S.Vinoth Babu
Edited by: Vinoth Babu on Dec 13, 2010 5:14 AMYou have to 'source' the call the setWLSEnv, for example,
source ./setWLSEnv.sh or the short version
. ./setWLSEnv.sh -
HELP Needed with this error: Exception in thread "main" java.lang.NoClass
Folks,
I am having a problem connecting to my MSDE SQL 2000 DB on a WindowsXP pro. environment. I am learning Java and writing a small test prgm to connect the the database. The code compiles ok, but when I try to execute it i keep getting this error:
"Exception in thread "main" java.lang.NoClassDefFoundError: Test1"
I am using the Microsoft jdbc driver and my CLASSPATH is setup correctly, I've also noticed that several people have complained about this error, but have not seen any solutions....can someone help ?
Here is the one of the test programs that I am using:
import java.sql.*;
* Microsoft SQL Server JDBC test program
public class Test1 {
public Test1() throws Exception {
// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://LAPTOP01:1433","sa","sqladmin");
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: "
+ meta.getDriverName());
System.out.println("Driver Version: "
+ meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: "
+ meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
} // Test
public static void main (String args[]) throws Exception {
Test1 test = new Test1();I want to say that there was nothing wrong
with my classpath config., I am still not sure why
that didn't work, there is what I did to resolved
this issue.You can say that all you like but if you are getting NoClassDefFound errors, that's because the class associated with the error is not in your classpath.
(For future reference: you will find it easier to solve problems if you assume that the problem is your fault, instead of trying to blame something else. It almost always is your fault -- at least that's been my experience.)
1. I had to set my DB connection protocol to TCP/IP
(this was not the default), this was done by running
the
file "svrnetcn.exe" and then in the SQL Server Network
Utility window, enable TCP/IP and set the port to
1433.Irrelevant to the classpath problem.
2. I then copied all three of the Microsoft JDBC
driver files to the ..\jre\lib\ext dir of my jdk
installed dir.The classpath always includes all jar files in this directory. That's why doing that fixed your problem. My bet is that you didn't have the jar file containing the driver in your classpath before, you just had the directory containing that jar file.
3. Updated my OS path to located these files
and....BINGO! (that simple)Unnecessary for solving classpath problems.
4. Took a crash course on JDBC & basic Java and now I
have created my database, all tables, scripts,
stored procedures and can read/write and do all kinds
of neat stuff.All's well that ends well. After a few months you'll wonder what all the fuss was about. -
DB:11.1.0.7
Oracle Apps:12.1.1
OS:RHEL Linux 4 86x64
Hi All,
On executing the following command on node 2 of TEST instance, we received the following error but did not find any such error messages in node 1
Notes: (1) Node 1 has java version:
java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
(2) Node 2 has java version:
java -version
java version "1.4.2"
gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Error message in node2:
On executing the following command on node 2 of TEST instance, we received the following error:
java oracle.jrad.tools.xml.importer.XMLImporter /tmp/custdocs/oracle/apps/pos/home/webui/customizations/site/0/PosHpgOrders.xml ....
/usr/bin/java: line 36: [: `)' expected, found -
Exception in thread "main" java.lang.VerifyError: verification failed at PC 152 in oracle.jdbc.driver.OracleDriver:registerMBeans(()V): String, int, or float constant expected
at JvBytecodeVerifier.verify_fail(byte, int) (/usr/lib64/libgcj.so.5.0.0)
at JvBytecodeVerifier.verify_instructions_0() (/usr/lib64/libgcj.so.5.0.0)
at JvVerifyMethod(_Jv_InterpMethod) (/usr/lib64/libgcj.so.5.0.0)
at JvPrepareClass(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
at JvWaitForState(java.lang.Class, int) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib64/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib64/libgcj.so.5.0.0)
at oracle.adf.mds.tools.util.ConnectUtils.getDBConnection(java.lang.String) (Unknown Source)
at oracle.jrad.tools.xml.importer.XMLImporter.importDocuments(java.lang.String[], java.sql.Connection) (Unknown Source)
at oracle.jrad.tools.xml.importer.XMLImporter.main(java.lang.String[]) (Unknown Source)
Could anyone please share such an issue faced before and provide resolution as to what's wrong in here in node 2?
Thanks for your time!
Regards,Hi,
(2) Node 2 has java version:
java -version
java version "1.4.2"Do you run this command as applmgr user? If yes, did you source the application env file?
Could anyone please share such an issue faced before and provide resolution as to what's wrong in here in node 2?Why the java version is different on the both nodes?
Thanks,
Hussein -
Exception in thread "main" java.lang.NullPointerException
hi
I am new to Java, and taking an introductory course in java. I wrote the code given bellow and get following error "C:\java\assingment2>java test123
Exception in thread "main" java.lang.NullPointerException
at PartCatalog.Add(test123.java:56)
at test123.main(test123.java:102)"
Can any body help me please
import java.util.*;
class PartRecord
public String PartName;
public String PartNumber;
public float Cost;
public int Quantity;
public static int counter ;
public PartRecord()
{ PartName ="";
PartNumber="";
Cost = 0;
Quantity = 0;
counter = 0;
public void Set(String name, final String num,
float cost, int quantity)
PartName = name;
PartNumber= num;
Cost = cost;
Quantity = quantity;
counter++;
public float Get()
return Cost*Quantity;
public static int Counter() {return counter;}
class PartCatalog
public PartCatalog()
npart=0;
public void Add(String name, String num,
float cost, int quantity)
if(npart>=1000) return;
Parts[npart++].Set(name,num,cost,quantity);
public float ShowInventory()
int inventory = 0;
for(int i=0; i<npart; i++)
inventory+= Parts.Get();
return inventory;
public PartRecord[] Parts = new PartRecord[1000];
public int npart;
class ExtPartCatalog extends PartCatalog
public void Sort()
Arrays.sort(Parts);
public void Print()
for(int i=0; i<npart; i++)
System.out.println ( Parts[i].PartName + "\t "
+ Parts[i].PartNumber + "\t "
+ Parts[i].Cost + "\t "
+ Parts[i].Quantity + "\n");
class test123{
public static void main(String args[])
ExtPartCatalog catalog = new ExtPartCatalog();
catalog.Add("tire ", "1", 45, 200);
catalog.Add("microwave", "2", 95, 10);
catalog.Add("CD Player", "3", 215, 11);
catalog.Add("Chair ", "4", 65, 10);
catalog.Sort();
catalog.Print();
System.out.println("Inventory is " + catalog.ShowInventory());
ExtPartCatalog catalog2 = new ExtPartCatalog();
catalog2.Add("ttt ", "1", 45, 200);
System.out.print("\n\nTotally there are " + PartRecord.Counter() );
System.out.println(" Parts being set" );Thank you for your reply. I think i used
public PartRecord[] Parts = new PartRecord[1000];
so i have created the reference. I tries what you told me but it still did not work. I am putting the code again, but now in the formatted form so that you can read it more easily. I will appreciate your help. Thanks
<code>
import java.util.*;
class PartRecord
{ public String PartName;
public String PartNumber;
public float Cost;
public int Quantity;
public static int counter ;
public PartRecord()
PartName ="";
PartNumber="";
Cost = 0;
Quantity = 0;
//counter = 0;
public void Set(String name, final String num,
float cost, int quantity)
PartName = name;
PartNumber= num;
Cost = cost;
Quantity = quantity;
counter++;
public float Get()
return Cost*Quantity;
public static int Counter() {return counter;}
class PartCatalog
{ public PartRecord[] Parts = new PartRecord[1000];
public int npart;
public PartCatalog()
npart=0;
public void Add(String name, String num,
float cost, int quantity)
if(npart>=1000) return;
Parts[npart++].Set(name,num,cost,quantity);
public float ShowInventory()
float inventory = 0;
for(int i=0; i<npart; i++)
inventory= Parts[npart].Get();
return inventory;
/*class ExtPartCatalog extends PartCatalog
public void Sort()
Arrays.sort(Parts);
public void Print()
for(int i=0; i<npart; i++)
System.out.println ( Parts.PartName + "\t "
+ Parts[i].PartNumber + "\t "
+ Parts[i].Cost + "\t "
+ Parts[i].Quantity + "\n");
class azimi_a{
public static void main(String args[])
PartCatalog c = new PartCatalog() ;//= new PartCatalog[4];
c.Add("tire ", "1", 45, 200);
c.Add("microwave", "2", 95, 10);
c.Add("CD Player", "3", 215, 11);
c.Add("Chair ", "4", 65, 10);
<code> -
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
hi to all.
iam getting this error: could any one give me the solution.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at DinosaursDataLoader.getData(DinosaursDataLoader.java:49)
at DinosaursPack.load(DinosaursPack.java:22)
at DinosaursPack.<init>(DinosaursPack.java:18)
at myproject.main(myproject.java:17)
import java.util.*;
import java.io.*;
import javax.swing.ImageIcon;
public class Driver {
public static void main (String[] args) {
// create a Scanner and grab the data . . .
File f=new File("C:\\Users\\hariprasad koineni\\Desktop\\r.txt");// my text file containes 12 dinosuor card info
Scanner scanner = null;
try {
scanner = new Scanner(f);
} catch (FileNotFoundException fnf) {
System.out.println(fnf.getMessage());
System.exit(0);
// scan file line-by-line
scanner.useDelimiter("------------------------------------------------------------------");
int y=0;
while (scanner.hasNext()) {
String line = scanner.next().trim();
System.out.println(line);
String bits[]= new String[19];
String[] bit = line.split("\n"); // Regex available since Java 5
for(int j=0;j<=(bit.length-1);j++){
String[] bis = bit[j].split(":");
System.out.println(bis[0]);
String t=bis[1].trim();
bits[j]=t;
System.out.println(bits[j]);
System.out.println(j);
String t = bits[0]; // title
String imgFileName = bits[1]; // image file name
float h = Float.parseFloat(bits[2]); // height
String w = bits[3]; // weight
String l = bits[4]; // length
int kr = Integer.parseInt(bits[5]); // killer rating
String i = bits[6]; // intelligence
int a = Integer.parseInt(bits[7]); // age
String df = bits[8]; // dino file
// create the image
y++;
System.out.println(line);
System.out.println(y);
}h_koineni wrote:
sorry
iam getting the error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at Driver.main(Driver.java:38)So meaning this line cause the exception:
String t=bis[1].trim(); // hard-coded int literal 1That happens because, in line 36,
String[] bis = bit[j].split(":");What will happen if the delimiter ':' is not found? It will return an array with a size of 1, and at this time referencing index 1 is out of bound, remember that the upper bound of an array is its size-1. One workaround is to put a selection structure after line 36.
if (bis != null && bis.length == 2) {
String t=bis[1].trim();
bits[j]=t;
}Then, recompile your code and try again. -
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
I am getting error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
Pls tell me where I am wrong:
import javax.swing.JOptionPane;
import java.io.File;
import java.io.*;
import java.io.IOException;
import java.util.*;
class Test {
String lname, fname, finalLetterGrade, LetterGrade, sub1,sub2,sub3,sub4,sub5,sub;
int testone = 0;
int a=0,b,c,d,e, count= 0, abs = 0,j;
int testtwo = 0;
int testthree = 0;
int testfour = 0;
int testfive = 0;
int finalExamGrade = 0;
int i=0;
int participation = 0;
int lowScore = 0;
int abs1,abs2,abs3,abs4,abs5;
String s="absent";
Character ch;
String []name;
int []Mark;
double finalNumericGrade = 0;
public Test() {
public void inputGrades()
int input, row, col;
Scanner scan = new Scanner(System.in);
System.out.println("Enter the length of the square matrix: ");
col = scan.nextInt();
name = new String[col];
Mark = new int[col];
for(i = 0; i < col ; i++)
name=JOptionPane.showInputDialog("Enter Student Name"+(i+1)+" Name: ");
System.out.println(name[i]);
for(j=0; j < col;j++)
Mark[j]=Integer.parseInt(JOptionPane.showInputDialog("Marks "+(j+1)+" Mark: "));
System.out.println(Mark[j]);
System.out.println("Average-->"+getAverage());
System.out.println("Student'-->"+toString());
public double getAverage()
if( Mark[0]==0 || Mark[1]==0 || Mark[2]==0 || Mark[3]==0 || Mark[4]==0)
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/4);
else
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/5);;
return finalNumericGrade;
private String letterGrade(){
//System.out.println(" +++ finalNumericGrade " + finalNumericGrade );
if ((finalNumericGrade >= 3.50) & (finalNumericGrade <= 4))
finalLetterGrade = "A";
else
if ((finalNumericGrade >= 2.50) & (finalNumericGrade < 3.50))
finalLetterGrade = "B";
else
if ((finalNumericGrade >= 2) & (finalNumericGrade < 2.50))
finalLetterGrade = "C";
else
if ((finalNumericGrade >= 1) & (finalNumericGrade < 2))
finalLetterGrade = "D";
else
if (finalNumericGrade == 0)
finalLetterGrade = "X";
else finalLetterGrade ="Z";
return finalLetterGrade;
public int getAbsentee()
if(testone == 0)
abs1=1;
if(testtwo == 0)
abs2=1;
if(testthree == 0)
abs3=1;
if(testfour == 0)
abs4=1;
if(testfive == 0)
abs5=1;
return abs=abs1+abs2+abs3+abs4+abs5;
public String AbsentSub()
if((testone < testtwo) & (testone < testthree) & (testone < testfour) & (testone < testfive))
sub=sub1;
if((testtwo < testone) & (testtwo < testthree) & (testtwo < testfour) & (testtwo < testfive))
sub=sub2;
if((testthree < testone) & (testthree < testtwo) & (testthree < testfour) & (testthree < testfive))
sub=sub3;
if((testfour < testone) & (testfour < testthree) & (testfour < testtwo) & (testfour < testfive))
sub=sub4;
if((testfive < testone) & (testfive < testtwo) & (testfive < testthree) & (testfive < testfour))
sub=sub5;
return sub;
public int getLowScore(){
//Determine and return the lowest score
lowScore = testone;
if (testtwo < lowScore) lowScore = testtwo;
if (testthree < lowScore) lowScore = testthree;
if (testfour < lowScore) lowScore = testfour;
if (testfive < lowScore) lowScore = testfive;
return lowScore;
public String toString() {
String studentStringValue="\n\nStudent " sub1 " "+sub2+" "+sub3+" "+sub4+" "+sub5+ " Lowest Final Marks \n\n";
studentStringValue+= name[i]+"\t";
if(Mark[0]==0)
studentStringValue+="" s "\t";
else
a=Mark[0];
ch = new Character(((char) ((69-a))));
studentStringValue+= Mark[0]+" "+ch+ "\t";
if(Mark[1]==0)
studentStringValue+="" s "\t";
else
b=Mark[1];
ch = new Character(((char) ((69-b))));
studentStringValue+= Mark[1]+" "+ch+ "\t";
if(Mark[2]==0)
studentStringValue+="" s "\t";
else
c=Mark[2];
ch = new Character(((char) ((69-c))));
studentStringValue+=Mark[2] +" "+ch+ "\t";
if(Mark[3]==0)
studentStringValue+="" s "\t";
else
d=Mark[3];
ch = new Character(((char) ((69-d))));
studentStringValue+= Mark[3] +" "+ch+ "\t";
if(Mark[4]==0)
studentStringValue+="" s "\t";
else
e=Mark[4];
ch = new Character(((char) ((69-e))));
studentStringValue+=Mark[4] +" "+ch+ "\t";
try {
BufferedWriter out = new BufferedWriter(new FileWriter(".//Marks3.txt", true));
out.write(studentStringValue);
out.close();
} catch (IOException e) {
//studentStringValue+=" " + abs + " ";
//studentStringValue+=" " sub"\t";
studentStringValue+=" " + finalNumericGrade + " \n\n";
//studentStringValue+=" Final Letter Grade is: " + finalLetterGrade +"\n";
return studentStringValue;
}// toString
public void printName(){
System.out.print(" "+lname);
System.out.print(" "+fname);
public static void main(String[] args)
Test s = new Test();
s.inputGrades();
System.out.println("Average-->" +s.getAverage());
//System.out.println("Average-->" +s.setAverage());
//System.out.println("Absent students in each Test-->" + s.getAbsentee());
// s.getLowScore();
//System.out.println("Final Letter Grade --> " + s.letterGrade());
// s.AbsentSub();
System.out.println(""+ s.toString());hi,
I am getting error on line 232 n 339
My error is :
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at Test.toString(Test.java:232)
at Test.main(Test.java:339)
my code is :
import javax.swing.JOptionPane;
import java.io.File;
import java.io.*;
import java.io.IOException;
import java.util.*;
class Test {
String lname, fname, finalLetterGrade, LetterGrade, sub1,sub2,sub3,sub4,sub5,sub;
int testone = 0;
int a=0,b,c,d,e, count= 0, abs = 0,j,ab,abm=0,abj=0,abn=0,abd=0;
int testtwo = 0;
int testthree = 0;
int testfour = 0;
int testfive = 0;
int finalExamGrade = 0;
int i=0;
int participation = 0;
int lowScore = 0;
int abs1,abs2,abs3,abs4,abs5;
String s="absent";
Character ch;
String []name;
String[] subj;
int []Mark;
double finalNumericGrade = 0;
public Test() {
public void inputGrades()
int input, row, col;
Scanner scan = new Scanner(System.in);
System.out.println("Enter the length of Array: ");
col = scan.nextInt();
name = new String[col];
subj = new String[5];
Mark = new int[5];
for(i = 0; i < col ; i++)
name=JOptionPane.showInputDialog("Enter Student Name"+(i+1)+" Name: ");
System.out.println(name[i]);
for(j=0; j < 5;j++)
subj[j]=JOptionPane.showInputDialog("Enter Subject"+(j+1)+" Name: ");
Mark[j]=Integer.parseInt(JOptionPane.showInputDialog("Marks "+(j+1)+" Mark: "));
System.out.println(subj[j]);
System.out.println(Mark[j]);
System.out.println("Student'-->"+toString());
System.out.println("Average Stu-->"+getAverage());
getLowScore();
public double getAverage()
if( Mark[0]==0 || Mark[1]==0 || Mark[2]==0 || Mark[3]==0 || Mark[4]==0)
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/4);
else
finalNumericGrade=((((float)(Mark[0])) + ((float)(Mark[1])) + ((float)(Mark[2])) + ((float)(Mark[3])) + ((float)(Mark[4])))/5);;
return finalNumericGrade;
private String letterGrade(){
//System.out.println(" +++ finalNumericGrade " + finalNumericGrade );
if ((finalNumericGrade >= 3.50) & (finalNumericGrade <= 4))
finalLetterGrade = "A";
else
if ((finalNumericGrade >= 2.50) & (finalNumericGrade < 3.50))
finalLetterGrade = "B";
else
if ((finalNumericGrade >= 2) & (finalNumericGrade < 2.50))
finalLetterGrade = "C";
else
if ((finalNumericGrade >= 1) & (finalNumericGrade < 2))
finalLetterGrade = "D";
else
if (finalNumericGrade == 0)
finalLetterGrade = "X";
else finalLetterGrade ="Z";
return finalLetterGrade;
/*****Java Absentee***/
public int getAbsenteeJava()
if((Mark[0]==0))
abj=abj+1;
else
abj=0;
return abj;
public void setAbsenteeJava()
System.out.println("Absent in Java-->"+abj);
/***Maths Absentee****/
public int getAbsenteeMaths()
if(Mark[1]==0)
abm=abm+1;
else
abm=0;
return abm;
public void setAbsenteeMaths()
System.out.println("Absent in Maths-->"+abm);
/****Stats Absentee---*/
public int getAbsenteeStat()
sub3="Stats";
if(Mark[2]==0)
abs=abs+1;
else
abs=0;
return abs;
public void setAbsenteeStat()
System.out.println("Absent in Stats-->"+abs);
/*****NEt Absentee****/
public int getAbsenteeNet()
sub4="Network";
if(Mark[3]==0)
abn=abn+1;
else
abn=0;
return abn;
public void setAbsenteeNet()
System.out.println("Absent in Network-->"+abn);
/*****Database Absentee****/
public int getAbsenteeData()
sub5="Database";
if(Mark[4]==0)
abd=abd+1;
else
abd=0;
return abd;
public void setAbsenteeData()
System.out.println("Absent in Database-->"+abd);
public String getLowScore(){
//Determine and return the lowest score
if(((subj[0].equals(sub1)) || (Mark[0]==0)))
sub="Java";
else if(((subj[1].equals(sub2)) || (Mark[1]==0)))
sub="Maths";
else if(((subj[2].equals(sub3)) & (Mark[2]==0)))
sub="Stats";
else if(((subj[3].equals(sub4)) || (Mark[3]==0)))
sub="Network";
else if(((subj[4].equals(sub5)) || (Mark[4]==0)))
sub="Database";
return sub;
public String toString() {
String studentStringValue="\n\nStudent " subj[0] " "+subj[1]+" "+subj[2]+" "+subj[3]+" "+subj[4]+ " Lowest Final Marks \n\n";
String nm = name[i];
studentStringValue+= nm+"\t";
if(Mark[0]==0)
studentStringValue+="" s "\t";
else
{// 232: Line: getting ERROR here
a=Mark[0];
ch = new Character(((char) ((69-a))));
studentStringValue+= Mark[0]+" "+ch+ "\t";
if(Mark[1]==0)
studentStringValue+="" s "\t";
else
b=Mark[1];
ch = new Character(((char) ((69-b))));
studentStringValue+= Mark[1]+" "+ch+ "\t";
if(Mark[2]==0)
studentStringValue+="" s "\t";
else
c=Mark[2];
ch = new Character(((char) ((69-c))));
studentStringValue+=Mark[2] +" "+ch+ "\t";
if(Mark[3]==0)
studentStringValue+="" s "\t";
else
d=Mark[3];
ch = new Character(((char) ((69-d))));
studentStringValue+= Mark[3] +" "+ch+ "\t";
if(Mark[4]==0)
studentStringValue+="" s "\t";
else
e=Mark[4];
ch = new Character(((char) ((69-e))));
studentStringValue+=Mark[4] +" "+ch+ "\t";
//studentStringValue+=" " + abs + " ";
studentStringValue+=" " sub"\t";
studentStringValue+=" " + finalNumericGrade + " \n\n";
//studentStringValue+=" Final Letter Grade is: " + finalLetterGrade +"\n";
try {
BufferedWriter out = new BufferedWriter(new FileWriter(".//Marks3.txt", true));
out.write(studentStringValue);
out.close();
} catch (IOException e) {
return studentStringValue;
}// toString
public void printName(){
System.out.print(" "+lname);
System.out.print(" "+fname);
public static void main(String[] args)
Test s = new Test();
s.inputGrades();
System.out.println("Average-->" +s.getAverage());
//System.out.println("Average-->" +s.setAverage());
s.getAbsenteeJava();
s.setAbsenteeJava();
s.getAbsenteeMaths();
s.setAbsenteeMaths();
s.getAbsenteeStat();
s.setAbsenteeStat();
s.getAbsenteeNet();
s.setAbsenteeNet();
s.getAbsenteeData();
s.setAbsenteeData();
s.getLowScore();
//System.out.println("Final Letter Grade --> " + s.letterGrade());
System.out.println(""+ s.toString()); -
Exception in thread "main" javax.mail.NoSuchProviderException: invalid prov
HI,
I am trying to read mails from my inbox i amgetting the ErrorC:\javamail>java
Readmail
Exception in thread "main" javax.mail.NoSuchProviderException: No provider for IMAP
at javax.mail.Session.getProvider(Session.java:455)
at javax.mail.Session.getStore(Session.java:530)
at javax.mail.Session.getStore(Session.java:510)
at Readmail.main(Readmail.java:24)My Code is {
String host = "hostname";
String username = "user";
String password = "password";
// Create empty properties
Properties props = new Properties();
// Get session
Session session = Session.getDefaultInstance(props,null);
// Get the store
Store store = session.getStore("IMAP");
store.connect(host, username, password);
// Get folder
Folder folder = store.getFolder("Inbox");
folder.open(Folder.READ_ONLY);
// Get directory
Message message[] = folder.getMessages();
for (int i=0, n=message.length; i<n; i++)
System.out.println(i + ": " + message.getFrom()[0]
+ "\t" + message[i].getSubject());
// Close connection
folder.close(false);
store.close();
I have also tried POP3 and MIME and SMTP
Can anyone help me Thankshi bshannon,
I am getting the same error for others but for pop3 the error is as below
Exception in thread "main" javax.mail.MessagingException: Connect failed;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at Readmail.main(Readmail.java:25)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81)
at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
... 3 more -
"exception in thread main" error while running "dbca"
Hi,
i am getting following kind of error while trying to run dbca in linux.
"exception in thread main"
i have the dispaly env var set. and xhost+ set too. but still dbca is not working.
i have pasted the contents of dbca file below. can someone have a look at the file and help me find the error.
it would be great if someone can paste their dbca file content, so i can compare and fix the error.
#!/bin/sh -f
# $Header: dbca.sh 12-may-2005.11:05:03 xuliu Exp $
# dbca.sh
# Copyright (c) 1997, 2005, Oracle. All rights reserved.
# NAME
# dbassist - Shell script to run Database Creation Assistant
# DESCRIPTION
# Runs Database Creation Assistion java application
# Run this script with -h or -help option to get the help.
# MODIFIED (MMDD/YY)
# npamnani 10/23/02 - add 1.3.1. java flag
# npamnani 10/09/02 - run with java instead jre
# dkapoor 07/05/2000 - Created
# Variables set by Oracle Universal Installer for dependent components.
# Define ORACLE_HOME -> OH
OH=/home/oracle/oracle/product/10.2.0/db_1
PLATFORM=Linux
ORACLE_HOME=$OH
export ORACLE_HOME;
# Version specific JAR files
JRE_FILE=rt.jar
I18_FILE=i18n.jar
EWT_FILE=ewt3.jar
JEWT_FILE=jewt4.jar
EWT_COMP_FILE=ewtcompat-3_3_15.jar
SHARE_FILE=share.jar
HELP_FILE=help4.jar
#ICE_BROWSER_FILE=oracle_ice5.jar
ICE_BROWSER5_FILE=oracle_ice5.jar
KODIAK_FILE=kodiak.jar
SWING_FILE=swingall-1_1_1.jar
XMLPARSER_FILE=xmlparserv2.jar
JDBC_FILE=classes12.zip
GDK_FILE1=orai18n.jar
GDK_FILE2=orai18n-mapping.jar
GDK_FILE3=orai18n-utility.jar
GDK_FILE4=orai18n-collation.jar
NETCFG_FILE=netcfg.jar
OJMISC_FILE=ojmisc.jar
PKI_FILE=oraclepki103.jar
LDAP_FILE=ldapjclnt10.jar
OPM_FILE=opm.jar
SRVM_FILE=srvm.jar
SRVMHAS_FILE=srvmhas.jar
SRVMASM_FILE=srvmasm.jar
ASSISTANTS_COMMON_FILE=assistantsCommon.jar
DBCA_FILE=dbca.jar
EMLITE_JAR=oemlt-10_1_0.jar
INSTALLER_FILE=OraInstaller.jar
PREREQ_JAR_FILE=OraPrereq.jar
PREREQ_CHECKS_JAR_FILE=OraPrereqChecks.jar
# Directory Variables
SRVM_JLIB_DIR=/home/oracle/oracle/product/10.2.0/db_1/jlib
JRE_DIR=/home/oracle/oracle/product/10.2.0/db_1/jdk/jre
LIB_DIR=$OH/lib
LIB32_DIR=$OH/lib32
JLIB_DIR=$OH/jlib
DBCA_JLIB_DIR=$OH/assistants/dbca/jlib
ASSISTANTS_JLIB_DIR=$OH/assistants/jlib
INSTALLER_JLIB_DIR=/home/oracle/oracle/product/10.2.0/db_1/oui/jlib
# Classpath
JRE_CLASSPATH=$JRE_DIR/lib/$JRE_FILE
I18_CLASSPATH=$JRE_DIR/lib/$I18_FILE
EWT_CLASSPATH=$JLIB_DIR/$EWT_FILE:$JLIB_DIR/$EWT_COMP_FILE
SHARE_CLASSPATH=$JLIB_DIR/$SHARE_FILE
HELP_CLASSPATH=$JLIB_DIR/$HELP_FILE:$JLIB_DIR/$JEWT_FILE
ICE_BROWSER_CLASSPATH=$JLIB_DIR/$ICE_BROWSER5_FILE
KODIAK_CLASSPATH=$JLIB_DIR/$KODIAK_FILE
SWING_CLASSPATH=$JLIB_DIR/$SWING_FILE
XMLPARSER_CLASSPATH=/home/oracle/oracle/product/10.2.0/db_1/lib/$XMLPARSER_FILE
JDBC_CLASSPATH=$OH/jdbc/lib/$JDBC_FILE
GDK_CLASSPATH=$JLIB_DIR/$GDK_FILE1:$JLIB_DIR/$GDK_FILE2:$JLIB_DIR/$GDK_FILE3:$JLIB_DIR/$GDK_FILE4
NETCFG_CLASSPATH=$JLIB_DIR/$NETCFG_FILE:$JLIB_DIR/$OJMISC_FILE:$JLIB_DIR/$PKI_FILE:$JLIB_DIR/$LDAP_FILE:$JLIB_DIR/$OPM_FILE
SRVM_CLASSPATH=$SRVM_JLIB_DIR/$SRVM_FILE:$SRVM_JLIB_DIR/$SRVMHAS_FILE:$SRVM_JLIB_DIR/$SRVMASM_FILE
EM_CLASSPATH=$OH/classes:$JLIB_DIR/$EMLITE_JAR:$JLIB_DIR/emca.jar:$OH/sysman/jlib/emCORE.jar:$OH/oc4j/j2ee/home/oc4j.jar:$OH/oc4j/j2ee/home/db_oc4j_deploy.jar:$JLIB_DIR/emConfigInstall.jar
ASSISTANTS_COMMON_CLASSPATH=$ASSISTANTS_JLIB_DIR/$ASSISTANTS_COMMON_FILE
DBCA_CLASSPATH=$DBCA_JLIB_DIR/$DBCA_FILE
INSTALLER_CLASSPATH=$INSTALLER_JLIB_DIR/$INSTALLER_FILE:$INSTALLER_JLIB_DIR/$PREREQ_JAR_FILE:$OH/inventory/prereqs/oui/$PREREQ_CHECKS_JAR_FILE:$INSTALLER_JLIB_DIR/$PREREQ_CHECKS_JAR_FILE
# Check for silent or help
SILENT="false"
for i in $*
do
if [ $i = "-silent" ] || [ $i = "-help" ] || [ $i = "-h" ]; then
SILENT="true"
break
fi
done
# Check for DISPLAY
if [ $SILENT = "false" ]; then
case $DISPLAY in
echo "DISPLAY not set."
echo "Set DISPLAY environment variable, then re-run."
exit;
esac
fi
# make sure others can not read/write any files created
umask 27
# The environment variable $TWO_TASK cannot be set during the installation
unset TWO_TASK
# The environment variable $JAVA_HOME cannot be set during the installation
unset JAVA_HOME
# Basic error checking
case $OH in
"") echo "*** ORACLE_HOME Not Set!"
echo " Set and export ORACLE_HOME, then re-run"
echo " ORACLE_HOME points to the main directory that"
echo " contains all Oracle products."
exit 1;;
esac
# Set the LD_LIBRARY_PATH to set the path for shared objects
# Do not set it on AIX
if [ $PLATFORM != IBM_AIX ]; then
LD_LIBRARY_PATH=$LIB32_DIR:$OH/network/lib32:$LIB_DIR:$OH/network/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH;
fi
# Set SHLIB_PATH for HP to use 32bit native libraries
SHLIB_PATH=$LIB32_DIR:$ORACLE_HOME/network/lib32:$SHLIB_PATH
export SHLIB_PATH;
# Set LIBPATH for AIX to use 32bit native libraries
LIBPATH=$LIB32_DIR:$ORACLE_HOME/network/lib32:$LIBPATH
export LIBPATH;
# Set Classpath for Database Creation Assistant
CLASSPATH=$JRE_CLASSPATH:$I18_CLASSPATH:$DBCA_CLASSPATH:$ASSISTANTS_COMMON_CLASSPATH:$EWT_CLASSPATH:$SHARE_CLASSPATH:$HELP_CLASSPATH:$ICE_BROWSER_CLASSPATH:$KODIAK_CLASSPATH:$SWING_CLASSPATH:$XMLPARSER_CLASSPATH:$GDK_CLASSPATH:$NETCFG_CLASSPATH:$JDBC_CLASSPATH:$SRVM_CLASSPATH:$EM_CLASSPATH:$INSTALLER_CLASSPATH
ARGUMENTS=""
NUMBER_OF_ARGUMENTS=$#
if [ $NUMBER_OF_ARGUMENTS -gt 0 ]; then
ARGUMENTS=$*
fi
# Run DBCA
$JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx128m -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
Thanks,
Philip.I got this error also,.
After restart the computer, it runs ok. -
I've got an error similar to Isaac_Sunkes' 'FB 4.7 iOS packaging - Exception in thread "main" java.lang.OutOfMemoryError',
but the causes are not related to what he discovered, corrupt image or other files, I'd exclude bad archive contents in my project.
I'm using Flash Builder 4.7 with Adobe AIR 3.6 set into an Apache Flex 4.9.1 SDK;
HW system is:
iMac, 2,7 GHz Intel Core i5, 8 GB 1600 MHz DDR3, NVIDIA GeForce GT 640M 512 MB, OS X 10.8.2 (12C3103)
The Flash project consists in an application with a main SWF file which loads, via ActionScript methods, other SWF in cascade.
I've formerly compiled and run the application on an iPad 1, IOS 5.0.1 (9A405), but got on the device the error alert:
"Uncompiled ActionScript
Your application is attempitng to run
uncompiled ActionScript, probably
due to the use of an embedded
SWF. This is unsupported on iOS.
See the Adobe Developer
Connection website for more info."
Then I changed the FB compiler switches, now are set to:
-locale en_US
-swf-version=19
Please note that without the switch -swf-version=19 the application is compiled correctly and the IPA is sent to the device
and I can debug it, but iOS traps secondary SWF files and blocke the app usage, as previously told.
they work on deploy of small applications,
but, when I try to build a big IPA file either for an ad-hoc distribution, either for an debug on device, after some minutes long waiting, I get a Java stuck, with this trace:
Error occurred while packaging the application:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.addEntry(HashMap.java:753)
at java.util.HashMap.put(HashMap.java:385)
at java.util.HashSet.add(HashSet.java:200)
at adobe.abc.Algorithms.addUses(Algorithms.java:165)
at adobe.abc.Algorithms.findUses(Algorithms.java:187)
at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4731)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3615)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2309)
at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:532)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:341)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler .java:599)
at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:104)
I've tried to change the Java settings on FB's eclipse.ini in MacOS folder,
-vmargs
-Xms(various settings up to)1024m
-Xmx(various settings up to)1024m
-XX:MaxPermSize=(various settings up to)512m
-XX:PermSize=(various settings up to)256m
but results are the same.
Now settings are back as recommended:
-vmargs
-Xms256m
-Xmx512m
-XX:MaxPermSize=256m
-XX:PermSize=64m
I've changed the Flex build.properties
jvm.args = ${local.d32} -Xms64m -Xmx1024m -ea -Dapple.awt.UIElement=true
with no results; now I'n get back to the standard:
jvm.args = ${local.d32} -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true
and now I truely have no more ideas;
could anyone give an help?
many thanks in advance.I solved this. It turns out the app icons were corrupt. After removing them and replacing them with new files this error went away.
-
How to resolve Exception in thread "main" java.lang.NoSuchFieldError: strm
Hi,
Aplogies, if I am posting this in the wrong place, else please guide me.
We were running JBoss server 4.2.3 GA with Java 5 Update 19 in Solaris 10.
Details of uname command in Solaris box is,
uname -a
SunOS uktapp06 5.10 Generic_125100-10 sun4us sparc FJSV,GPUZC-M
Due to performance issues we need to upgrade to latest Java [Java 6 Update 21] and when I tried to run JBoss with 64 bit mode using Java options like,
JAVA_OPTS="*-d64* -Xms3g -Xmx3g -XX:ThreadStackSize=512 -XX:+UseParallelGC -XX:MaxPermSize=256m -XX:NewRatio=2"
I get the below error,
Exception in thread "main" java.lang.NoSuchFieldError: strm
at java.util.zip.Inflater.initIDs(Native Method)
at java.util.zip.Inflater.<clinit>(Inflater.java:68)
at java.util.zip.ZipFile.getInflater(ZipFile.java:266)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:212)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)
at java.util.jar.JarFile.hasClassPathAttribute(JarFile.java:465)
at java.util.jar.JavaUtilJarAccessImpl.jarFileHasClassPathAttribute(JavaUtilJarAccessImpl.java:21)
at sun.misc.URLClassPath$JarLoader.getClassPath(URLClassPath.java:903)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:302)
at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)I have posted this at JBoss Forum here, http://community.jboss.org/message/553489
and got a response that we need to reinstall Java 6 Update 21 in Solaris
However my System admin verified and said there are no issues in Java installation.
I could run a HelloWorld sample program using the same Java options [with -d64 flag] and that runs perfectly.
I do not have any clue because I do not think there is any issues in the JBoss server
From the above trace, it is failing at a native call and not picking up the required libraries.
Please also let me know the below
1. Whether I need to set any environment variables?
2. Whether the installation would have been corrupted and we need to reinstall?
Thanks,
PrabhuHi Franco,
Yes, I solved that by reinstalling Java 6 Update 21.
There are three versions for Solaris namely, SPARC, x64 and x86. Our platform is SPARC and I think System admin has installed the wrong version instead of installing SPARC version of Java.
After installing SPARC version of Java this got resolved. And I confirmed everything is fine by running a small program as below. You can run this program from command line using the -d64 flag. If the installation is wrong you will get the same exception as I mentioned.
public class Analyzer {
public static void main(String args[]) throws Exception{
InputStream fin = new FileInputStream(args[0]);
int iSize = fin.available();
byte mvIn[] = new byte[iSize];
fin.read(mvIn,0,iSize);
fin.close();
String strText = new String(mvIn);
PrintStream fout = new PrintStream(new FileOutputStream(args[0]+".csv"));
fout.println("Before,After,Seconds");
Pattern p = Pattern.compile("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
Matcher m = p.matcher(strText);
while(m.find()){
fout.println(m.group(1)+ "," + m.group(2) + "," + m.group(3));
fout.close();
}Hope this helps.
Regards,
Prabhu -
Exception in thread "main" org.xml.sax.SAXParseException:
Hi everybody,
I had a code which is running good in the output till error comes,i want to remove that error in xml file and replace with blanck(or null value) by using string function.
It will be a great help if some body could modify my code .
import javax.xml.bind.Validator;
import javax.xml.parsers.*;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;
import java.util.jar.Attributes;
import java.io.File;
class Reading extends DefaultHandler
public static void main(String args[])throws Exception
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
File file=new File("C://raj.xml");
sp.parse(file,new Reading());
/*XMLReader xmlr=sp.getXMLReader();
xmlr.setContentHandler(new Reading());
xmlr.parse("first.xml");*/
private Object args;
public void startElement(String uri,String localName,String qName,
Attributes attributes)
System.out.println(qName);
public void characters(char []ch,int start,int length)
String str=new String(ch,start,length);
System.out.print(str);
public void endElement(String uri,String localName,String qName)
System.out.println(qName);
// Get a validator from the schema.
//Validator validator = schema.newValidator();
/*String file;
try {
Object validator;
Object source;
((Object) validator).validate(source);
System.out.println(file + " is valid.");
catch (SAXException ex) {
System.out.println(file + " is not valid because ");
System.out.println(ex.getMessage());
/* Object args;
if (args.length != 1) {
System.err.println("Exception in thread "main" org.xml.sax.SAXParseException: The entity "content_ppov_1704781_1091806592456" was referenced, but not declared.");
System.exit(1);
//public boolean equalsIgnoreCase(String anotherString)
//String s="content_ppov_1704781_1091806592456";
//String s1="null";
//Object error = null;
//Stringreplace(content_ppov_1704781_1091806592456,null);
//return null;
//System.out.println("");
//private void Stringreplace(Object error, Object object) {
// TODO Auto-generated method stub
/* Object internal;
private String file;
// Let's suppose that lines in the underlying input stream are known
// to be no greater than 80 characters long.
// Emit an error message, and delete the resource:
String msg = file+ "content_ppov_1704781_1091806592456";
//void getServer().errlog(this, msg);
delete();
private void delete() {
// TODO Auto-generated method stub
private void errlog(Reading reading, String msg2) {
// TODO Auto-generated method stub
and my raj.xml file is like this
<div>This is a data .</div>]]>
</TEXT>
</content>
&content_1234789; // this line of error is comming
</content>
thanks in advance.
The error message displaying on console is
Exception in thread "main" org.xml.sax.SAXParseException: The entity "content_ppov_1704781_1091806592456" was referenced, but not declared.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromEntity(DefaultEntityHandler.java:601)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1264)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:331)
at runner.Reading.main(Reading.java:18)The error is in your XML input, not in your Java code. Probably the XML doesn't declare its encoding, so the parser assumes that it is encoded in UTF-8. And probably it contains some character (like an accented letter, for example) that is not part of the UTF-8 encoding. So contact the person who created the XML -- which is not well-formed XML, by the way -- and get them to fix it. It's possible that declaring the encoding as ISO8859-1 might work, but it might not. All depends on what the invalid character is.
-
Exception in thread "main" java.lang.ExceptionInInitializerError
Exception in thread "main" java.lang.ExceptionInInitializerError
at platinum.logger.XAbstractLogger.setStreams(XAbstractLogger.java:44)
at platinum.logger.XConsoleLogger.initStreams(XConsoleLogger.java:32)
at platinum.logger.XConsoleLogger.<init>(XConsoleLogger.java:27)
at platinum.platinum.main(platinum.java:55)
Caused by: java.lang.NullPointerException
at platinum.util.XResourceManager.initResourceBundle(XResourceManager.java:34)
at platinum.XRepository.<clinit>(XRepository.java:109)
... 4 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
I get a msg like this wen i try to run my project.
The code which gives the error is:
import java.io.*;
import java.util.*;
import platinum.*;
public abstract class XAbstractLogger implements XLogger
public XAbstractLogger()
this(XProjectConstants.LOG_MODE_VERBOSE);
public XAbstractLogger(int log_mode)
setLogMode( new XLogMode(log_mode) );
protected void setStreams(PrintStream ps_out, PrintStream ps_err) throws IOException,Exception
out = ps_out;
err = ps_err;
// Log some stuff
String[] props = {
"java.version", "java.vendor", "java.compiler", "os.name",
"os.version", "os.arch", "user.home"
if( !logMode.isOff() )
logImpl(XRepository.getLogger(), "When reporting bugs, please include the following information:", MESSAGE, out);
logImpl(XRepository.getLogger(), XProjectConstants.PRODUCT_NAME+" version="+XProjectConstants.PRODUCT_VERSION, MESSAGE, out);
for( int i=0; i<props.length; i++)
logImpl(XRepository.getLogger(), props[i] + "=" + System.getProperty(props), MESSAGE, out);
public void setLogMode(XLogMode log_mode)
logMode = log_mode;
public void addLogException(String log_e, XLogMode log_mode)
if( !logExceptions_Modes.containsKey(log_e) )
logExceptions_Modes.put(log_e, log_mode);
public void removeLogException(String log_e)
logExceptions_Modes.remove(log_e);
public final void message(Object src, Object obj)
if( logMode.getLogMessages() )
logImpl(src, obj, MESSAGE, out);
public final void debug(Object src, Object obj)
if( logMode.getLogDebugs() )
logImpl(src, obj, DEBUG, out);
public final void warning(Object src, Object obj)
if( logMode.getLogWarnings() )
logImpl(src, obj, WARNING, err);
public final void error(Object src, Object obj)
if( logMode.getLogErrors() )
logImpl(src, obj, ERROR, err);
private void logImpl(Object src, Object obj, int type, PrintStream ps)
if( ps==null )
return;
String class_name = XRepository.getResourceManager().getClassName(src);
if( isAnException(class_name, type) )
return;
ps.print("["+getTitle(type)+"-"+class_name+"] ");
if( obj instanceof Throwable )
((Throwable)obj).printStackTrace(ps);
else
ps.println(obj);
private boolean isAnException(String str, int type)
Iterator it = logExceptions_Modes.keySet().iterator();
String excep_item;
XLogMode log_mode;
while( it.hasNext() )
excep_item = (String)it.next();
log_mode = (XLogMode)logExceptions_Modes.get(excep_item);
if( excep_item.equalsIgnoreCase(str) )
if( ((type==MESSAGE) && (log_mode.getLogMessages()==false)) ||
((type==DEBUG) && (log_mode.getLogDebugs()==false)) ||
((type==WARNING) && (log_mode.getLogWarnings()==false)) ||
((type==ERROR) && (log_mode.getLogErrors()==false)) )
return true;
return false;
private String getTitle(int type)
switch( type )
case MESSAGE:
return ">Message:";
case DEBUG:
return ">Debug:";
case WARNING:
return ">Warning:";
case ERROR:
return ">Error:";
default:
return ">??!!";
// Attributes:
private static final int MESSAGE = 1;
private static final int DEBUG = 3;
private static final int WARNING = 5;
private static final int ERROR = 7;
private PrintStream out = null;
private PrintStream err = null;
private Map logExceptions_Modes = new HashMap();
private XLogMode logMode = new XLogMode();The code which gives the error is:You have read the stack trace incorrectly and posted the wrong code.... read the trace again:
at platinum.platinum.main(platinum.java:55)
Caused by: java.lang.NullPointerException
at platinum.util.XResourceManager.initResourceBundle(XResourceManager.java:34)
at platinum.XRepository.<clinit>(XRepository.java:109) Something is throwing null pointer exception in *'platinum.util.XResourceManager.initResourceBundle'* method.
Thanks! -
JMS error- Exception in thread "Main Thread" java.lang.NoClassDefFoundError
Hi guys,
I am new to JMS programming and i'm have the following error...I have set up a simple weblogic server on my local machine and i am trying to send a message to a queue i've created on a JMS server. I am trying to manually run an example provided by BEA WebLogic... the code follows.
//package examples.jms.queue;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Hashtable;
import javax.jms.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
/** This example shows how to establish a connection
* and send messages to the JMS queue. The classes in this
* package operate on the same JMS queue. Run the classes together to
* witness messages being sent and received, and to browse the queue
* for messages. The class is used to send messages to the queue.
* @author Copyright (c) 1999-2006 by BEA Systems, Inc. All Rights Reserved.
public class QueueSend
// Defines the JNDI context factory.
public final static String JNDI_FACTORY="weblogic.jndi.WLInitialContextFactory";
// Defines the JMS context factory.
public final static String JMS_FACTORY="weblogic.examples.jms.QueueConnectionFactory";
// Defines the queue.
public final static String QUEUE="weblogic.examples.jms.exampleQueue";
private QueueConnectionFactory qconFactory;
private QueueConnection qcon;
private QueueSession qsession;
private QueueSender qsender;
private Queue queue;
private TextMessage msg;
* Creates all the necessary objects for sending
* messages to a JMS queue.
* @param ctx JNDI initial context
* @param queueName name of queue
* @exception NamingException if operation cannot be performed
* @exception JMSException if JMS fails to initialize due to internal error
public void init(Context ctx, String queueName)
throws NamingException, JMSException
qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
qcon = qconFactory.createQueueConnection();
qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queue = (Queue) ctx.lookup(queueName);
qsender = qsession.createSender(queue);
msg = qsession.createTextMessage();
qcon.start();
* Sends a message to a JMS queue.
* @param message message to be sent
* @exception JMSException if JMS fails to send message due to internal error
public void send(String message) throws JMSException {
msg.setText(message);
qsender.send(msg);
* Closes JMS objects.
* @exception JMSException if JMS fails to close objects due to internal error
public void close() throws JMSException {
qsender.close();
qsession.close();
qcon.close();
/** main() method.
* @param args WebLogic Server URL
* @exception Exception if operation fails
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.out.println("Usage: java examples.jms.queue.QueueSend WebLogicURL");
return;
System.out.println(args[0]);
InitialContext ic = getInitialContext(args[0]);
QueueSend qs = new QueueSend();
qs.init(ic, QUEUE);
readAndSend(qs);
qs.close();
private static void readAndSend(QueueSend qs)
throws IOException, JMSException
BufferedReader msgStream = new BufferedReader(new InputStreamReader(System.in));
String line=null;
boolean quitNow = false;
do {
System.out.print("Enter message (\"quit\" to quit): \n");
line = msgStream.readLine();
if (line != null && line.trim().length() != 0) {
qs.send(line);
System.out.println("JMS Message Sent: "+line+"\n");
quitNow = line.equalsIgnoreCase("quit");
} while (! quitNow);
private static InitialContext getInitialContext(String url)
throws NamingException
Hashtable<String,String> env = new Hashtable<String,String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
env.put(Context.PROVIDER_URL, url);
return new InitialContext(env);
}when i run the main method with args[0] = "t3://localhost:7001", i get the following errors:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at QueueSend.getInitialContext(QueueSend.java:122)
at QueueSend.main(QueueSend.java:91)
Could someone please help. thanks.when i run the main method with args[0] = "t3://localhost:7001", i get the following errors:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at QueueSend.getInitialContext(QueueSend.java:122)
at QueueSend.main(QueueSend.java:91)
Could someone please help. thanks.This is Java 101:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rtrb_classload_viewer.html
You've got to have the WebLogic JAR that contains the necessary .class files in your CLASSPATH when you run.
Don't use a CLASSPATH environment variable; use the -classpath option when you run.
%
Maybe you are looking for
-
Issue while opening pdf reader on mac
Hi, Please see enclosed image here. Whenever, Adobe pdf reader is open this window comes up on the screen. I have installed latest version of Pdf reader (11.0.09) on latest version of Mavericks (10.9.5) on MBP. Thanks Chirag
-
Error Creating Web Application in Sharepoint Foundation 2010.
Hi, I am getting below error while creating new Web Application in SharePoint. Could not connect to Sharepoint using integrated security: SQL server at has an unsupported version 10.0.2531.0. I am using SharePoint Foundation 2010. SQL Server Version
-
Installment plan v/s payment schema
Hello, Instalment paln and payment schema(Budget Billling) both does the same functions.If i am right what are the differences. which gives the higher flexibility?where, how , when we use????
-
Lightroom 5 won't export pictures and photoshop CC won't save or merge layers.
My lightroom is having trouble exporting pictures, an error occurs very often and it is making it very difficult to export and my photoshop CC will not save pictures and has had minor errors occur often.
-
Adobe take a monthly subscription but I can't access create PDF. Pretty rubbish, I think, and no way of contacting them directly