JWS offline + JPA/Eclipselink fails

Hi,
We're using JPA in our web start enabled application. We have the latest version of the Eclipselink jar (1.1.2).
When starting the application in online mode, everything runs fine, but we can see that the jar file containing META-INF/persistence.xml is downloaded several times at every startup.
When starting in offline mode, we run into a fatal error. It seems that eclipselink is always trying to get the persistence.xml file from the online resource.
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: com.sun.jnlp.JNLPClassLoader@8814e9
Internal Exception: Exception [EclipseLink-30004] (Eclipse Persistence Services - 1.1.2.v20090612-r4475): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: http://10.0.0.1/app/test.jar
Internal Exception: java.net.MalformedURLException
The same problem is described in this post, but I cannot see a definite solution: http://forums.sun.com/thread.jspa?threadID=5123126
Does anybody have an idea what can be done in this situation? Is it possible to somehow place the META-INF directory in classpath so that JWS does not try to get the resource online?
Thanks.

I think this is the same issue posted to yesterday in [t-5403895]. I eventually spent several hours tracking through the EclipseLink code to find out exactly what caused the problem. As you say, it's basically because EclipseLink is trying to load the resource from the web. This is because internally it resolves the reference to a URL starting with "http", and assumes it must be a server resource. In online JNLP mode, it downloads the file several times, in offline mode it fails. The "correct" action is to use the JNLP classloader to getResource() on META-INF/persistence.xml. Obviously, and perhaps understandably, EclipseLink (or TopLink Essentials as was) was not written or tested with Java Web Start offline mode in mind.
I did finally make this work, but only by modifying two EclipseLink classes, which is not ideal. If you're willing to entertain that option, please post again and I'll provide details.

