Evaluator.java won't compile due to issues with javax.tools.*

* Evaluator.java
* Created on January 23, 2007, 4:17 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package ObjectTools;
import java.io.*;
import java.net.*;
import javax.tools.*;
import java.lang.reflect.*;
* Utilizes {@link java.lang.reflect} package
* @author ppowell-c
public abstract class Evaluator {
    public static boolean writeSource(final String sourcePath, final String sourceCode)
    throws FileNotFoundException {
        PrintWriter writer = new PrintWriter(sourcePath);
        writer.println(sourceCode);
        writer.close();
        return true;
    public static boolean compile(final String sourcePath) throws IOException {
        final JavaCompilerTool compiler = ToolProvider.defaultJavaCompiler();
        final JavaFileManager manager = compiler.getStandardFileManager();
        final JavaFileObject source =
                manager.getFileForInput(sourcePath); /* java.io.IOException */
        final JavaCompilerTool.CompilationTask task = compiler.run(null, source);
        return task.getResult();
    public static final java.lang.Class loadExpression(final String path, final String className)
    throws MalformedURLException,
            ClassNotFoundException { /* java.net.MalformedURLException */
        final URLClassLoader myLoader = new URLClassLoader(new java.net.URL[] {
            new File(path).toURI().toURL()
        /* java.lang.ClassNotFoundException */
        return Class.forName(className, true, myLoader);
    public static java.lang.Object evalExpression(final Class test)
    throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        final Class[] parameterType = null;
        /* java.lang.NoSuchMethodException */
        final Method method = test.getMethod("expression", parameterType);
        final Object[] argument = null;
        Object instance = null;
        /* java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException */
        return method.invoke(instance, argument);
    public static Object eval(final String expression)
    throws FileNotFoundException, IOException, MalformedURLException,
            ClassNotFoundException, NoSuchMethodException, IllegalAccessException,
            InvocationTargetException {
        final Object result;
        final String path = "c:/";
        final String className = "ExpressionWrapper";
        final String sourcePath = path + className + ".java";
        writeSource(/* to */ sourcePath,
                "public class " + className + "\n" +
                "{ public static java.lang.Object expression()\n" +
                "  { return " + expression + "; }}\n" );
        if(compile(sourcePath)) {
            final Class class_ =
                    loadExpression(/* from */ path, className);
            result = evalExpression(class_);
        } else {
            result = null;
        return result;
}Produces compiler errors on javax.tools.ToolProvider along with nearly everything else in javax.tools to boot.
I'm using J2SE 1.5.0 with NetBeans 5.5 so they all should be there. I'm following the example at http://userpage.fu-berlin.de/~ram/pub/pub_jf47ht9Ht/evaluating-expressions-with-java since all I want to do is come up with a Java equivalent of "eval()", which I use in PHP whenever I need it.
Help appreciated, I'm lost here.
Thanx
Phil

How do you do the Java equivalent of eval()?The language provides no support for that.
Reflection lets you call any method, where you
specify that method's name as a string and go through
a few other steps to build the proper Method object
with the proper args.
(http://java.sun.com/docs/books/tutorial/reflect/) It
won't let you just evaluate Java source code as a
script interpreter though. To do that, see
www.beanshell.org. Jython and I think Ruby on Rails
also give you scriptingin Java. Jython uses Python's
syntax, but gives you access to your Java classes. I
don't know ayhthing about RoR.I am going to look up PHP/Java myself as I know no Python right offhand (but probably could learn it in about 10,000 years). Tried to figure out reflection but couldn't figure out how to do what in PHP we do like this:
$msg = eval('JButton ' . $nameArray[$i][0] . ' = new JButton("' . $nameArray[$i][1] . '");');

Similar Messages

  • I have been suggested to down grade to 10.6.6 due to issues with Adobe and Apple working things out. I have downloaded 10.6.6 but wont let me install. Any ideas?

    I have been suggested to down grade to 10.6.6 due to issues with Adobe and Apple working things out. I have downloaded 10.6.6 but wont let me install. Any ideas?

    Yes, simply reinstall from your Snow Leopard installer disc.  The reinstall will not erase the hard drive.  After reinstalling you can upgrade to 10.6.6 with your updater.

  • Firefox constantly freezing due to issues with Flash. Please help.

    I was running the firefox 20 beta (and have been for a while) when in the last few days, suddenly any time I tried to open any site that used even the slightest amount of flash, the browser would freeze for minutes on end before finally releasing a "plugin error" type message about Shockwave Flash. If i clicked 'continue' it would stay frozen. If i clicked 'stop script' then sometimes it would fix it, but most of the time it would keep freezing and showing that same message over and over until I stopped the process in task manager.
    First I tried to update flash and shockwave- both are up to date. So i decided to delete the files themselves and the programs via add/remove and reinstalled them. Still did not fix the problem.
    Next I tried to do a reset firefox to default state. This didn't work. I tried doing it again with the flash files deleted/uninstalled AND I rebooted the computer and the problem still persisted.
    Finally, I tried to downgrade to a more stable version of firefox, so I downloaded 19 and it still didnt work. Tried the uninstall/re install for flash one more time and nothing.
    At this point, I cannot access about half of the pages I usually go to on the web and I need help here, please anything will do.
    One thing that I noticed that might be helpful is that no matter how many times i uninstalled or reinstalled flash, every time it would try to run, task manager would show two instances of it, each using different amount of memory.
    again, please please help. If there is any solution short of a total wipe it would be greatly appreciated

    hello, maybe it's an issue with the protected mode in the flash plugin - you could try if [https://support.mozilla.org/en-US/kb/flash-113-crashes#w_solution-2-downgrade-to-flash-10-3 downgrading to flash 10.3] (which is still supported) or [http://forums.adobe.com/thread/1018071#TemporaryWorkaround disabling protected mode] makes a difference.

  • Wanting to go "back in time" due to issue with iphoto 8.03

    Everything was great on Sat. before I downloaded iphoto 8.03. Instead of jumping through hoops to try to fix my issues, can't I simply go back using Time Machine to iphoto 8.02? I've made minor changes otherwise to my mac since Sat. that I can duplicate no prob.
    Can I revert back to my machine the way it was Friday or the time of my last back up?
    Thanks!

    tamara, actually, the following would be even better than trying to restore the application from a Time Machine backup. Reinstall, iPhoto 8.0 from your original iLife `09 DVD, then update the application to the update just prior to the one you began having issues with.
    First, open the Applications folder and drag iPhoto to the Trash.
    Now insert the iLife `09 DVD and launch the installer.
    Accept the license agreement.
    When you get to "Installation Type" click the "Customize" button on the left.
    If you removed iPhoto as described earlier then there should be a check mark beside iPhoto.
    Click "Install".
    When the installation is complete go to the Apple Support website and download the iPhoto 8.0.2 Update (I believe it was 8.0.3 that you had trouble with?):
    http://support.apple.com/downloads/iPhoto8_0_2Update
    Install the update.
    Now your iPhoto application is back to the version it was before the 8.0.3 update. However, your photo library was likely converted when you applied the 8.0.3 update. As a result iPhoto 8.0.2 will alert you that the photo library is not compatible with this version of iPhoto.
    To fix this, hold down the Option & CMD keys and launch iPhoto.
    A window will appear giving you various rebuilding options.
    Place a check mark beside "Rebuild the iPhoto Library from automatic backup".
    Click "Rebuild".
    This will convert the library back to a version compatible with 8.0.2.
    Let us know if this resolved your issue. Cheers!

  • Issue with javax.crypto.SecretFactory

    I am getting the following error in the following code:
    DESedeKeySpec spec = new DESedeKeySpec( baKey );
    SecretKeyFactory keyFactory = SecretKeyFactory.getInstanc( "DESede" );
    Here is the error message:
    java.security.NoSuchAlgorithmException: Algorithm DESede not available
         at javax.crypto.SunJCE_b.a(DashoA6275)
         at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
    I will really appreciate any help.

    Looks like it has something to do with the jdk installed on my machine. I changed the location of jdk and I get the following error:
    javax.crypto.BadPaddingException: Given final block not properly padded
         at com.sun.crypto.provider.DESedeCipher.engineDoFinal(DashoA6275)
         at com.sun.crypto.provider.DESedeCipher.engineDoFinal(DashoA6275)
         at javax.crypto.Cipher.doFinal(DashoA6275)

  • Issues with selection tools using PS CS6

    OK, I'm having issues with selections in Photoshop CC…   This video shows my issue (which I never had with CS3).  Basically, I go to select an area within an image, and then the selection area disappears, and when I go to move the selection area I am unable to get the selection to "drop".  This happens regardless of whether I'm using my wacom tablet or my trackpad.  My mac is a 2009 macbook pro running 10.8.5.  Updated my OS and wacom tablet with the latest drivers.  I've gone into preferences and disabled the GPU, but to not avail.  Haven't run into this issue at work using CS6 (but i'm on a windows box there) Any ideas?  Any help would be greatly appreciated ;-) http://www.youtube.com/watch?v=FGPla7V9QI8

    say, SAKNR is 10 character field and ur appending only 6 characters, then it will give such type of errors normally.
    before inserting the data to ur Z table use function module... CONVERSION_EXIT_ALPHA_INPUT

  • PS CS6 issue with crop tool: graphic glitches

    I am using Photoshop CS6 v13.1.2 and I'm experiencing an issue with the crop tool. Whenever I use the crop tool, move the frame around and then zoom in on the image, the image becomes noisy, pixelated or has other 'graphic glitches'. I changed the PS preferences to not use the GPU and then rebooted the computer. Still the same issue without the GPU.
    Running on Mac OS 10.8.3, iMac 2011 with AMD Radeon HD 6970M.
    Is there another workaround to use this tool until it might get fixed? Thank you.

    I've seen the same issue from time to time on windows 13.01.1 usually only on rather large pixel dimension documents.
    Does it make a difference if you flatten the image before using the crop tool?
    Also, using the classic mode for the crop tool doesn't seem to have that glitch.

  • Issues With Move Tool on Elements 12

    I have elements 12 on my windows 7 laptop. my problem is I open up a new project and open up any image or photoshop file to drag it over to add it to my project but the image does not transfer to the other project tab, it stays in the original tab. I can easily do it with elements 11 but I've had elements 12 since it came out and it's been a really frustrating problem as I want to be able to use elements 12 now instead. I've tried using holding down the control button and have tried looking around for this issue but so far I haven't seen anyone with this issue with a windows laptop, just Macs, please help!

    Originally Posted by sarsippius
    I had to move a user from one PO to another. The user opened their Groupwise only to find that all messages are gone. The folder structure is there, but no emails. The user database is still on the old server, and about 80% on the new server.
    I was able to look under Move Status, and it says 'Retry mailbox item retrieval.
    Any help would be greatly appreciated!
    There should be different options available in the user move status for that user, including the option to retry the entire move from the start. In many cases this is recoverable by retrying the move. Other options are possible if this fails.
    Before doing so, have a read through Tommy's cool solution & the Novell documentation (if not already done so) on the details of the move.
    ! Also make sure you have set both POA's to verbose logging so you can monitor the move messages from the sending as well as receiving end.
    A detailed article on moving users in GroupWise Communities ARTICLE: User Move Within GroupWise
    (looking at section 6.2 and on there are some tips/suggestions on how to handle stuck moves - reading the whole article will give a good overview and handle)
    Extra info:
    Novell docs on the move process (and preparations): Novell GroupWise 8 Documentation
    GroupWise Wiki with additional info : Moving GroupWise Users - CoolSolutionsWiki
    Hope that helps,
    Willem

  • Licensing issues with altered tools.jar

    Hello,
    I wanted to know, if it would be permitted if I would ship an edited tools.jar with my application.
    I would not charge my customer for the original Java-source code, I would also include the license-files that come along with the tools.jar and I would even make the affected code available publicly. Would that be enough or is it simply prohibited?

    Hi,
    Note that your version of Ubuntu is beta and we don't support beta software. This means that even if the problem exists and is reproducible we would wait for the open source team to release a production version.
    Frank

  • Java won't work - possible proxy issues?

    I was informed that one of our computers suddenly (from what I was told about 2 months ago) developed problems with Java. Said computer is on our dirty internet connection, so it's not readily checked or even updated. My colleagues looked at it, and evertually escalated the issue to me, since they couldn't figure it out. One specific website needs Java for some examinations, and it turned out Java just would present an error to the site.
    After spending an afternoon at the location, testing with the Java verification applet on the Java website, and finding myself unable to correct the problem, I build myself a small test machine to see if I could recreate the problem on something local. Turns out, I can, which makes testing a lot easier. Do note: We want another site (which requires a heap of logins) to work, so I'm using the Java verification applet to get me a quicker and easier way to verify if Java works.
    So, Got a clean install of Windows XP SP3, and updated to IE8. The machine is connected to the Internet through a proxy server based on FreeProxy which listens to port 2244 (note: this proxy has had NO changes in the aforementioned 2 months that I know of, or can trace within the proxy configuration). I can browse without any problems. Installed Java (7r51) on the system, and tried to verify the Java version.
    Unable to verify if Java is installed and activated on your browser.
    Ran all the Windows Updates (for XP, IE, .NET whatever version, and whatever more was available) Microsoft offers, just to make sure it's not in any of those. Still no go. Installed Google Chrome and Firefox to exclude the browser as a source of problems. None of the three browsers works with the Java verification applet, all resulting in the same message as stated above. Verified that Java is available in the browsers, and it is shown as available and active.
    Deinstalled Java, reinstalled. Used JavaRA to remove and then reinstall. Pulled the security down to medium. Wiped the local cache files. There is no virusscanner installed, so that can't be it. Disabled the Windows Firewall to exclude that as a cause. Used a second machine with Windows 7 just to exclude the OS as a culprit. Verified the 'Enable Java in web browser' setting in the Java control applet. Played with the proxy settings and the security settings in IE and under the Java control panel. Wiped Java out, manually ran through the registry to kill references, and wiped all the Sun folders from all profiles, aswell as the Java install folder before reinstalling. Installed Java 6r43 just to make sure. Nothing helped.. The error keeps coming back, and the Java verification keeps failing.
    The Java console which can help troubleshoot, seems to open while the Java icon shows up in the systemtray, but it quite rapidly (30 or 45 seconds) closes again, taking the Java console along with it, thus not giving me any logging to further see what's wrong here. So it seems Java is working, but runs into some problems along the way. About the only quick problems I spotted when I did manage to grab a copy of the log:
    network: Cache entry not found [url:http://www.java.com/en/download/JavaDetection_applet.jnlp, version: null]
    and
    java.io.IOException: Server returned HTTP response code: 403 for URL: https://java.com/en/download/JavaDetection_applet.jnlp
    My colleague noted that it did work on the other proxied network through the same proxy (just that that proxy is on a different NIC and listens to port 8080). We tried changing the proxy port for the network to 8080 on the actual PC on location, and found the problem remained. Just to make sure it worked on the other network, I reattached the PC to the other network, altered the proxy settings both under the IE options and Java control panel applet, only to see it exhibit the exact same behavior. So I'm dismissing my colleague, and assuming it has never really worked.
    Most of the internet solutions I can find refer to changing the code of the applet, but since I'm using a sanctioned Oracle applet, and Oracle software, I suppose I can assume it's been programmed well, and tested properly. Besides that, as a user of Java I have no direct influence on the actual code being used, so all those solutions aren't really helping me any.
    So I turn to this forum to see if anyone wants to have a guess at what is wrong here, and what I can do to either
    1) Solve the issue
    2) Provide some means to keep the Java console open or log to a file
    3) Think of anything I haven't tried yet, that may have a positive impact on the issue.
    Thanks in advance for your time, effort and help. Know that every response is already highly appreciated.

    Thanks for the response...
    I had a look about more logging on the proxy, and although http://www.handcraftedsoftware.org/index.php?page=faq&op=read&id=25 hints at a different program I might need to use (which has been removed of what I can see), the link http://www.handcraftedsoftware.org/index.php?page=faq&op=read&id=54 hints at there being some native logging I can use to verify what happens.
    As such I located the log settings, and fired up the test system to see if I could determine some more from the logs (and exactly what those logs would entail). The log does provide some insight in what it pulls from the Java website, but doesn't show much in regards to what is going wrong:
    Website:'www.java.com' URL:'/' From Client: 538 bytes To Client: 254 bytes
    Website:'www.java.com' URL:'/nl/' From Client: 586 bytes To Client: 2514 bytes
    Website:'www.java.com' URL:'/css/screen.css' From Client: 508 bytes To Client: 208 bytes
    Website:'www.java.com' URL:'/css/print.css' From Client: 506 bytes To Client: 205 bytes
    Website:'www.java.com' URL:'/css/ie.css' From Client: 502 bytes To Client: 207 bytes
    Website:'www.java.com' URL:'/js/popUp.js' From Client: 503 bytes To Client: 152 bytes
    Website:'www.java.com' URL:'/js/s_code_remote.js' From Client: 511 bytes To Client: 152 bytes
    Website:'www.java.com' URL:'/images/jv0_search_btn.gif' From Client: 516 bytes To Client: 182 bytes
    Website:'www.java.com' URL:'/js/global.js' From Client: 504 bytes To Client: 152 bytes
    Website:'www.java.com' URL:'/js/subtlePager.js' From Client: 510 bytes To Client: 152 bytes
    Website:'www.java.com' URL:'/images/jv0h.jpg' From Client: 509 bytes To Client: 185 bytes
    Website:'www.java.com' URL:'/images/jv0h_greenfoot.jpg' From Client: 518 bytes To Client: 184 bytes
    Website:'www.java.com' URL:'/images/jv0h_academy.jpg' From Client: 516 bytes To Client: 185 bytes
    Website:'www.java.com' URL:'/images/jv0h_java.jpg' From Client: 513 bytes To Client: 185 bytes
    Website:'www.java.com' URL:'/im/a.gif' From Client: 499 bytes To Client: 182 bytes
    Website:'www.java.com' URL:'/images/jv0h_alice.jpg' From Client: 514 bytes To Client: 185 bytes
    Website:'www.java.com' URL:'/images/jv0h_javamag.jpg' From Client: 516 bytes To Client: 185 bytes
    Website:'www.java.com' URL:'/images/jv0h_bluej.jpg' From Client: 514 bytes To Client: 185 bytes
    Website:'www.java.com' URL:'/images/jv0dl_a.png' From Client: 511 bytes To Client: 184 bytes
    Website:'www.java.com' URL:'/images/jv0_oracle.gif' From Client: 513 bytes To Client: 183 bytes
    Website:'www.java.com' URL:'/js/metrics_group1.js' From Client: 514 bytes To Client: 153 bytes
    Website:'oracle.112.2o7.net' URL:'/b/ss/sunjava/1/H.19.4/s98129805908124' From Client: 872 bytes To Client: 663 bytes
    Website:'www.java.com' URL:'/nl/download/installed.jsp' From Client: 881 bytes To Client: 2961 bytes
    Website:'www.java.com' URL:'/im/ic_tipblue20x20.png' From Client: 776 bytes To Client: 183 bytes
    Website:'www.java.com' URL:'/images/jv0_sidebar_bg.gif' From Client: 779 bytes To Client: 183 bytes
    Website:'www.java.com' URL:'/images/jv0_sidebar_subhead.gif' From Client: 784 bytes To Client: 183 bytes
    Website:'oracle.112.2o7.net' URL:'/b/ss/sunjava/1/H.19.4/s97891718594365' From Client: 1156 bytes To Client: 663 bytes
    Website:'www.java.com' URL:'/nl/download/installed.jsp' From Client: 989 bytes To Client: 3657 bytes
    Website:'oracle.112.2o7.net' URL:'/b/ss/sunjava/1/H.19.4/s98995092053347' From Client: 1247 bytes To Client: 662 bytes
    Website:'www.java.com' URL:'/nl/download/installed.jsp' From Client: 947 bytes To Client: 2866 bytes
    Website:'oracle.112.2o7.net' URL:'/b/ss/sunjava/1/H.19.4/s96218056013586' From Client: 1088 bytes To Client: 663 bytes
    At around that same time I got the following notice in the connection log, which does seem to hint at a problem somewhere:
    #11004: WSANO_DATA: Valid name, no data record of requested type.  H:02424 F:'HCSNTSocket_ResolveHostName' A:'gethostbyname' T:'Return=11004.'
    Other then that I have not received any other logs (despite me enabling all of them, or any other notice that may indicate the cause of the problem. I will be leaving the settings in the proxy in regards of logging, just to see if any other logs are going to crop up.
    I did post this to the Proxy-forum too to see if someone could help in determining what exactly the log is saying.

  • Java won't compile for me

    hi. I'm new to Java. Installed JAva from a book's CD. Java1.3. When I compile, I get an error message saying "bad command or file name". It doesn't compile. Thank goodness for the book's exercises being on CD. The .class files are already there, whichmeans the .java files were already compiled, yes? (i'm new) So, running Java with these already compiled files works fine. It's just compiling that is the problem. I suspect it has something to do with my settings in my autoexec.bat file, but what do i know? I'm new!
    Can somebody help me out?
    I can't keep checking this forum yet, so i'd prefer to be emailed at [email protected]
    Thanks, Christian

    this is the first version of my autoexec.bat file that i tried:
    @ECHO OFF
    SET PATH=C:\IBMTOOLS
    If Exist C:\MFGBOOTI.REG C:\WINDOWS\REGEDIT C:\MFGBOOTI.REG
    PATH=%PATH%;"C:\Program Files\Mts"
    PATH C:\jdk1.3.0_02\bin;%PATH%
    SET CLASSPATH=%CLASSPATH%;.;C:\jdk1.3.0_02\lib\tools.jar
    this is the second version :
    @ECHO OFF
    SET PATH=C:\IBMTOOLS
    If Exist C:\MFGBOOTI.REG C:\WINDOWS\REGEDIT C:\MFGBOOTI.REG
    PATH=%PATH%;"C:\Program Files\Mts"
    PATH C:\jdk1.3.0_02\bin;%PATH%
    SET CLASSPATH=%CLASSPATH%;.;C:\jdk1.3.0_02\lib\tools.jar;C:\j21work

  • I cannot reinstall java after uninstalling due to issues with it.

    Well, over the past few days, I have been unable to use anything to do with java. After asking around a bit, I was told I should reinstall java. So, I removed anything to do with Java, and then went to system update to re-download it.
    Now, the funny bit. (maybe)
    After removing it, I checked for updates via system update, and, lo and behold, it wasn't listed as an update.
    I am wondering, how do I re-download it, and without the issues it has been having?
    I run a 10.6.8, with a 2 GHz intel core 2 duo.
    Thanks.

    Klaus; When I tried that, it said seomthing about it not being recognized >.>
    I'll try a re-install if things get desprate, I live somewhat rurally, and got some tech savvy people to install, so I'de have to take it in >.>
    thanks guys

  • WebLogic does not start due to issues with WLS_DIAGNOSTICS000000.DAT

    My customer is getting the following exception everytime he tries to restart his WebLogic services:
    ####<Jun 16, 2009 9:23:46 AM MST> <Critical> <WebLogicServer> <hqpsfindev> <PIA> <main> <<WLS Kernel>> <> <> <1245169426020> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.diagnostics.lifecycle.DiagnosticComponentLifecycleException: weblogic.store.PersistentStoreException: [Store:280020]There was an error while reading from the log file
         at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:44)
         at weblogic.diagnostics.lifecycle.DiagnosticFoundationService.start(DiagnosticFoundationService.java:107)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: weblogic.store.PersistentStoreException: [Store:280020]There was an error while reading from the log file
         at weblogic.store.io.file.Heap.getNextRecoveryFile(Heap.java:794)
         at weblogic.store.io.file.Heap.open(Heap.java:181)
         at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
         at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:353)
         at weblogic.store.PersistentStoreManager.createFileStore(PersistentStoreManager.java:202)
         at weblogic.diagnostics.archive.DiagnosticStoreRepository.getStore(DiagnosticStoreRepository.java:61)
         at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:42)
         ... 4 more
    Caused by: java.io.IOException: Error reading from file, Reached the end of the file., errno=38
         at weblogic.store.io.file.direct.DirectIONative.read(Native Method)
         at weblogic.store.io.file.direct.DirectFileChannel.read(DirectFileChannel.java:133)
         at weblogic.store.io.file.StoreFile.read(StoreFile.java:281)
         at weblogic.store.io.file.Heap.getNextRecoveryFile(Heap.java:792)
         ... 10 more
    He has narrowed this down to the following: He deletes
    ...\domain\servers\WebLogicAdmin (or managed server)\data\store\default\XXXXX.dat (WLS_DIAGNOSTICS000000.DAT). He also deletes the .dat file under diagnostics and then the service starts without issue.
    Can't be doing this every time he bounces his server.
    Does this call stack indicate lack of disk space?
    Caused by: java.io.IOException: Error reading from file, Reached the end of the file., errno=38
    Is there a way to disable diagnostics so this files don't get generated?
    Thanks!

    Diagnostics is normally disabled by default, but I recall that there was a bug a long while back (since fixed) that left it on by default. The following thread might help shed some light on the issue:
    Disable or reduce size of diagnostic archive?
    Regardless, the unexpected low level exception could be an indication of a bug in the WebLogic file store code. The only time I'd expect to see this is if somehow there are two processes that are both using the same file at the same time (on most operating systems the store lock's its files to as a safety precaution to help prevent customers from making this mistake).
    Tom

  • ITunes won't open due to problem with audio configuration

    Out of the clear blue iTunes will not open any longer. I get a gray message screen that says iTunes can't open due to
    an audio configuration problem. Any answers for this???

    iTunes can't open due to an audio configuration problem.
    That one is most commonly caused by a problem with your QuickTime. (iTunes uses QuickTime for audio and video playback.)
    The following document may be of some assistance:
    iTunes 7 for Windows: iTunes has detected an audio configuration problem

  • I'm currently in Afghanistan and need to contact Apple due to issues with updating my payment information.

    I've spent the last 30 mintues navigating this website to find a way to email customer service and have found nothing! I can't call them due to my location. Does anyone know how to email customer support?

    Mainly because l got this hungarian top up card and couldn`t top it up so far /it`s sunday/ and l was hoping they can call me. But obviously l`ll have to call them at some point next week. L just didn`t wanna wait till then.

Maybe you are looking for

  • How setup cycle counts with wms picking

    How setup cycle counts to dispatch tasks when make picking of an order with wms and activate an exception?

  • Seeburger BIC Mapper

    Dear experts, Would you know whether BIC Mapper can manipulate the page encoding in their level? We have a scenario here wherein, the UNOA was sent by the customer, which will nake the data to be 'all caps'. However, the ideal scenario is that it sho

  • IBook losing wireless connection intermittently

    System is an iBook Dual USB that was purchased new a few years ago along with the original Airport card. Just yesterday, the machine started intermittently losing connection to my access point (a belkin model) which had caused no problems for over a

  • Connecting ibook g4 with third-party wireless network

    i've got a ibook g4 with an airport extreme card that i'm trying to connect to a third-party wireless network. When i am right beside the router, it works at about 75%, but I walk 15 feet away and the signal is totally gone. the computer the router i

  • Downgrading InDesign from CC 2014 to CC for addon compatibility

    I recently upgraded all my apps to the CC 2014 version but found that InDesign CC 2014 does not work with an important addon I need. Can I download and install InDesign CC alongside the latest version?