[Solved][Boost] Condition_variable exception on thread termination
Hi folks,
I'm trying to implement an object that accepts some data and processes it in a separate thread (basically producer-consumer model). The object's thread should run until object destructor is called. To notify of new data I use condition_variable. The most important part of code (full here: http://pastebin.com/uEtU0KG1 , with irrelevant parts simplified) :
std::queue<std::string> msgs;
boost::mutex read_write_queue;
bool finish;
boost::condition_variable new_msgs;
void thread_func()
std::string m;
while(true) // !!!
{ // lock begins
boost::unique_lock<boost::mutex> lk(read_write_queue);
while(msgs.empty())
new_msgs.wait(lk);
if(finish) // to be called on object destruction
lk.unlock();
return;
m = msgs.front();
msgs.pop();
} // end of lock
std::cout << m << "\n"; // some processing of data
The problem is following: on object destruction (at the end of main()) getting an error that condition_variable couldn't cleanly terminate:
a.out: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:46: boost::condition_variable::~condition_variable(): Assertion `!pthread_mutex_destroy(&internal_mutex)' failed.
When the line marked with 3 bangs (start of while cycle) is commented out, as if the object receives only one message, everything is ok. Have thought and googled about it a lot, but without any success.
I would be very grateful if someone would point at the fault (guess it's something simple).
Last edited by yl3dy (2011-11-13 09:21:48)
Well, I've finally figured out what was wrong. As I thought, the reason is quite simple. Destructor of an object didn't wait until thread will do all the termination things (unlocking condition variable, check for finish state and calling return). Adding a.join() at the end of destructor function will do the job.
What a stupid mistake.
Similar Messages
-
How to solve this problem"exception in thread "main" java.lang.noclassdeff"
I am a tyro of java programming .
i downloaded the j2sdk-1_4_2_09-windows-i586-p.exe from www.java.sun.com and installed it at the defaulted path C:\j2sdk1.4.2_09,
then i wrote down my first java program as follow:
public class hello
public static void main (String args[])
System.out.println("hello,����!");
}and stored it at C:\Javasmp\ch01\hello.java.
after that i opened dos commind window and compiled it :
c:\javac C:\Javasmp\ch01\hello.java. and obtained file hello.class (C:\Javasmp\ch01\hello.class)
but when running it (c:\java C:\Javasmp\ch01\hello) there was a mistake:
exception in thread "main"java.lang.noclassdeffounderror:C:\Javasmp\ch01\hello
i searched on the internet and found out the solution is set enviroment viriable ,so i set the "CLASSPATH" as".;C:\j2sdk1.4.2_09\lib;C:\j2sdk1.4.2_09\lib\tools.jar" ,"PATH" as"C:\j2sdk1.4.2_09\bin;C:\Windows\system32;c:\windows\system32\Wbem" and "JAVA_HOME" as "C:\j2sdk1.4.2_09\bin;C:\j2sdk1.4.2_09\jre\bin"
afer that, i opened a new dos command window and run it again ,but the problem was still unsolved.
in addition,my os is "windows xp"
anyone can help me ,thank you!
i am a student in China,it's a hard time for me to write down my question in english ,i doubt whether i express my question clearly.
thank you for you reading.I have created a simple applet.
import java.lang.*;
import java.awt.*;
public class jawtex3 extends java.applet.Applet
public void init()
add(new Button("One"));
add(new Button("Two"));
public Dimension preferredSize()
return new Dimension(200, 100);
public static void main(String [] args)
Frame f = new Frame(" jawtex3");
jawtex3 ex = new jawtex3();
ex.init();
f.add("Center", ex);
f.pack();
f.show();
In this no compilation errors.
I am getting runtime exception.as Exception in thread "main"java.lang.NoClassDefFound Error: jawtex
reply me soon.
thankyou. -
Dear,
I have "test" class:
public class test{
public static void main(String argv[]){
System.out.println("Hello world!");
I use below command to compiler & run this class:
C:\> javac test.java
There is no problem and I get file: test.class
After that, I use:
C:\> java test
I meet this message and the class cannot be run:
Exception in thread "main" java.lang.NoClassDefFoundError: test
Please help me to solve this problem.
Regards,
Cuong Habefore running set classpath
like this type in command prompt
suppose this class file in in folder c:\abc
set classpath=%classpath%;C:\abc\
and now run ur code
or
i think this is better solution not try aboce try this first
before running
type this
set path=%path%;c:\jdk1.3\bin
where 'c:\jdk1.3\bin' is the path where ur jdk is installed -
Hello,
The problem is inside the method "chamaConversor".
" conversor.pdfToText(arquivoPdf,arquivoTxt);" make a file.txt from one file.pdf. After that it don?t return the control to "ConstrutorDeTemplate2.java", and show the following error message:
Exception in thread "AWT-EventQueue-O" java.lang.NoClassDefFoundError : org/fontbox/afm/FontMetric
at org.pdfbox.pdmodel.font.PDFont.getAFM (PDFont.java:334)
I am using the NetBeans IDE 5.5.
I have added all of these libraries below to my project from c:\Program Files\netbeans-5.5\PDFBox-0.7.3\external:
* FontBox-0.1.0-dev.jar
* ant.jar
* bcmail-jdk14-132.jar
* junit.jar
* bcprov-jdk14-132.jar
* lucene-core-2.0.0.jar
* checkstyle-all-4.2.jar
* lucene-demos-2.0.0.jar
and PDFBox-0.7.3.jar from c:\Program Files\netbeans-5.5\PDFBox-0.7.3\lib.
There are no more jar from PDFBox-0.7.3 directory.
All of these libraries are in "Compile-time Libraries" option in Project Properties. Should I add they to "Run-time Libraries" option?
What is going on?
Thank you!
* ConstrutorDeTemplate2.java
* Created on 11 de Agosto de 2007, 14:54
* @author
package br.unifacs.dis2007.template2;
// Java core packages
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.text.*;
import java.util.*;
// Java extension packages
import javax.swing.*;
import org.pdfbox.*;
public class ConstrutorDeTemplate2 extends JFrame
implements ActionListener {
private JTextField enterField;
private JTextArea outputArea;
private BufferedWriter out;
private String word;
private PdfToText conversor = new PdfToText();
// ajusta a interface do usu?rio
public ConstrutorDeTemplate2()
super( "Testing class File" );
enterField = new JTextField("Digite aqui o nome do arquivo :" );
enterField.addActionListener( this );
outputArea = new JTextArea();
ScrollPane scrollPane = new ScrollPane();
scrollPane.add( outputArea );
Container container = getContentPane();
container.add( enterField, BorderLayout.NORTH );
container.add( scrollPane, BorderLayout.CENTER );
setSize( 400, 400 );
show();
// Exibe as informa??es sobre o arquivo especificado pelo usu?rio
public void actionPerformed( ActionEvent actionEvent )
File name = new File( actionEvent.getActionCommand() );
// Se o arquivo existe, envia para a sa?da as informa??es sobre ele
if ( name.exists() ) {
outputArea.setText(
name.getName() + " exists\n" +
( name.isFile () ?
"is a file\n" : "is not a file\n" ) +
( name.isDirectory() ?
"is a directory\n" : "is not a directory\n" ) +
( name.isAbsolute() ? "is absolute path\n" :
"is not absolute path\n" ) +
"Last modified: " + name.lastModified() +
"\nLength: " + name.length () +
"\nPath: " + name.getPath() +
"\nAbsolute path: " + name.getAbsolutePath() +
"\nParent: " + name.getParent() );
// informa??o de sa?da se "name" ? um arquivo
if ( name.isFile() ) {
String nameString = String.valueOf(name.getPath());
String nameTeste = new String(nameString);
if (nameString.endsWith(".pdf"))
nameTeste = chamaConversor(nameString);
else
if (nameString.endsWith(".doc"))
nameTeste = chamaConversorDoc(nameString); // chama conversor de arquivos DOC
else
if (nameString.endsWith(".txt"))
nameTeste = nameString;
// se o arquivo termina com ".txt"
if (nameTeste.endsWith(".txt"))
// acrescenta conte?do do arquivo ? ?rea de sa?da
try {
// Create the tokenizer to read from a file
FileReader rd = new FileReader(nameTeste);
StreamTokenizer st = new StreamTokenizer(rd);
// Prepare the tokenizer for Java-style tokenizing rules
st.parseNumbers();
st.wordChars('_', '_');
st.eolIsSignificant (true);
// If whitespace is not to be discarded, make this call
st.ordinaryChars(0, ' ');
// These calls caused comments to be discarded
st.slashSlashComments(true);
st.slashStarComments(true);
// Parse the file
int token = st.nextToken();
String word_ant = "";
outputArea.append( " \n" );
out = new BufferedWriter(new FileWriter(nameTeste, true));
while (token != StreamTokenizer.TT_EOF) {
token = st.nextToken();
if (token == StreamTokenizer.TT_EOL){
//out.write(word);
out.flush();
out = new BufferedWriter(new FileWriter(nameTeste, true));
//outputArea.append( word + "\n" );
// out.append ( "\n" );
switch (token) {
case StreamTokenizer.TT_NUMBER:
// A number was found; the value is in nval
double num = st.nval;
break;
case StreamTokenizer.TT_WORD:
// A word was found; the value is in sval
word = st.sval;
// if (word_ant.equals("a") || word_ant.equals("an") || word_ant.equals("the") || word_ant.equals("The") || word_ant.equals("An"))
outputArea.append( word.toString() + " \n " );
// out.append( word + " " );
// word_ant = word;
break;
case '"':
// A double-quoted string was found; sval contains the contents
String dquoteVal = st.sval;
break;
case '\'':
// A single-quoted string was found; sval contains the contents
String squoteVal = st.sval;
break;
case StreamTokenizer.TT_EOL:
// End of line character found
break;
case StreamTokenizer.TT_EOF:
// End of file has been reached
break;
default:
// A regular character was found; the value is the token itself
char ch = (char)st.ttype;
break;
} // fim do switch
} // fim do while
rd.close();
out.close();
} // fim do try
// process file processing problems
catch( IOException ioException ) {
JOptionPane.showMessageDialog( this,
"FILE ERROR",
"FILE ERROR", JOptionPane.ERROR_MESSAGE );
} // fim do if da linha 92 - testa se o arquivo ? do tipo texto
} // fim do if da linha 78 - testa se ? um arquivo
// output directory listing
else if ( name.isDirectory() ) {
String directory[] = name.list();
outputArea.append( "\n\nDirectory contents:\n");
for ( int i = 0; i < directory.length; i++ )
outputArea.append( directory[ i ] + "\n" );
} // fim do else if da linha 184 - testa se ? um diret?rio
} // fim do if da linha 62 - testa se o arquivo existe
// not file or directory, output error message
else {
JOptionPane.showMessageDialog( this,
actionEvent.getActionCommand() + " Does Not Exist",
"ERROR", JOptionPane.ERROR_MESSAGE );
} // fim do m?todo actionPerformed
// m?todo que chama o conversor
public String chamaConversor(String arquivoPdf){
String arquivoTxt = new String(arquivoPdf);
arquivoTxt = arquivoPdf.replace(".pdf", ".txt");
try {
conversor.pdfToText(arquivoPdf,arquivoTxt);
catch (Exception ex) {
ex.printStackTrace();
return (arquivoTxt);
// executa a aplica??o
public static void main( String args[] )
ConstrutorDeTemplate2 application = new ConstrutorDeTemplate2();
application.setDefaultCloseOperation (
JFrame.EXIT_ON_CLOSE );
} // fim do m?todo main
} // fim da classe ExtratorDeSubstantivos2
* PdfToText.java
* Created on 11 de Agosto de 2007, 10:57
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
//package br.unifacs.dis2007.template2;
* @author www
package br.unifacs.dis2007.template2;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.MalformedURLException;
import java.net.URL ;
import org.pdfbox.pdmodel.PDDocument;
import org.pdfbox.pdmodel.encryption.AccessPermission;
import org.pdfbox.pdmodel.encryption.StandardDecryptionMaterial;
import org.pdfbox.util.PDFText2HTML;
import org.pdfbox.pdmodel.font.PDFont.* ;
import org.pdfbox.util.PDFTextStripper;
import org.pdfbox.util.*;
import org.pdfbox.pdmodel.*;
public class PdfToText
public void pdfToText( String pdfFile, String textFile) throws Exception
Writer output = null;
PDDocument document = null;
try
try
//basically try to load it from a url first and if the URL
//is not recognized then try to load it from the file system.
URL url = new URL( pdfFile );
document = PDDocument.load( url );
String fileName = url.getFile();
if( textFile == null && fileName.length () >4 )
File outputFile =
new File( fileName.substring( 0,fileName.length() -4 ) + ".txt" );
textFile = outputFile.getName();
catch( MalformedURLException e )
document = PDDocument.load( pdfFile );
if( textFile == null && pdfFile.length() >4 )
textFile = pdfFile.substring( 0,pdfFile.length() -4 ) + ".txt";
//use default encoding
output = new OutputStreamWriter( new FileOutputStream( textFile ) );
PDFTextStripper stripper = null;
stripper = new PDFTextStripper();
stripper.writeText( document, output );
finally
if( output != null )
output.close();
if( document != null )
document.close();
}//finally
}//end funcao
You might have to modify you weblogic.policy to grant access rights for
WLAS.
Cheers - Wei
Nyman <[email protected]> wrote in message
news:[email protected]..
Hi everyone,
When running WLS in RedHat 6.2 with the command - ./startWebLogic.sh,an
error saying "Exception in thread mainjava.security.AccessControlException
: access denied (java.lang.RuntimePermission createSecurityManager) is
displayed.
Could anyone suggestion an solution?
Best Regardsm -
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. -
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.
-
Exception in thread "main" dbca OEL 4.7
Hallo!I am a newbie in Oracle 10g having installed Oracle 10g in Oracle Enterprise Linux version 4 update 7.
While installing Oracle 10g (I installed it on my Laptop the server and not remotely),I configured xhost + display parameters via the commands below
[root@joey-oel ~]# xhost +
access control disabled, clients can connect from any host
[root@joey-oel ~]# su - oracle
[oracle@joey-oel ~]$ DISPLAY=10.0.0.1:0.0
[oracle@joey-oel ~]$ export DISPLAY
IP address 10.0.0.1 is the IP address of the server from where I am installing Oracle.When I try to launch the DBCA via the command below,
[oracle@joey-oel ~]$ dbca
I get the following error
Exception in thread "main" [oracle@joey-oel ~]$ dbca
Thus,I tried to reconfigure the display parameters as below but the errors shown below appear
[root@joey-oel ~]# xhost +
xhost: unable to open display "10.0.0.1:0.0"
[root@joey-oel ~]# su - oracle
[oracle@joey-oel ~]$ DISPLAY=10.0.0.1:0.0
[oracle@joey-oel ~]$ export DISPLAY
[oracle@joey-oel ~]$ xhost +
xhost: unable to open display "10.0.0.1:0.0"
[oracle@joey-oel ~]$ dbca
Exception in thread "main" [oracle@joey-oel ~]$
How do I resolve this?
Thanks.What happens when you close the terminal , open a new terminal , issue as Root user xhost+ and then fire up dbca in Oralce user? Don't set again the display variable in the Oracle user if you have given xhost+ as Root.
HTH
Aman.... -
J2ee server Exception in thread Main java.lang.OutOfMemoryError
hallo
i need your help
first my java j2ee and jdk
j2ee j2sdkee1.3.1
jdk j2sdk 1.4
i nedd the server for jms.
when i started the server with j2ee -verbose
i get the error message:
Starting web service at port: 8000
Exception in thread "Main" java.lang.OutOfMemoryError
what can i do to get out off this error message and starting the server normal. please help me to solve the problem!!!
i read in this forum about -Xms und Xmx but this Commands don't go on my system.
thx for help!!!Hi Warren,
Still I am not clear with your question. But generally this out of memoryspace error can be rectified by changing the properties which comes in the menubar of your command prompt. Then increasing the virtual memory over there. I hope this will help you.
Thanks
Bakrudeen
Technical Support Engineer
Sun MicroSystems Inc, India -
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 -
Problem about "Exception in thread "main" java.lang.NullPointerException"
This is t error message once i run the file
Exception in thread "main" java.lang.NullPointerException
at sendInterface.<init>(sendInterface.java:64)
at sendInterface.main(sendInterface.java:133)
* @(#)sendInterface.java
* @author
* @version 1.00 2008/7/18
import java.awt.BorderLayout;
import java.awt.Image;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.DefaultListModel;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.ListModel;
import javax.swing.UIManager;
import javax.swing.SwingConstants;
import java.io.*;
import java.sql.*;
import java.net.*;
public class sendInterface /*implements ActionListener*/{
JFrame frame = new JFrame();
private Panel topPanel;
private Panel sendMessagePanel;
private Panel sendFilePanel;
private JLabel senderID;
private JLabel receiverID;
private JLabel senderDisplay;
private DefaultListModel receiverListModel = new DefaultListModel();
private JList receiverID_lst = new JList(receiverListModel);
private JRadioButton sendType;
String userName;
String[] userList = null ;
int i=0;
Connection con;
public sendInterface() {
String ListName;
try
JFrame.setDefaultLookAndFeelDecorated( true );
catch (Exception e)
System.err.println( "Look and feel not set." );
frame.setTitle( "Send Interface" );
topPanel.setLayout( new GridLayout( 2 , 1 ) ); //line 64*************************
senderID = new JLabel( "Sender:", SwingConstants.LEFT );
senderDisplay = new JLabel( "'+...+'", SwingConstants.LEFT );
receiverID = new JLabel( "Receiver:", SwingConstants.LEFT);
// receiverID_lst = new JList( ListName );
frame.add(senderID);
frame.add(senderDisplay);
frame.add(receiverID);
// frame.add(receiverListModel);
frame.add(new JScrollPane(receiverID_lst), BorderLayout.CENTER);
frame.setLocation(200, 200);
frame.setSize(250, 90);
frame.setVisible(true);
public void setListName(String user)
try{
userName = user;
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/thesis";
con = DriverManager.getConnection(url, "root", "");
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet rs = stmt.executeQuery("select * from user where User_ID!= '" + userName + "'");
System.out.println("Display all results:");
while(rs.next()){
String user_id = rs.getString("User_ID");
System.out.println("\tuser_id= " + user_id );
// receiverListModel.addElement(user_id);
userList=user_id;
i++;
}//end while loop
receiverListModel.addElement(userList);
catch(Exception ex)
ex.printStackTrace();
finally
if (con != null)
try
con.close ();
System.out.println ("Database connection terminated");
catch (Exception e) { /* ignore close errors */ }
public String getUserName()
return userName;
public String[] getUserList()
return userList;
public static void main(String[] args) {
new sendInterface(); //line 133******************************************
thank ur reply:D
Edited by: ocibala on Aug 3, 2008 9:54 AMAnd where do you instantiate topPanel before you invoke setLayout?
db -
Exception in thread "main" java.lang.NullPointerException error JDeveloper 12c
Hello,
I am trying to call a java stored procedure in java application. I am using ORACLE database and JDeveloper.
I am getting error "Exception in thread "main" java.lang.NullPointerException. I have no idea what have I been doing wrong.
I have a table "Beer" and I want to select all the data out with a stored procedure which I call out of Java app.
I have a java.class file Store_A.java which I have loaded into the ORACLE database with LOADJAVA :
import java.sql.*;
import java.io.*;
public class Store_a {
public static void apskatit ()
throws SQLException
{ String sql =
"SELECT * FROM Beer";
try { Connection conn = DriverManager.getConnection("jdbc:default:connection:");
PreparedStatement pstmt = conn.prepareStatement(sql);
ResultSet rset = pstmt.executeQuery();
rset.close();
pstmt.close();
catch (SQLException e) {System.err.println(e.getMessage());
Then I have created a procedure which I plan to call out in java:
CREATE OR REPLACE PACKAGE Store_a AS
PROCEDURE apskatit;
END Store_a;
CREATE OR REPLACE PACKAGE BODY Store_a AS
PROCEDURE apskatit AS LANGUAGE JAVA
NAME 'Store_a.apskatit()';
END Store_a;
And I have a java file that I have created with JDeveloper 12c:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Class1 {
* @param args
public static void main(String[] args) throws SQLException {
Connection conn = null;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
//Izveidojam savienojumu
conn = DriverManager.getConnection("jdbc.oracle.thin:@localhost:1521", "SYSTEM", "asdasd");
// Izveidojam callable statement
CallableStatement stmt = conn.prepareCall("CALL Store_a.apskatit()");
ResultSet resul = stmt.executeQuery();
while (resul.next()) {
System.out.println(resul.getInt(1) + "\t" + resul.getString(2));
} catch (ClassNotFoundException e) {
e.printStackTrace();
} finally {
try {
conn.close();
} catch (SQLException e) {
e.printStackTrace();
When I try to run the java file, I get this error "Exception in thread "main" java.lang.NullPointerException at client.Class1.main(Class1.java:29).
So the line I get error in is "conn.close();"
How to fix this?
Thank you very much in advance.I am trying to call a java stored procedure in java application. I am using ORACLE database and JDeveloper.
I am getting error "Exception in thread "main" java.lang.NullPointerException. I have no idea what have I been doing wrong.
Maybe you haven't read it yet but I told you in your other thread what you were doing wrong and, step by step, how to address the problem.
https://forums.oracle.com/thread/2611124
I'm not going to repeat everything again just this one main piece of advice:
Until you get you code working outside the database don't even bother trying to load it into the DB and create a Java stored procedure.
You are trying to deal with too many different issues at the same time. Unless you solve your primary Java problem by fixing the code outside the DB you will have nothing but problems loading it into the DB.
And just get rid of this line of code - you don't need it anymore and it hasn't been done like that for many years now:
Class.forName("oracle.jdbc.driver.OracleDriver"); -
FB 4.7 iOS packaging - Exception in thread "main" java.lang.OutOfMemoryError"
I have been having issues with FlashBuilder 4.7 and packaging my Flex Mobile application for iOS (simulator, or for install on device).
The funny thing is it used to work just fine before a OSX system update.
My machine is Macbook Pro, 2.66 GHz i7, Mac OSX Lion 10.7.5, 8GB
When I run application to install on device I get the error...
Error occurred while packaging the application:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.adobe.png.PNGReader.readChunk(PNGReader.java:60)
at com.adobe.png.PNGUtils.updatePNGMetadata(PNGUtils.java:56)
at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:700)
at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:307)
at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:300)
at com.adobe.air.ipa.IPAOutputStream.addSpecialIcon(IPAOutputStream.java:272)
at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:256)
at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:72)
at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:245)
at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)
at com.adobe.air.ADT.run(ADT.java:419)
at com.adobe.air.ADT.main(ADT.java:469)
I have tried uninstalling/ reinstalling Flash Builder 4.7 multiple times
I get this error no matter which AIR SDK I am using, 3.1, 3.4, 3.5, 3.6.
I get this error with a blank fresh project.
Please anyone, can you help me solve this.I solved this. It turns out the app icons were corrupt. After removing them and replacing them with new files this error went away.
-
After several failed attempts to run my application Simple Mind, I resorted to deleting the app and reinstalling the software. I have tried restarting my computer, tried a new install and no matter what I get the following error:
Process: SimpleMind Trial [1497]
Path: /Applications/SimpleMind Trial.app/Contents/MacOS/SimpleMind Trial
Identifier: com.modelmakertools.simplemind-osx-trial
Version: 1.8.3 (1.8.3)
Code Type: X86-64 (Native)
Parent Process: launchd [250]
Responsible: SimpleMind Trial [1497]
User ID: 501
Date/Time: 2014-10-08 13:18:37.547 -0700
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: EBCBD0CA-2D34-D72E-B3D0-C2101C81E198
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ''
terminating with uncaught exception of type NSException
abort() called
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff8c87925c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff827dfe75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c879038 +[NSException raise:format:arguments:] + 104
3 Foundation 0x00007fff864083d1 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
4 SimpleMind Trial 0x00000001000577c9 SimpleMind Trial + 358345
5 SimpleMind Trial 0x0000000100016857 SimpleMind Trial + 92247
6 SimpleMind Trial 0x0000000100016b11 SimpleMind Trial + 92945
7 SimpleMind Trial 0x0000000100018f6c SimpleMind Trial + 102252
8 SimpleMind Trial 0x0000000100017704 SimpleMind Trial + 96004
9 SimpleMind Trial 0x00000001000179db SimpleMind Trial + 96731
10 SimpleMind Trial 0x000000010002e202 SimpleMind Trial + 188930
11 AppKit 0x00007fff8d00c6f4 -[NSCustomObject nibInstantiate] + 368
12 AppKit 0x00007fff8d00c520 -[NSIBObjectData instantiateObject:] + 309
13 AppKit 0x00007fff8d00b815 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 413
14 AppKit 0x00007fff8d0005ce loadNib + 327
15 AppKit 0x00007fff8cfffb6c +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 288
16 AppKit 0x00007fff8cfff95c -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 197
17 AppKit 0x00007fff8cfff74b +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 357
18 AppKit 0x00007fff8cffb597 NSApplicationMain + 448
19 SimpleMind Trial 0x0000000100001e44 SimpleMind Trial + 7748
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8b348866 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8671d35c pthread_kill + 92
2 libsystem_c.dylib 0x00007fff83b9bb1a abort + 125
3 libc++abi.dylib 0x00007fff8bb7ff31 abort_message + 257
4 libc++abi.dylib 0x00007fff8bba5952 default_terminate_handler() + 264
5 libobjc.A.dylib 0x00007fff827e030d _objc_terminate() + 103
6 libc++abi.dylib 0x00007fff8bba31d1 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff8bba2c5b __cxa_throw + 124
8 libobjc.A.dylib 0x00007fff827dffa1 objc_exception_throw + 343
9 com.apple.CoreFoundation 0x00007fff8c879038 +[NSException raise:format:arguments:] + 104
10 com.apple.Foundation 0x00007fff864083d1 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
11 com.modelmakertools.simplemind-osx-trial 0x00000001000577c9 0x100000000 + 358345
12 com.modelmakertools.simplemind-osx-trial 0x0000000100016857 0x100000000 + 92247
13 com.modelmakertools.simplemind-osx-trial 0x0000000100016b11 0x100000000 + 92945
14 com.modelmakertools.simplemind-osx-trial 0x0000000100018f6c 0x100000000 + 102252
15 com.modelmakertools.simplemind-osx-trial 0x0000000100017704 0x100000000 + 96004
16 com.modelmakertools.simplemind-osx-trial 0x00000001000179db 0x100000000 + 96731
17 com.modelmakertools.simplemind-osx-trial 0x000000010002e202 0x100000000 + 188930
18 com.apple.AppKit 0x00007fff8d00c6f4 -[NSCustomObject nibInstantiate] + 368
19 com.apple.AppKit 0x00007fff8d00c520 -[NSIBObjectData instantiateObject:] + 309
20 com.apple.AppKit 0x00007fff8d00b815 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 413
21 com.apple.AppKit 0x00007fff8d0005ce loadNib + 327
22 com.apple.AppKit 0x00007fff8cfffb6c +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 288
23 com.apple.AppKit 0x00007fff8cfff95c -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 197
24 com.apple.AppKit 0x00007fff8cfff74b +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 357
25 com.apple.AppKit 0x00007fff8cffb597 NSApplicationMain + 448
26 com.modelmakertools.simplemind-osx-trial 0x0000000100001e44 0x100000000 + 7748
Thread 1:
0 libsystem_kernel.dylib 0x00007fff8b348e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8671df08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff86720fb9 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8b349662 kevent64 + 10
1 libdispatch.dylib 0x00007fff862f8421 _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff862f8136 _dispatch_mgr_thread + 52
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8b348e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8671df08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff86720fb9 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8b348e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8671df08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff86720fb9 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff71ff9310 rcx: 0x00007fff5fbfdac8 rdx: 0x0000000000000000
rdi: 0x0000000000000707 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfdaf0 rsp: 0x00007fff5fbfdac8
r8: 0x00007fff8bba6959 r9: 0x00007fff83bc38d0 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x00007fff5fbfdc50 r13: 0x0000618000126638 r14: 0x0000000000000006 r15: 0x00007fff5fbfdb30
rip: 0x00007fff8b348866 rfl: 0x0000000000000206 cr2: 0x00000001006dd000
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x100000000 - 0x1000e7ff7 +com.modelmakertools.simplemind-osx-trial (1.8.3 - 1.8.3) <C2FDD75B-5EE0-3225-9DCB-AA18882ECCBF> /Applications/SimpleMind Trial.app/Contents/MacOS/SimpleMind Trial
0x100135000 - 0x100153ff7 +com.dropbox.DropboxOSX (1.0 - 1) <3FAF785A-FB18-3972-8584-D9106DF460D5> /Applications/SimpleMind Trial.app/Contents/Frameworks/DropboxOSX.framework/Versions/A/DropboxOSX
0x7fff61dd2000 - 0x7fff61e05817 dyld (239.4) <7AD43B9B-5CEA-3C7E-9836-A06909F9CA56> /usr/lib/dyld
0x7fff8171b000 - 0x7fff81723fff libsystem_dnssd.dylib (522.92.1) <3F8C6A07-3046-3E88-858F-D9CEFC43A405> /usr/lib/system/libsystem_dnssd.dylib
0x7fff81726000 - 0x7fff81b74fef com.apple.VideoToolbox (1.0 - 1273.54) <4699BB55-7387-3981-9217-869215F00CA9> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
0x7fff81b75000 - 0x7fff81b7efff com.apple.speech.synthesis.framework (4.7.1 - 4.7.1) <383FB557-E88E-3239-82B8-15F9F885B702> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff81b7f000 - 0x7fff81e53fc7 com.apple.vImage (7.0 - 7.0) <D241DBFA-AC49-31E2-893D-EAAC31890C90> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
0x7fff81e54000 - 0x7fff81e5dffb libsystem_notify.dylib (121.20.1) <9B34B4FE-F5AD-3F09-A5F0-46AFF3571323> /usr/lib/system/libsystem_notify.dylib
0x7fff81e5e000 - 0x7fff81e85ff7 libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
0x7fff82178000 - 0x7fff821b6ff7 libGLImage.dylib (9.6.1) <5E02B38C-9F36-39BE-8746-724F0D8BBFC0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
0x7fff822d4000 - 0x7fff822d6ff7 libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
0x7fff822d7000 - 0x7fff823c6fff libFontParser.dylib (111.1) <835A8253-6AB9-3AAB-9CBF-171440DEC486> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff8265f000 - 0x7fff826baffb com.apple.AE (665.5 - 665.5) <BBA230F9-144C-3CAB-A77A-0621719244CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
0x7fff826bb000 - 0x7fff82743ff7 com.apple.CorePDF (4.0 - 4) <92D15ED1-D2E1-3ECB-93FF-42888219A99F> /System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF
0x7fff8279d000 - 0x7fff827a6ffd com.apple.CommonAuth (4.0 - 2.0) <32BA436F-6319-3A0B-B5D2-2EB75FF36B5B> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x7fff827a7000 - 0x7fff827b7fff libbsm.0.dylib (33) <2CAC00A2-1352-302A-88FA-C567D4D69179> /usr/lib/libbsm.0.dylib
0x7fff827b8000 - 0x7fff827b8ffd com.apple.audio.units.AudioUnit (1.10 - 1.10) <68B21135-55A6-3563-A3D6-3E692A7DEB7F> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff827b9000 - 0x7fff827d1ff7 com.apple.openscripting (1.4 - 157) <B3B037D7-1019-31E6-9D17-08E699AF3701> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
0x7fff827d2000 - 0x7fff8297ff27 libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
0x7fff8299f000 - 0x7fff829a7ff7 com.apple.speech.recognition.framework (4.2.4 - 4.2.4) <98BBB3E4-6239-3EF1-90B2-84EA0D3B8D61> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
0x7fff829a8000 - 0x7fff829aafff libCVMSPluginSupport.dylib (9.6.1) <B724E444-6FAE-31B5-9814-1572517229C6> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginS upport.dylib
0x7fff829c3000 - 0x7fff82c0bff7 com.apple.CoreData (107 - 481.3) <E78734AA-E3D0-33CB-A014-620BBCAB2E96> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff82c0c000 - 0x7fff82fedffe libLAPACK.dylib (1094.5) <7E7A9B8D-1638-3914-BAE0-663B69865986> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
0x7fff82fee000 - 0x7fff8390d797 com.apple.CoreGraphics (1.600.0 - 599.35.4) <C8CBC664-0CD2-3C7D-A301-9B3BA731250C> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff8390e000 - 0x7fff83916fff libMatch.1.dylib (19) <021293AB-407D-309A-87F5-8E782F46753E> /usr/lib/libMatch.1.dylib
0x7fff83917000 - 0x7fff83918ff7 libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
0x7fff83919000 - 0x7fff8395eff6 com.apple.HIServices (1.23 - 468) <A4E9E28B-95C3-3654-85C6-E6A1C53CACFE> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
0x7fff8395f000 - 0x7fff839aafff com.apple.ImageCaptureCore (5.0 - 5.0) <F529EDDC-E2F5-30CA-9938-AF23296B5C5B> /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCo re
0x7fff83a0e000 - 0x7fff83a0ffff libsystem_sandbox.dylib (278.11.1) <0D0B13EA-6B7A-3AC8-BE60-B548543BEB77> /usr/lib/system/libsystem_sandbox.dylib
0x7fff83b3f000 - 0x7fff83bc8ff7 libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
0x7fff83c33000 - 0x7fff83c3afff com.apple.NetFS (6.0 - 4.0) <8E26C099-CE9D-3819-91A2-64EA929C6137> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff83c9f000 - 0x7fff84076fef com.apple.CoreAUC (6.25.00 - 6.25.00) <2D7DC96C-BA83-3220-A03F-C790D50A23D8> /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC
0x7fff8410f000 - 0x7fff8413eff7 com.apple.CoreAVCHD (5.7.0 - 5700.4.3) <404369C0-ED9F-3010-8D2F-BC55285F7808> /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD
0x7fff8413f000 - 0x7fff8414bff7 com.apple.OpenDirectory (10.9 - 173.90.1) <F08601E8-F7E8-3222-AD05-6A26003779CF> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff8414c000 - 0x7fff8414cfff com.apple.CoreServices (59 - 59) <7A697B5E-F179-30DF-93F2-8B503CEEEFD5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff8414d000 - 0x7fff84151ff7 libGIF.dylib (1044) <7E51DFC3-740A-3CD3-98A1-1EC510A4A055> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff84152000 - 0x7fff8415affc libGFXShared.dylib (9.6.1) <65BC4378-C023-30EC-8B80-60FB4EA0B036> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
0x7fff8415b000 - 0x7fff8416aff8 com.apple.LangAnalysis (1.7.0 - 1.7.0) <8FE131B6-1180-3892-98F5-C9C9B79072D4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff84172000 - 0x7fff842a1fef com.apple.MediaControlSender (2.0 - 200.34.4) <FC24EC8D-2E46-3F76-AF63-749F30857B96> /System/Library/PrivateFrameworks/MediaControlSender.framework/Versions/A/Media ControlSender
0x7fff842a2000 - 0x7fff842a2fff com.apple.Carbon (154 - 157) <4E260C09-78F4-305B-B408-13321CAF6213> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x7fff84480000 - 0x7fff84481fff libffi.dylib (18.1) <FEB76C94-97BA-39BC-B713-D086B9757BA5> /usr/lib/libffi.dylib
0x7fff844b8000 - 0x7fff844c2ff7 com.apple.CrashReporterSupport (10.9 - 539) <B25A09EC-A021-32EC-86F8-05B4837E0EDE> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/Cra shReporterSupport
0x7fff844d3000 - 0x7fff844eeff7 libCRFSuite.dylib (34) <FFAE75FA-C54E-398B-AA97-18164CD9789D> /usr/lib/libCRFSuite.dylib
0x7fff844ef000 - 0x7fff846a7ffb libicucore.A.dylib (511.35) <6F097DA7-147C-32A1-93D2-728A64CF0DC2> /usr/lib/libicucore.A.dylib
0x7fff846a8000 - 0x7fff84799ff9 libiconv.2.dylib (41) <BB44B115-AC32-3877-A0ED-AEC6232A4563> /usr/lib/libiconv.2.dylib
0x7fff84865000 - 0x7fff8489dff7 com.apple.RemoteViewServices (2.0 - 94) <3F34D630-3DDB-3411-BC28-A56A9B55EBDA> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/Remot eViewServices
0x7fff8489e000 - 0x7fff848ddfff libGLU.dylib (9.6.1) <AE032555-3E2F-3DBF-A26D-EA4576061605> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff84a8f000 - 0x7fff84a94ff7 libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
0x7fff84a95000 - 0x7fff84aabfff com.apple.CoreMediaAuthoring (2.2 - 947) <F1886A05-1C29-3F88-88C0-4A1013530AD1> /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreM ediaAuthoring
0x7fff84aac000 - 0x7fff84ab6ff7 com.apple.AppSandbox (3.0 - 1) <9F27DC25-C566-3AEF-92D3-DCFE7836916D> /System/Library/PrivateFrameworks/AppSandbox.framework/Versions/A/AppSandbox
0x7fff85270000 - 0x7fff852f1fff com.apple.CoreSymbolication (3.0.1 - 141.0.5) <82170C9C-73E0-3108-9DC5-C214C9B72292> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSy mbolication
0x7fff852f5000 - 0x7fff85321fff com.apple.CoreServicesInternal (184.9 - 184.9) <4DEA54F9-81D6-3EDB-AA3C-1F9C497B3379> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/Cor eServicesInternal
0x7fff85323000 - 0x7fff8532efff libkxld.dylib (2422.115.4) <3C678B75-F7C5-3DBB-8DBD-48483AD54D5C> /usr/lib/system/libkxld.dylib
0x7fff8532f000 - 0x7fff85330ff7 libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff861af000 - 0x7fff861c7ff7 com.apple.GenerationalStorage (2.0 - 160.3) <64749B08-0212-3AC8-9B49-73D662B09304> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/Gene rationalStorage
0x7fff86254000 - 0x7fff86256fff com.apple.Mangrove (1.0 - 1) <72F5CBC7-4E78-374E-98EA-C3700136904E> /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove
0x7fff862f5000 - 0x7fff8630ffff libdispatch.dylib (339.92.1) <C4E4A18D-3C3B-3C9C-8709-A4270D998DE7> /usr/lib/system/libdispatch.dylib
0x7fff86310000 - 0x7fff86610ff7 com.apple.Foundation (6.9 - 1056.16) <24349208-3603-3F5D-95CC-B379616FBEF8> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff86611000 - 0x7fff86613ff3 libsystem_configuration.dylib (596.15) <4998CB6A-9D54-390A-9F57-5D1AC53C135C> /usr/lib/system/libsystem_configuration.dylib
0x7fff8668f000 - 0x7fff86695ff7 com.apple.XPCService (2.0 - 1) <2CE632D7-FE57-36CF-91D4-C57D0F2E0BFE> /System/Library/PrivateFrameworks/XPCService.framework/Versions/A/XPCService
0x7fff866a0000 - 0x7fff866cffff com.apple.DebugSymbols (106 - 106) <E1BDED08-523A-36F4-B2DA-9D5C712F0AC7> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbol s
0x7fff866d0000 - 0x7fff866e1ff7 libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
0x7fff866e2000 - 0x7fff866e9ff8 liblaunch.dylib (842.92.1) <A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A> /usr/lib/system/liblaunch.dylib
0x7fff8671b000 - 0x7fff86722ff7 libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
0x7fff86723000 - 0x7fff86726fff com.apple.AppleSystemInfo (3.0 - 3.0) <61FE171D-3D88-313F-A832-280AEC8F4AB7> /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSys temInfo
0x7fff8672d000 - 0x7fff86744fff com.apple.ScriptingBridge (1.3.1 - 63) <CE24DD07-7A89-3105-AE57-A1BED0189292> /System/Library/Frameworks/ScriptingBridge.framework/Versions/A/ScriptingBridge
0x7fff8677b000 - 0x7fff867a5ff7 libsandbox.1.dylib (278.11.1) <40E0FA20-43F4-3B44-8FB7-E070170E9AB9> /usr/lib/libsandbox.1.dylib
0x7fff867a6000 - 0x7fff867d5ff9 com.apple.GSS (4.0 - 2.0) <44E914BE-B0D0-3E05-9451-CA9E539AFA52> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x7fff867d6000 - 0x7fff867d8fff libRadiance.dylib (1044) <461482C9-CADB-3B36-B023-597C64AD4B00> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.d ylib
0x7fff867d9000 - 0x7fff867ddff7 libheimdal-asn1.dylib (323.92.1) <CAE21FFF-5763-399C-B7C5-EEBFFEEF2242> /usr/lib/libheimdal-asn1.dylib
0x7fff867de000 - 0x7fff86867fff com.apple.ColorSync (4.9.0 - 4.9.0) <B756B908-9AD1-3F5D-83F9-7A0B068387D2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
0x7fff8689a000 - 0x7fff868abff7 libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
0x7fff86976000 - 0x7fff86a41fff libvDSP.dylib (423.32) <3BF732BE-DDE0-38EB-8C54-E4E3C64F77A7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
0x7fff86a42000 - 0x7fff86a42fff com.apple.quartzframework (1.5 - 1.5) <3B2A72DB-39FC-3C5B-98BE-605F37777F37> /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz
0x7fff86a43000 - 0x7fff86a5eff7 libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
0x7fff86a5f000 - 0x7fff86e92ffb com.apple.vision.FaceCore (3.0.0 - 3.0.0) <F42BFC9C-0B16-35EF-9A07-91B7FDAB7FC5> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x7fff87085000 - 0x7fff87147ff5 com.apple.CoreText (367.20 - 367.20) <B80D086D-93A9-3C35-860E-9C3FDD027F3B> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff87148000 - 0x7fff8715fffa libAVFAudio.dylib (32.2) <52DA516B-DE79-322C-9E1B-2658019289D7> /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAu dio.dylib
0x7fff87237000 - 0x7fff87266fd2 libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
0x7fff872a2000 - 0x7fff872c6fff com.apple.quartzfilters (1.8.0 - 1.7.0) <39C08086-9866-372F-9420-81F5689149DF> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters .framework/Versions/A/QuartzFilters
0x7fff872c7000 - 0x7fff8732cffb com.apple.Heimdal (4.0 - 2.0) <F34D6627-9F80-3823-8B57-DB629307DF87> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x7fff8732d000 - 0x7fff87334fff libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
0x7fff87363000 - 0x7fff874a4fff com.apple.QTKit (7.7.3 - 2826.24) <08E58C71-D16C-3357-989C-780A08994B27> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
0x7fff874a5000 - 0x7fff874a7ff7 com.apple.securityhi (9.0 - 55005) <9985032A-0EE1-3760-8D23-ADD3965A4D18> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
0x7fff874a8000 - 0x7fff8751bfff com.apple.securityfoundation (6.0 - 55122.3) <0FDC8F53-104C-3938-A852-5B33C30BAAD5> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
0x7fff8751c000 - 0x7fff87520ff7 libsystem_stats.dylib (93.90.3) <C588E082-D94B-3510-9F9A-7AD83B3402DE> /usr/lib/system/libsystem_stats.dylib
0x7fff875fe000 - 0x7fff87606ff3 libCGCMS.A.dylib (599.35.4) <67AD122A-B8DA-3C05-8B8C-1939F5064FAE> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS .A.dylib
0x7fff8762b000 - 0x7fff87b4efff com.apple.QuartzComposer (5.1 - 319) <8B90921F-911B-3240-A1D5-3C084F3E6A36> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzCompose r.framework/Versions/A/QuartzComposer
0x7fff87b8e000 - 0x7fff87b98ff7 com.apple.bsd.ServiceManagement (2.0 - 2.0) <2D27B498-BB9C-3D88-B05A-76908A8A26F3> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManage ment
0x7fff87b99000 - 0x7fff87b9cff7 libdyld.dylib (239.4) <41077DD7-F909-3B8A-863E-72AE304EDE13> /usr/lib/system/libdyld.dylib
0x7fff87b9d000 - 0x7fff87ba2ff7 com.apple.MediaAccessibility (1.0 - 43) <D309D83D-5FAE-37A4-85ED-FFBDA8B66B82> /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessi bility
0x7fff87c2f000 - 0x7fff87c3afff libGL.dylib (9.6.1) <4B65BF9F-F34A-3CD1-94E8-DB26DAA0A59D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff87c5e000 - 0x7fff87c82fff libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
0x7fff87c83000 - 0x7fff87ccafff libFontRegistry.dylib (127) <A77A0480-AA5D-3CC8-8B68-69985CD546DC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff87f9c000 - 0x7fff87f9cfff com.apple.Cocoa (6.8 - 20) <E90E99D7-A425-3301-A025-D9E0CD11918E> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff87f9d000 - 0x7fff87fa5ff7 com.apple.AppleSRP (5.0 - 1) <ABC7F088-1FD5-3768-B9F3-847F355E90B3> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
0x7fff87fa6000 - 0x7fff87fb9ff7 com.apple.AppContainer (3.0 - 1) <BD342039-430E-39FE-BC2D-8F97B557548E> /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContaine r
0x7fff8825c000 - 0x7fff8834afff libJP2.dylib (1044) <BE5FF765-5ECE-38B5-BF5D-BE806F5CAD18> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x7fff8834b000 - 0x7fff88399ff7 com.apple.opencl (2.3.59 - 2.3.59) <9F43F471-C3C3-352D-889D-EC418DC1F5B2> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff8839a000 - 0x7fff883c1ffb libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
0x7fff883c2000 - 0x7fff88431ff1 com.apple.ApplicationServices.ATS (360 - 363.3) <546E89D9-2AE7-3111-B2B8-2366650D22F0> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
0x7fff88793000 - 0x7fff887d5ff7 libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
0x7fff890fa000 - 0x7fff8935bfff com.apple.imageKit (2.5 - 774) <AACDE16E-ED9F-3B3F-A792-69BA1942753B> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.fram ework/Versions/A/ImageKit
0x7fff8935c000 - 0x7fff89360fff com.apple.CommonPanels (1.2.6 - 96) <6B434AFD-50F8-37C7-9A56-162C17E375B3> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
0x7fff89432000 - 0x7fff89437fff com.apple.DiskArbitration (2.6 - 2.6) <A4165553-770E-3D27-B217-01FC1F852B87> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff89452000 - 0x7fff894b8fff com.apple.framework.CoreWiFi (2.0 - 200.21.1) <5491896D-78C5-30B6-96E9-D8DDECF3BE73> /System/Library/Frameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x7fff894b9000 - 0x7fff894bfff7 libsystem_platform.dylib (24.90.1) <3C3D3DA8-32B9-3243-98EC-D89B9A1670B3> /usr/lib/system/libsystem_platform.dylib
0x7fff894c0000 - 0x7fff8950dff2 com.apple.print.framework.PrintCore (9.0 - 428) <8D8253E3-302F-3DB2-9C5C-572CB974E8B3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
0x7fff89654000 - 0x7fff896e0ff7 com.apple.ink.framework (10.9 - 207) <8A50B893-AD03-3826-8555-A54FEAF08F47> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
0x7fff8973c000 - 0x7fff8973dffb libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
0x7fff8973e000 - 0x7fff897a5ff7 com.apple.CoreUtils (2.0 - 200.34.4) <E53B97FE-E067-33F6-A9C1-D4EC2A20FB9F> /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils
0x7fff897a6000 - 0x7fff897a7ff7 libSystem.B.dylib (1197.1.1) <70B235FC-BCED-367B-BA6C-67C299BAE7D9> /usr/lib/libSystem.B.dylib
0x7fff897a8000 - 0x7fff897f9ff7 com.apple.audio.CoreAudio (4.2.1 - 4.2.1) <BE13E840-FB45-3BC2-BCF5-031629754FD5> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff897fa000 - 0x7fff89847fff com.apple.AppleVAFramework (5.0.27 - 5.0.27) <B28D0F5C-EEDD-3586-8986-33BC79E8DE56> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
0x7fff89848000 - 0x7fff89861ff7 com.apple.Kerberos (3.0 - 1) <F108AFEB-198A-3BAF-BCA5-9DFCE55EFF92> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff899c9000 - 0x7fff89a8dff7 com.apple.backup.framework (1.5.4 - 1.5.4) <195DA868-47A5-37E6-8CF0-9BCF11846899> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x7fff89c56000 - 0x7fff89c6dff7 com.apple.CFOpenDirectory (10.9 - 173.90.1) <7BC0194E-1B40-3FCA-ACD2-235CE5D65DFA> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
0x7fff89c6e000 - 0x7fff89c73fff libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
0x7fff8a0b5000 - 0x7fff8a121fff com.apple.framework.IOKit (2.0.1 - 907.100.13) <057FDBA3-56D6-3903-8C0B-849214BF1985> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff8a12d000 - 0x7fff8a130ffc com.apple.IOSurface (91.1 - 91.1) <D00EEB0C-8AA8-3986-90C1-C97B2486E8FA> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff8a205000 - 0x7fff8a210ff7 com.apple.NetAuth (5.0 - 5.0) <C811E662-9EC3-3B74-808A-A75D624F326B> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff8a211000 - 0x7fff8a2f8ff7 libxml2.2.dylib (26) <A1DADD11-89E5-3DE4-8802-07186225967F> /usr/lib/libxml2.2.dylib
0x7fff8a2f9000 - 0x7fff8a2fafff libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
0x7fff8a2fb000 - 0x7fff8a3dfff7 com.apple.coreui (2.2 - 231.1) <187DF89C-8A64-366D-8782-F90315FA3CD7> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff8a3e0000 - 0x7fff8a3e3fff com.apple.TCC (1.0 - 1) <32A075D9-47FD-3E71-95BC-BFB0D583F41C> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff8a3e4000 - 0x7fff8a3e7fff com.apple.help (1.3.3 - 46) <AE763646-D07A-3F9A-ACD4-F5CBD734EE36> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
0x7fff8a3e8000 - 0x7fff8a3f4ffb com.apple.AppleFSCompression (56.92.1 - 1.0) <066255FD-DBD1-3041-8DDA-7AFC41C9096D> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/Apple FSCompression
0x7fff8a3f5000 - 0x7fff8a3f6ff7 com.apple.print.framework.Print (9.0 - 260) <EE00FAE1-DA03-3EC2-8571-562518C46994> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
0x7fff8a413000 - 0x7fff8a464fff com.apple.QuickLookFramework (5.0 - 622.7) <17685CEC-C94B-3F83-ADE1-B24840B35E44> /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
0x7fff8a487000 - 0x7fff8a499fff com.apple.ImageCapture (9.0 - 9.0) <BE0B65DA-3031-359B-8BBA-B9803D4ADBF4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
0x7fff8a49a000 - 0x7fff8a4f3fff libTIFF.dylib (1044) <FBC5800B-7F34-3755-A44E-7B37B3E0B32E> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff8a4f4000 - 0x7fff8a52dff7 com.apple.QD (3.50 - 298) <C1F20764-DEF0-34CF-B3AB-AB5480D64E66> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
0x7fff8a786000 - 0x7fff8a862fff libcrypto.0.9.8.dylib (52) <ED7F3865-10D4-346B-8C9C-D968EB3B5D35> /usr/lib/libcrypto.0.9.8.dylib
0x7fff8a863000 - 0x7fff8a87eff7 libPng.dylib (1044) <151BA92C-6E7C-3B69-8024-FDD1E2C89DD3> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff8a87f000 - 0x7fff8a8e2ffb com.apple.SystemConfiguration (1.13.1 - 1.13.1) <339A2A90-DA25-33AF-88E5-2FB38A758FEE> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x7fff8a8e3000 - 0x7fff8a9cdfff libsqlite3.dylib (158) <00269BF9-43BE-39E0-9C85-24585B9923C8> /usr/lib/libsqlite3.dylib
0x7fff8a9d1000 - 0x7fff8a9d4fff libCoreVMClient.dylib (58.1) <EBC36C69-C896-3C3D-8589-3E9023E7E56F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
0x7fff8a9d5000 - 0x7fff8aa42fff com.apple.SearchKit (1.4.0 - 1.4.0) <B9B8D510-A27E-36B0-93E9-17146D9E9045> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x7fff8aa43000 - 0x7fff8adbaff6 com.apple.JavaScriptCore (9537 - 9537.78.1) <8623A109-9E9D-3E3B-A8E1-6EE447C0110C> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x7fff8adbb000 - 0x7fff8adf6fff com.apple.bom (14.0 - 193.1) <EF24A562-6D3C-379E-8B9B-FAE0E4A0EF7C> /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x7fff8adf7000 - 0x7fff8aec1ff7 com.apple.LaunchServices (572.28 - 572.28) <FC72C089-A069-3374-B80A-E041AF149F24> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
0x7fff8aec2000 - 0x7fff8aed0fff com.apple.opengl (9.6.1 - 9.6.1) <359D0ECB-D100-341B-B437-BDE56E27B74B> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff8af07000 - 0x7fff8af0effb libcopyfile.dylib (103.92.1) <CF29DFF6-0589-3590-834C-82E2316612E8> /usr/lib/system/libcopyfile.dylib
0x7fff8af0f000 - 0x7fff8b173ffd com.apple.security (7.0 - 55471.14.18) <83A9E8C8-06A1-3F6D-8514-C35CD0DBD370> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff8b333000 - 0x7fff8b34fff7 libsystem_kernel.dylib (2422.115.4) <9EDE872E-2A9E-3A78-8E1D-AB790794A098> /usr/lib/system/libsystem_kernel.dylib
0x7fff8b350000 - 0x7fff8b4beff7 libBLAS.dylib (1094.5) <DE93A590-5FA5-32A2-A16C-5D7D7361769F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
0x7fff8b4bf000 - 0x7fff8b4bfff7 libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
0x7fff8b4c0000 - 0x7fff8b509fff com.apple.CoreMedia (1.0 - 1273.54) <CAB7303A-9AB2-317A-99C3-BEAA8AE8764B> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
0x7fff8b50a000 - 0x7fff8b532ffb libxslt.1.dylib (13) <C9794936-633C-3F0C-9E71-30190B9B41C1> /usr/lib/libxslt.1.dylib
0x7fff8b53d000 - 0x7fff8b58bff9 libstdc++.6.dylib (60) <0241E6A4-1368-33BE-950B-D0A175C41F54> /usr/lib/libstdc++.6.dylib
0x7fff8b598000 - 0x7fff8b628ff7 com.apple.Metadata (10.7.0 - 800.28) <04D510EA-1169-392F-9702-EE7EB00882E6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x7fff8b629000 - 0x7fff8b632fff com.apple.DisplayServicesFW (2.8 - 360.8.14) <816A9CED-1BC0-3C76-8103-1B9BE0F723BB> /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
0x7fff8b633000 - 0x7fff8b697fff com.apple.datadetectorscore (5.0 - 354.5) <C9FAB401-3FE2-3221-B60C-E4F1841CA5F1> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDe tectorsCore
0x7fff8b6f7000 - 0x7fff8b6f7ffd libOpenScriptingUtil.dylib (157) <19F0E769-0989-3062-9AFB-8976E90E9759> /usr/lib/libOpenScriptingUtil.dylib
0x7fff8b703000 - 0x7fff8b7b3ff7 libvMisc.dylib (423.32) <049C0735-1808-39B9-943F-76CB8021744F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
0x7fff8b7b4000 - 0x7fff8b7befff libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
0x7fff8b7bf000 - 0x7fff8b8efff7 com.apple.desktopservices (1.8.3 - 1.8.3) <225BEC20-F8E0-3F22-9560-890A1A5B9050> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
0x7fff8b8f6000 - 0x7fff8b8f7fff com.apple.TrustEvaluationAgent (2.0 - 25) <334A82F4-4AE4-3719-A511-86D0B0723E2B> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
0x7fff8b95e000 - 0x7fff8ba64ff7 com.apple.ImageIO.framework (3.3.0 - 1044) <3BCCF2AE-CF1F-3324-A371-DF0A42C841A2> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x7fff8ba65000 - 0x7fff8baa6fff com.apple.PerformanceAnalysis (1.47 - 47) <DBC7349E-8440-3FE0-B5E4-B6A8EF3017E9> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/Perf ormanceAnalysis
0x7fff8bb32000 - 0x7fff8bb7effe com.apple.CoreMediaIO (408.0 - 4570) <72371044-3FF2-3538-8EE1-C7C20F7C60A0> /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO
0x7fff8bb7f000 - 0x7fff8bba8ff7 libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
0x7fff8bbad000 - 0x7fff8bc05ff7 com.apple.Symbolication (1.4 - 129.0.2) <78AE8B21-BF15-373F-88C6-73BF740BFFFB> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolicat ion
0x7fff8bc5e000 - 0x7fff8bc62ff7 libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
0x7fff8bc7d000 - 0x7fff8bccffff libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
0x7fff8bcd7000 - 0x7fff8bcf3fff libresolv.9.dylib (54) <11C2C826-F1C6-39C6-B4E8-6E0C41D4FA95> /usr/lib/libresolv.9.dylib
0x7fff8bcf4000 - 0x7fff8be90ff3 com.apple.QuartzCore (1.8 - 332.3) <BD68AF62-D369-34CD-9EA2-B4A4325696FA> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff8bee4000 - 0x7fff8bf14fff com.apple.IconServices (25 - 25.17) <4751127E-FBD5-3ED5-8510-08D4E4166EFE> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconService s
0x7fff8bf28000 - 0x7fff8bf3aff7 com.apple.MultitouchSupport.framework (245.13.1 - 245.13.1) <38262B92-C63F-35A0-997D-AD2EBF2F8338> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
0x7fff8bf3b000 - 0x7fff8bf58ff7 com.apple.framework.Apple80211 (9.4 - 940.60) <043C7CFD-B57B-3F9D-B0FE-CA4B97C43968> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x7fff8bf59000 - 0x7fff8c07bfff com.apple.avfoundation (2.0 - 651.12.1) <F82271D8-7859-322C-8BDD-4818825525AE> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
0x7fff8c16c000 - 0x7fff8c170fff libpam.2.dylib (20) <B93CE8F5-DAA8-30A1-B1F6-F890509513CB> /usr/lib/libpam.2.dylib
0x7fff8c1d4000 - 0x7fff8c50afff com.apple.MediaToolbox (1.0 - 1273.54) <CB6F6690-D44C-30B5-93AB-CAB198D51884> /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox
0x7fff8c53f000 - 0x7fff8c53ffff com.apple.Accelerate (1.9 - Accelerate 1.9) <509BB27A-AE62-366D-86D8-0B06D217CF56> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff8c54a000 - 0x7fff8c69eff3 com.apple.audio.toolbox.AudioToolbox (1.10 - 1.10) <69B273E8-5A8E-3FC7-B807-C16B657662FE> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff8c69f000 - 0x7fff8c6c4ff7 com.apple.ChunkingLibrary (2.0 - 155.1) <B845DC7A-D1EA-31E2-967C-D1FE0C628036> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/Chunking Library
0x7fff8c6c5000 - 0x7fff8c6c7fff com.apple.SecCodeWrapper (3.0 - 1) <DE7CA981-2B8B-34AC-845D-06D5C8F10441> /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWr apper
0x7fff8c6c8000 - 0x7fff8c727fff com.apple.framework.CoreWLAN (4.3.3 - 433.48) <1F17FA12-6E84-309D-9808-C536D445FA6E> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x7fff8c72b000 - 0x7fff8c910fff com.apple.CoreFoundation (6.9 - 855.17) <729BD6DA-1F63-3E72-A148-26F21EBF52BB> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8c911000 - 0x7fff8c91eff4 com.apple.Librarian (1.2 - 1) <F1A2744D-8536-32C7-8218-9972C6300DAE> /System/Library/PrivateFrameworks/Librarian.framework/Versions/A/Librarian
0x7fff8c94e000 - 0x7fff8c95bff7 libxar.1.dylib (202) <5572AA71-E98D-3FE1-9402-BB4A84E0E71E> /usr/lib/libxar.1.dylib
0x7fff8c95c000 - 0x7fff8c969fff com.apple.Sharing (132.2 - 132.2) <F983394A-226D-3244-B511-FA51FDB6ADDA> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x7fff8ccf3000 - 0x7fff8cf9dff5 com.apple.HIToolbox (2.1.1 - 698) <26FF0E2C-1CD7-311F-ACF0-84F3D5273AD6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x7fff8cfa2000 - 0x7fff8cfc6ff7 libJPEG.dylib (1044) <BE0ED4E1-F7FC-3038-86D3-0456DD173FCB> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff8cff9000 - 0x7fff8db6fff7 com.apple.AppKit (6.9 - 1265.21) <9DC13B27-841D-3839-93B2-3EDE66157BDE> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff8db70000 - 0x7fff8db89ff7 com.apple.Ubiquity (1.3 - 289) <C7F1B734-CE81-334D-BE41-8B20D95A1F9B> /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
0x7fff8dbc4000 - 0x7fff8dc5fff7 com.apple.PDFKit (2.9.2 - 2.9.2) <DF2CE219-6256-3A8A-BDB1-51EF556F5BC8> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framew ork/Versions/A/PDFKit
0x7fff8dc60000 - 0x7fff8dc60fff com.apple.ApplicationServices (48 - 48) <3E3F01A8-314D-378F-835E-9CC4F8820031> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
0x7fff8dd5e000 - 0x7fff8dda5ff7 libcups.2.dylib (372.4) <36EA4350-43B4-3A5C-9904-10685BFDA7D4> /usr/lib/libcups.2.dylib
0x7fff8ddae000 - 0x7fff8ddd8ff7 libpcap.A.dylib (42) <91D3FF51-D6FE-3C05-98C9-1182E0EC3D58> /usr/lib/libpcap.A.dylib
0x7fff8ddd9000 - 0x7fff8e0aaff4 com.apple.CoreImage (9.4.0) <2C636ECD-0F1A-357C-9EFF-0452476FDDF5> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage .framework/Versions/A/CoreImage
0x7fff8e4f5000 - 0x7fff8e5c6fff com.apple.QuickLookUIFramework (5.0 - 622.7) <13841701-34C2-353D-868D-3E08D020C90F> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.f ramework/Versions/A/QuickLookUI
0x7fff8e5c7000 - 0x7fff8e61afff com.apple.ScalableUserInterface (1.0 - 1) <CF745298-7373-38D2-B3B1-727D5A569E48> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableU serInterface.framework/Versions/A/ScalableUserInterface
0x7fff8e6e0000 - 0x7fff8e6edff0 libbz2.1.0.dylib (29) <0B98AC35-B138-349C-8063-2B987A75D24C> /usr/lib/libbz2.1.0.dylib
0x7fff8e703000 - 0x7fff8e728ff7 com.apple.CoreVideo (1.8 - 117.2) <4674339E-26D0-35FA-9958-422832B39B12> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff8e740000 - 0x7fff8e78efff libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
0x7fff8e78f000 - 0x7fff8e806fff com.apple.CoreServices.OSServices (600.4 - 600.4) <5A44F0B5-4A24-3875-ADE4-5B47D6C7E251> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x7fff8e807000 - 0x7fff8eaf1fff com.apple.CoreServices.CarbonCore (1077.17 - 1077.17) <3A2E92FD-DEE2-3D45-9619-11500801A61C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x7fff8f21c000 - 0x7fff8f245fff com.apple.DictionaryServices (1.2 - 208) <A539A058-BA57-35EE-AA08-D0B0E835127D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
0x7fff8f263000 - 0x7fff8f3d3ff4 com.apple.CFNetwork (673.4 - 673.4) <F3BF6020-99BE-3844-A7B8-352B93AD02F3> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff8f3d4000 - 0x7fff8f3d5fff liblangid.dylib (117) <9546E641-F730-3AB0-B3CD-E0E2FDD173D9> /usr/lib/liblangid.dylib
0x7fff8f3d6000 - 0x7fff8f3d6fff com.apple.Accelerate.vecLib (3.9 - vecLib 3.9) <F8D0CC77-98AC-3B58-9FE6-0C25421827B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 1660
thread_create: 2
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=187.9M resident=82.3M(44%) swapped_out_or_unallocated=105.6M(56%)
Writable regions: Total=85.3M written=1328K(2%) resident=2492K(3%) swapped_out=0K(0%) unallocated=82.9M(97%)
REGION TYPE VIRTUAL
=========== =======
CG shared images 140K
Kernel Alloc Once 8K
MALLOC 75.4M
MALLOC (admin) 32K
STACK GUARD 56.0M
Stack 9824K
VM_ALLOCATE 348K
__DATA 24.2M
__IMAGE 528K
__LINKEDIT 66.2M
__TEXT 121.7M
__UNICODE 544K
mapped file 37.2M
shared memory 4K
=========== =======
TOTAL 391.9M
Model: MacBookPro10,1, BootROM MBP101.00EE.B02, 4 processors, Intel Core i7, 2.3 GHz, 16 GB, SMC 2.3f35
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.7f3 14616, 3 services, 23 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM256E, 251 GB
USB Device: Backup+ BK
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 23.4How exactly did you delete the App?
It may have left behind other parts. -
Error after compile Exception in thread "main" java.lang.NoClassDefFoundErr
Hi I am very new to Java programming, right now I am using a mac os 10.49
I can create java documents using bbedit and then they compile when i type
javac.
But when i type java *.java I get the following error
Exception in thread "main" java.lang.NoClassDefFoundError
If I type java "filename"
without the .java at the end of the file the terminal has no response
I understand i am supposed to some how set the classpath but i do not know how to do this
Also I can create and compile and then run my java in the eclipse program that i have installed, but not from terminal and im not sure why.
Thanks for the help.I understand i am supposed to some how set the classpath but i do not know how
to do thisThere is no need to set a system variable CLASSPATH, it is inflexible to do so, and it can lead to unpredictable behaviour.
You should be able to compile and run programs from the command line, specifying the classpath as part of the commands you use.
(1) For instance, you can create a file HelloWorld.java with the following contents:public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello world");
}(2) From the command line (console) navigate to the folder (directory) containing this file and compile it with the commandjavac -cp . HelloWorld.javaThe "-cp ." part is what specifies the classpath. Note that it is a file that is being compiled so we specify the actual file name including the extension. At this point you should be able to check that the HelloWorld.class file has been created.
(3) From the same folder (directory) you run the program withjava -cp . HelloWorldThe classpath is being specified in the same way as before. It is a class that is being invoked, so we don't specify a filename. (much less use wildcards like *).
Documentation for the java and javac tools (and others) are linked to from this page: http://java.sun.com/javase/6/docs/index.html -
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
Maybe you are looking for
-
hi people out there...! I have an iPod Touch 4G purchased on november 2010, and since then until two days ago, I had iOs 4.3.x and everything went very good about battery charge...I used to have my iPod on standby mode for several days, and never had
-
Hover style not applying on text
Hello, I have created a manual menu (not the one that muse creates automatically) and tried to apply hyperlink styles to it. Not working at all. I have done this before without issues. Would appreciate any help. On the other hand I just wanted to ask
-
Calling Flash function from IE10
Hey guys, So I am attempting to have some javascript call a flash function. I have it fully working with older versions of IE, such as IE9. However IE10 will not do it. I followed the example provided by Adobe here: http://help.adobe.com/en_US/Flas
-
Java applet detecting system states
I am currently working on a chat room applet to keep all of our emplyees connected during the day for user support and general communication; however, we have been having an issue with people not going idle lately. The solution we have settled on is
-
Batch determination fails.
Hello All, Can anyone help me out in this.. When executing CORK, and processing the Goods Movements, the batch determination within the certain materials will have various materials "fail" and then they will reside in the COGI report to get resolved