Similar Messages

  • Adobe Story - I am trying to install the desktop application (to work offline) - and it fails whilst initializing

    Adobe Story - I am trying to install the desktop application (to work offline) - and it fails whilst initializing
    Any ideas?

    Hi Four23olly,
    Please follow the article: Troubleshoot download and install issues to resolve your installation issues with Creative Cloud Desktop Application.
    Thanks,
    Ratandeep Arora

  • I bought an Adobe photoshop elements 12 and successfully installed. I failed to activate as it said I am offline whereas I am online. I tried offline activation but failed. Could someome help me? Thanks

    I bought an Adobe photoshop elements 12 and successfully installed. I failed to activate as it said I am offline whereas I am online. I tried offline activation but failed. Could someome help me? Thanks

    Hi Agathe,
    Please refer to the below link and follow the steps.
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Thank you for posting on Adobe Forums.

  • SCCM 2012 SP1 - Offline Servicing failure - Failed to find or access the update binaries to be applied on the image

    Hi there
    Trying to patch a new Windows 7 SP1 image within SCCM 2012 SP1, but it's failing.
    I've searched for information on the failure messages I am seeing, but although there is a LOT of information online concerning Offline Servicing failures, I can't find anything on the errors I am seeing.
    I've tried injecting a single update, five updates and ten updates, no difference, same messages.
    We have McAfee Access Protection disabled, as we know Offline Servicing simply won't work if this is running.
    In the console, in Schedule Update Status for the image I am trying to update, the following message is shown:
    "Failed to find or access the update binaries to be applied on the image."
    That sounds as if the process can't find the actual .cab file for any update I've tried to inject, but I don't know why it wouldn't be able to do that, we have Software Updates configured and the .cab files are on the same server.
    When I looked at the OfflineServicingMgr.log file, I see the following entries:
    Processing image at index 1        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:52:49        8272 (0x2050)
    Mounting image at index 1. Image file='D:\ConfigMgr_OfflineImageServicing\PackageID\W7_Image.wim', MountDirectory='D:\ConfigMgr_OfflineImageServicing\PackageID\ImageMountDir', ImageFileType='WIM', Mode='ReadWrite'        SMS_OFFLINE_SERVICING_MANAGER       
    14/06/2014 14:52:49        8272 (0x2050)
    Image OS information : MajorVersionMS = 6, MinorVersionMS = 1, MajorVersionLS = 7601, MinorVersionLS = 17514        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:53:31       
    8272 (0x2050)
    Failed to find properties of file 4        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:53:31        8272 (0x2050)
    UnMounting Image (Commit Changes = 0) ...        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:53:31        8272 (0x2050)
    Completed processing image package PackageID. Status = Failed        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    Updated history for image package PackageID in the database        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    Schedule processing failed        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    Processing completed for Schedule with ID 16777237        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:04        8272 (0x2050)
    STATMSG: ID=7910 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=SCCMServer.domain SITE=Site_Code PID=8560 TID=8272 GMTDATE=Sat Jun 14 13:54:04.964 2014 ISTR0="16777237" ISTR1="" ISTR2=""
    ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0        SMS_OFFLINE_SERVICING_MANAGER       
    14/06/2014 14:54:04        8272 (0x2050)
    Schedule processing thread stopped        SMS_OFFLINE_SERVICING_MANAGER        14/06/2014 14:54:05        8272 (0x2050)
    I'm not sure what file "Failed to find properties of file 4" is referring to, whether dism.exe, an update or the image itself, but immediately after this message appears the image is unmounted. After that this message shows:
    "Completed processing image package PackageID. Status = Failed"
    As I say, there's a lot of information available re Offline Servicing but I haven't found anything with these particular messages.
    If anyone has encountered this before, I'd appreciate any information you have.
    Regards,
    John.

    Hi,
    I think file named 'NO_SMS_ON_DRIVE.SMS’ might be causing this issue. If this file is present in logical drives, then please give it a shot one more time after deleting this file from the logical drives.
    Due to this file, it might be preventing 'smsexec' service to skip the drive when looking for content. So worth a try!
    After deleting this file, you also need to restart 'smsexec' service to reflect the changes. You can also verify from below registry value & ensure that all of your logical drives (specially where SCCMContentLib directory resides) should be listed
    over there 
    'HKLM\Software\Microsoft\SMS\DP\ContentLibUsableDrives'
    Hope this will help!
    Cheers | Navdeep Sidhu

  • Offline Servicing Keeps Failing SCCM 2012 SP1

    Has any one seen this?  Below is my log file.
    The Schedule with ID 16777266 will be run now. It's run time is at Wed Jan 23 21:25:19 2013 Eastern Standard Time SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:19 PM 5468 (0x155C)
    Schedule with ID 16777266 is active SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:19 PM 5468 (0x155C)
    Schedule processing thread started. ThreadID = 0x270 (624) SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:19 PM 5468 (0x155C)
    1 Schedule(s) are marked for RunNow by the administrator SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:19 PM 624 (0x0270)
    1 Schedule(s) are scheduled to be run at this time SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:19 PM 624 (0x0270)
    Processing started for Schedule with ID 16777266 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:19 PM 624 (0x0270)
    STATMSG: ID=7900 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=B04SCCM.gstboces.org SITE=GSB PID=2780 TID=624 GMTDATE=Thu Jan 24 02:25:19.490 2013 ISTR0="16777266" ISTR1="" ISTR2=""
    ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:19 PM 624 (0x0270)
    Initialization of schedule processing succeeded SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:22 PM 624 (0x0270)
    There is an image associated with this schedule. SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:22 PM 624 (0x0270)
    Total number of individual updates to be installed is 49. SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:22 PM 624 (0x0270)
    STATMSG: ID=7903 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=B04SCCM.gstboces.org SITE=GSB PID=2780 TID=624 GMTDATE=Thu Jan 24 02:25:22.682 2013 ISTR0="GSB00118" ISTR1="" ISTR2=""
    ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:22 PM 624 (0x0270)
    Copy image ( ID GSB00118, size 6591 MB ) SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:22 PM 624 (0x0270)
    copying file from '\\b04conmgr\images\w8baseTSTX64.wim' SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:22 PM 624 (0x0270)
          to 'C:\ConfigMgr_OfflineImageServicing\GSB00118\w8baseTSTX64.wim' .... SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:25:22 PM 624 (0x0270)
    Copying (25% complete)... SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:26:18 PM 624 (0x0270)
    Copying (50% complete)... SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:27:05 PM 624 (0x0270)
    Copying (75% complete)... SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:27:49 PM 624 (0x0270)
    Copying (100% complete)... SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:28:34 PM 624 (0x0270)
    STATMSG: ID=7905 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=B04SCCM.gstboces.org SITE=GSB PID=2780 TID=624 GMTDATE=Thu Jan 24 02:28:34.068 2013 ISTR0="GSB00118" ISTR1="" ISTR2=""
    ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:28:34 PM 624 (0x0270)
    [Schedule ID 16777266] Started processing image package with ID GSB00118 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:28:34 PM 624 (0x0270)
    STATMSG: ID=7906 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=B04SCCM.gstboces.org SITE=GSB PID=2780 TID=624 GMTDATE=Thu Jan 24 02:28:34.099 2013 ISTR0="GSB00118" ISTR1="" ISTR2=""
    ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:28:34 PM 624 (0x0270)
    Image package file with ID GSB00118 contains 1 image(s) SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:28:34 PM 624 (0x0270)
    Processing image at index 1 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:28:34 PM 624 (0x0270)
    Mounting image at index 1. Image file='C:\ConfigMgr_OfflineImageServicing\GSB00118\w8baseTSTX64.wim', MountDirectory='C:\ConfigMgr_OfflineImageServicing\GSB00118\ImageMountDir', ImageFileType='WIM', Mode='ReadWrite' SMS_OFFLINE_SERVICING_MANAGER 1/23/2013
    9:28:34 PM 624 (0x0270)
    Image OS information : MajorVersionMS = 6, MinorVersionMS = 2, MajorVersionLS = 9200, MinorVersionLS = 16384 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:39:44 PM 624 (0x0270)
    Content '5df26118-a385-425f-ac7b-d6e0c26f5a7a' not found in content library on this site. Software updates should be distributed to this site. SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:39:44 PM 624 (0x0270)
    UnMounting Image (Commit Changes = 0) ... SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:39:44 PM 624 (0x0270)
    Completed processing image package GSB00118. Status = Failed SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:40 PM 624 (0x0270)
    Successfully deleted entry from database for schedule ID=16777259 Name="" assigned to ImageID=GSB00118 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:40 PM 624 (0x0270)
    Updated history for image package GSB00118 in the database SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:40 PM 624 (0x0270)
    Schedule processing failed SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:40 PM 624 (0x0270)
    Processing completed for Schedule with ID 16777266 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:40 PM 624 (0x0270)
    STATMSG: ID=7910 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=B04SCCM.gstboces.org SITE=GSB PID=2780 TID=624 GMTDATE=Thu Jan 24 02:40:40.929 2013 ISTR0="16777266" ISTR1="" ISTR2=""
    ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:40 PM 624 (0x0270)
    Deleting
    \\?\C:\ConfigMgr_OfflineImageServicing\GSB000A2\ImageMountDir\Program Files\Common Files\SpeechEngines\Microsoft\TTS20\en-US\enu-dsk, FAILED, Win32 Error = 5 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:40 PM 624 (0x0270)
    Failed to remove the staging folder C:\ConfigMgr_OfflineImageServicing, GLE = 5 SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:41 PM 624 (0x0270)
    Schedule processing thread stopped SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:41 PM 624 (0x0270)
    Checking if there are schedule(s) which need to be run at this time. SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:40:41 PM 5468 (0x155C)
    This line in the log seems to be where the process errors out.
    Content '5df26118-a385-425f-ac7b-d6e0c26f5a7a' not found in content library on this site. Software updates should be distributed to this site. SMS_OFFLINE_SERVICING_MANAGER 1/23/2013 9:39:44 PM 624 (0x0270)
    I have looked and this update is deployed and located on the sites distribution points.  I am stumped.  Anyone else see this before.
    Thanks

    Hi yannara
    you're right about getting this error while offline patching my image.
    what I don't understand is the steps to find the KB number?
    on my Software Updates pane the only column with guid I found is Update Unique ID and its guid does not match in anyway from the guids I see in the offlineservicing.log file
    just to be clear, I update Win8.1 x64 image and I created a search criteria with all Windows 8.1 updates and downloaded them to a package on my site.
    Applicability State = INSTALLED, Update Binary = E:\ConfigMgr_OfflineImageServicing\5282016d-a4eb-41fc-97d8-0a5a00e136cc\windows8.1-kb3008242-x64.cab. SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 2:57:13 PM 292 (0x0124)
    No need to apply this update binary since it's already installed. SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 2:57:13 PM 292 (0x0124)
    Content '4e6dbf75-645e-4387-85dc-27bd6db32227' not found in content library on this site. Software updates should be distributed to this site. SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 2:57:13 PM 292 (0x0124)
    UnMounting Image (Commit Changes = 0) ... SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 2:57:13 PM 292 (0x0124)
    Completed processing image package ILP000AB. Status = Failed SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 3:01:57 PM 292 (0x0124)
    Successfully deleted entry from database for schedule ID=50331650 Name="" assigned to ImageID=ILP000AB SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 3:01:57 PM 292 (0x0124)
    Updated history for image package ILP000AB in the database SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 3:01:57 PM 292 (0x0124)
    Schedule processing failed SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 3:01:57 PM 292 (0x0124)
    Processing completed for Schedule with ID 50331658 SMS_OFFLINE_SERVICING_MANAGER 2/18/2015 3:01:57 PM 292 (0x0124)
    notice that my problem is not with KB3008242. it is the one after - which I don't get its number. only the GUID.
    so apparently, I have no way to find this one annoying update from 140 available updates.
    I hope that MS solution is not to deselect  each time updates until I will find it manually
    any solutions please?
    Tamir Levy

  • Passing dynamic cmdline arguments to app deployed by JWS offline

    Hi,
    i want to deploy my java application through JWS for the benefit of autoupdating.
    my app, when started, needs a cmdline argument that the user supplies. It's a filename, so it can be anything.
    I cannot use the <argument> tag in JNLP file to specify the filename because it's not static.
    I saw some postings of using JSP on the server side to dynamically put the value into the JNLP file, but the thing is I don't want the app to have to go through the web server to get the dynamic arg - what if the server is offline?
    Any solutions?
    thanks,
    LMY

    Hi,
    i want to deploy my java application through JWS for
    the benefit of autoupdating.
    my app, when started, needs a cmdline argument that
    the user supplies. It's a filename, so it can be
    anything.
    I cannot use the <argument> tag in JNLP file to
    specify the filename because it's not static.
    I saw some postings of using JSP on the server side to
    dynamically put the value into the JNLP file, but the
    thing is I don't want the app to have to go through
    the web server to get the dynamic arg - what if the
    server is offline?
    Any solutions?
    thanks,
    LMYTry starting Webstart and your app not by using javaws.exe, but instead by appending your desired args to something like this and execute:
    java.exe "-Djnlpx.home=C:\Programme\Java Web Start" "-Djnlpx.heapsize=NULL,NULL" "-Djnlpx.jvm=C:\Programme\JavaSoft\JRE\1.3.1\bin\javaw.exe" "-Djava.security.policy=file:C:\Programme\Java Web Start/javaws.policy" "-DtrustProxy=true" -classpath "C:\Programme\Java Web Start\javaws.jar;C:\Programme\Java Web Start\javaws-l10n.jar" com.sun.javaws.Main "file:C:/Dokumente und Einstellungen/AJans/isa.jnlp"
    Of course you have to change the given args to your preferences.
    The given args before the com.sun.javaws.Main are obligatory.
    Hope this helps,
    Arne

  • Gemini JPA / EclipseLink Problem in e4 RCP Application

    I'm not completely certain where my issue is coming from i.e. EclipseLink or Gemini JPA, so I'm hoping that's the first thing you can point me to.
    When my application starts up I'm getting this on the console:
    [EL Config]: metadata: 2015-07-27 13:26:03.641--ServerSession(675233602)--Thread(Thread[Refresh Thread: Equinox Container: 00913eb3-9d34-0015-1b66-dbde7e24aedc,5,main])--The alias name for the entity class [class <snip>] is being defaulted to: <snip>.
    WARNING: DataSourceFactory service for com.microsoft.sqlserver.jdbc.SQLServerDriver was not found. EMF service not registered.
    And when I go to use JPA in the application, I get this:
    *** FATAL ERROR *** Could not create data source for com.microsoft.sqlserver.jdbc.SQLServerDriver
    The lines that start with [EL Config] suggest (to me at least) that JPA is starting up, and is reading my persistence.xml file.
    I just switched the application from Gemini JPA 1.1.0.RELEASE and EclipseLink 2.4 to Gemini JPA 1.2.0.M01 and EclipseLink 2.6 in an effort to fix the issue, but it hasn't helped. (To be clear, the issue did occur with the release Gemini JPA, and is still occurring with the newer Gemini JPA).
    I've attached my persistence.xml file (redacted...), since I can't inline it here.
    Should I be looking in Gemini or in EclipseLink for the solution to this issue?
    I've tried Googling the issue, but don't get useful results.
    I'm less concerned for the first issue (the WARNING), and more concerned for the second issue.
    My next step is to set the individual connection properties, and drop the URL, maybe that will work.
    *edit* I realized I should have mentioned that the SQL Server JDBC driver jar is in the lib folder of the project, and should be set to export with the project. lib is also declared as part of the bundle class path in the manifest file.
    Thank you for taking the time to read my post.
    Dominic Hilsbos

    After changing my persistence.xml, I got a ClassNotFoundException, which told me that EclipseLink couldn't find my jdbc driver.
    I found my error, it was in the Bundle-Classpath.
    I had: .,lib/
    What I needed was; .,lib/sqljdbc41.jar
    Thank you to all who looked at this.
    Dominic Hilsbos

  • JWS offline launch

    I create my jnlp file in an dynamic manner (on the fly) using templates. This prevents me from issuing a "href=" value, as i dont have a static jnlp pre-created.
    I would like to create myapp icon/shortcut on my the users desktop so that they can access JWS cached version of myapp while offline.I have seen a few posts in the forum related to my issue but looks like there is no workaround posted for the concern. Any pointers??
    thanks
    VS

    using java web start 1.5 you can do this. still leave off the href element. now add shortcut element to the jnlp file:
    <shortcut online="false">
    <menu submenu="myapp"/>
    <desktop/>
    </shortcut>
    /Andy

  • JPA / Eclipselink CursoredStream Error

    Hi there!
    I have to do a database request on an Oracle XE database which returns about 1 million entities. As it does not make sense to load all of them to memory, I chose a Cursored Stream to do the work.
    My code:
                    /* count nbo entities */
                    ReadAllQuery query = new ReadAllQuery(Entity.class);
                    query.useCursoredStream(5, NBO_ENTITIES_TO_BE_READ_PER_CHUNK);
                    /* disable caching */
                    query.doNotCacheQueryResults();
                    CursoredStream stream =
                            (CursoredStream) ((EntityManagerImpl) _entityManager).getSession()
                                    .executeQuery(query);
                     * run through cursor
                    while (!stream.atEnd()) {
                        List<Entity> entities = null;
                        try{
                        entities = stream.read(NBO_ENTITIES_TO_BE_READ_PER_CHUNK);
                        }catch(Exception e ){
                            e.printStackTrace();
                        doSomeWork( entities);
                        stream.releasePrevious();
                    stream.close();The statement does fine with the first loads of data. However, while reading the last chunk of data, the following error happens:
    xception Description: An attempt to read beyond the end of stream occurred.
    Query: ReadAllQuery(referenceClass=Entity)
         at org.eclipse.persistence.exceptions.QueryException.readBeyondStream(QueryException.java:937)
         at org.eclipse.persistence.queries.CursoredStream.copy(CursoredStream.java:117)
         at org.eclipse.persistence.queries.CursoredStream.read(CursoredStream.java:327)
         at de.optware.dataloader.service.LieferantenstandortListService$1.run(LieferantenstandortListService.java:91)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)I am using eclipselink 1.1.2 and the ojdbc14 jdbc driver.
    Any ideas?
    Edited by: user12188472 on 05.05.2011 01:40
    Edited by: user12188472 on 05.05.2011 01:44

    >
              tx.commit();
         if(em.isOpen())
              em.flush();
         em.clear();
         }catch (Exception e) {
              e.printStackTrace();
    sry my bad ... em.flush() is the culprit

  • Jpa query fail! :(

    Hello! I have a simple problem (I think and hope!), I have the next query with subquery:
    select pfs from Person pfs where ...... and pfs NOT IN (select dae.socisPersons.person from DadesAnualsEntitat dae where ......)
    DadesAnualsEntitat have a Set<PersonaFisicaSoci> named "socisPersons" and PersonaFisicaSoci has a Person named "person".
    I don't know how to do because the correct would be 'NOT IN (select dae.socisPersones from DadesAnualsEntitat dae where...)' but they're incompatible objects. There are too much navigations, I know. Some idea? sorry for my poor english, thanks a lot!

    Try comparing on the Id instead of the object,
    i.e.
    pfs.id not in (select dae.socisPersons.person.id from...
    James : http://www.eclipselink.org

  • Offline data migration fails for BLOB field from MySQL 5.0 to 11g

    I tried to use standalone Data Migration several years ago to move a database from MySQL to Oracle. At that time it was unable to migrate blob fields. I am trying again, hoping this issue might have been fixed in the mean time. That does not appear to be the case. The rows in question have a single BLOB field (it is a binary encoding of a serialized Java object, containing on the order of 1-2K bytes, a mixture of plain text and a small amount of non-ASCII data which is presumably part of the structure of the Java object). The mysqldump appears to correctly store the data, surrounded by the expected <EOFD> and <EORD> separators. The data as imported consists of a small (roughly 1-200) ASCII characters, apparently hex encoded, because if I do a hex dump of the mysqldump I can recognized some of the character pairs that appear in the blob field after import. However, they are apparently flipped within the word or otherwise displaced from each other (although both source and destinations machines are x86 family), and the imported record stops long before all the data is encoded.
    For example, here is a portion of the record as imported:
    ACED0005737200136A6
    and here is a hex dump of the input
    0000000 3633 3838 3037 3c39 4f45 4446 303e 3131
    0000020 3036 3830 3836 453c 464f 3e44 312d 453c
    0000040 464f 3e44 6e49 7473 7469 7475 6f69 446e
    0000060 7461 3c61 4f45 4446 ac3e 00ed 7305 0072
    0000100 6a13 7661 2e61 7475 6c69 482e 7361 7468
    0000120 6261 656c bb13 250f 4a21 b8e4 0003 4602
    0000140 0a00 6f6c 6461 6146 7463 726f 0049 7409
    0000160 7268 7365 6f68 646c 7078 403f 0000 0000
    AC ED appears in the 5th and 6th word of the 4th line, 00 05 in the 6th and 7th words, etc.
    I see explicit references to using hex encoding for MS SQL and other source DB's, but not for mysql.
    I suspect the encoder is hitting some character within the binary data that is aborting the encoding process, because so far the records I've looked at contain the same data (roughly 150 characters) for every record, and when I look at the binary input, it appears to be part of the Java object structure which may repeat for every record.
    Here is the ctl code:
    load data
    infile 'user_data_ext.txt' "str '<EORD>'"
    into table userinfo.user_data_ext
    fields terminated by '<EOFD>'
    trailing nullcols
    internal_id NULLIF internal_id = 'NULL',
    rt_number "DECODE(:rt_number, 'NULL', NULL, NULL, ' ', :rt_number)",
    member_number "DECODE(:member_number, 'NULL', NULL, NULL, ' ', :member_number)",
    object_type "DECODE(:object_type, 'NULL', NULL, NULL, ' ', :object_type)",
    object_data CHAR(2000000) NULLIF object_data = 'NULL'
    )

    It looks like the data is actually being converted correctly. What threw me off was the fact that the mysql client displays the actual blob bytes, while sqlplus automatically converts them to hex for display, but only shows about 2 lines of the hex data. When I check field lengths they are correct.

  • Offline Web Start app fails to launch with Java 7 Update 25

    So it seems that another issue with Java 7 update 25 and Web Start applications is that a signed application will not launch when offline.
    It fails when attempting to check the revocation status of the signing certificate.
    Anyone have any ideas to get around this exception aside from uninstalling update 25?
    Thanks!
    com.sun.deploy.security.RevocationChecker$StatusUnknownException: java.net.UnknownHostException: ocsp.usertrust.com
                   at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source)
                   at com.sun.deploy.security.RevocationChecker.check(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.checkRevocationStatus(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.getValidationState(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
                   at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
                   at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
                   at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
                   at com.sun.javaws.Launcher.prepareResources(Unknown Source)
                   at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
                   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                   at com.sun.javaws.Launcher.launch(Unknown Source)
                   at com.sun.javaws.Main.launchApp(Unknown Source)
                   at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
                   at com.sun.javaws.Main.access$000(Unknown Source)
                   at com.sun.javaws.Main$1.run(Unknown Source)
                   at java.lang.Thread.run(Unknown Source)
                   Suppressed: com.sun.deploy.security.RevocationChecker$StatusUnknownException
                                  at com.sun.deploy.security.RevocationChecker.checkCRLs(Unknown Source)
                                  ... 18 more
    Caused by: java.net.UnknownHostException: ocsp.usertrust.com
                   at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
                   at java.net.PlainSocketImpl.connect(Unknown Source)
                   at java.net.SocksSocketImpl.connect(Unknown Source)
                   at java.net.Socket.connect(Unknown Source)
                   at sun.net.NetworkClient.doConnect(Unknown Source)
                   at sun.net.www.http.HttpClient.openServer(Unknown Source)
                   at sun.net.www.http.HttpClient.openServer(Unknown Source)
                   at sun.net.www.http.HttpClient.<init>(Unknown Source)
                   at sun.net.www.http.HttpClient.New(Unknown Source)
                   at sun.net.www.http.HttpClient.New(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
                   at sun.security.provider.certpath.OCSP.check(Unknown Source)
                   at sun.security.provider.certpath.OCSP.check(Unknown Source)
                   at sun.security.provider.certpath.OCSP.check(Unknown Source)
                   ... 19 more

    Disregard. I found that the user had changed the java security settings to "Very High" in addition to upgrading to update 25.

  • Offline backup failing when scheduled using DB13

    Hi,
               We have done our backup schedule of our BI 7 system running on AIX 5.3 and Oracle 10.2 using DB13.The activities like online backup and datbase check is executing correctly but offline backup is failing with status unknown.
    If i check in sm37 for the DBA job offline backup is showing status completed successfully but in brbackup logs there is no log for the offline backup activity.
    Kindly provide your suggestion on how i can resolve this issue.

    Hi Ammey,
                   Thanks for your reply.
    When I trigger the backup directly from brtools offline backup is happening successfully.The issue is happening only for the db13 scheduled offline backup.The same thing happened for Update statistics but check db is executed.
    So what has to be checked in backint settings pls provide you suggestion.
    rgds,
    vinayak

  • Offline Synchronization Failed message

    I use my iPhone at work where we have an Exchange 2003 SBS server. My account on it has ActiveSync enabled and I used to be able to get emails on my iPhone but now I'm seeing in my Outlook Sync folder the messages that : Microsoft Excchange offline address book failed. What can I do?

    The version of SCE is 6.0.1018.0.  It's straight from the CD that was distributed at the seminar.  It's not a new Win2k3 install.  It's an existing server.  Should it only be installed on a new, fresh server installation?
    The eventviewer error shows event 10022.
    There is an error code in WindowsUpdate.log.  It is: 0x80072EFD
    WSUS 3.0 shows:
    "WebException: The remote name could not be resolved: 'test.update.microsoft.com' at System.Net.HttpWebRequest.GetRequestStream()
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.UpdateServices.ServerSyncWebServices.ServerSync.ServerSyncProxy.GetAuthConfig()
       at Microsoft.UpdateServices.ServerSync.ServerSyncLib.InternetGetServerAuthConfig(ServerSyncProxy proxy, WebServiceCommunicationHelper webServiceHelper)
       at Microsoft.UpdateServices.ServerSync.ServerSyncLib.Authenticate(AuthorizationManager authorizationManager, Boolean checkExpiration, ServerSyncProxy proxy, Cookie cookie, WebServiceCommunicationHelper webServiceHelper)
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.SyncConfigUpdatesFromUSS()
       at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)".
    I don't understand why it's going to "test.update.microsoft.com".  Maybe, if I could send it to a functioning server, that would help.  I'll try downloading the newer version, and see if that helps.
    Thanks, so far.
    Kevin

  • Receipt Status is not consistent when capture /settlement fails

    Hi,
    This is regarding Credit Card Receipts .
    When oracle standard concurrent program "Submit Offline Transactions" is failing ,some receipts are still in REMITTED state and some receipts are going back to Confirmed State.Eventhough the failure reason/error code is same for both the receipts.
    Submit Offline Transactions Program is the one which we will do settlement or Capture of the Receipts .
    I am not able to find it out reason/why receipt will remain in Remitted state and in which case /reason receipt will go back to Confirmed State .
    If anybody has faced the similar issue please help me.
    Thanks in Advance
    Surfraz

    Not sure if this applies to you, but check the following thread that has the reference to OSS Note 833603 - EDI: Goods receipt for stock transport order and talks about Goods receipt for Inbound delivery... This note talks about entering the delivery document number in the idoc to ensure that Goods receipt is part of the inbound delivery flow. Is goods receipt showing up in the document flow for the inbound delivery? 
    Goods Receipt in PO AND Message Flow Update in Inb. Delivery using WMMBXY

Maybe you are looking for

  • Can't get firefox to work for more than a week. won't pull up any website - IE works great

    I have been having problems with Firefox for some time now. I have a HP running a AMD Athlon II X4 (Windows 7). Only major software is PC Tools PC Doctor, Skype, and other MS Office software. Firefox will simply stop loading webpages and just sit the

  • Visual C++ error, CS5

    I have been getting a Visual C++ error when I press the print button, sometimes.  No info, just a window stating a Visual C++ error and an OK to close CS5.  Have to reboot the PC to start CS5 again.  My only solution is in sert the CS5 CD and re-inst

  • TS2972 Music did not finish downloading

    My music that was being transfered from an old computer didn't finsih downloading all the way into my new library and a new computer. It shows that it is in my library but to the left of it, there is a circle. When you hover over that circle it shows

  • How to extract a sub string in SQL

    Hi, I have two columns "Project Name" and "Flag".  Now i want to find out all the project names which contain a particular substring in it, like say - "SRM" and update the "Flag" column to value 1 for all those projects. Can someone please help me wi

  • Problems with artwork in coverflow.

    First I already read the article in the FAQ section, and it still didn't help me. I have multiple artworks for the same albums. If its a single disc CD I'll have two artworks, one for the first song, and one for all the rest. This is the main problem