Restart java application by itself after a while
Hi,
I have a Java application that runs on a Time clock (Hand held device). This app. has to be up and run all the times 24/7. After few days the app goes to hung stage, where we need to restart it manually. Is there a way, I can code within the app. itself, that restarts every night or so ....
Appreciate your helps.
Thanks
Sath
tjacobs01,
thanks for your response. i should withdraw the word (hand held). this is an external device but connected to the network (ethernet). Hence the app. is started via a shell script and the app. runs on the device. I will work on something with timer or look into the shell script to accomodate this ...
Similar Messages
-
Emctl shutting down by itself after a while
I just got 10.1.0.3 installed and a 9i database converted. I can get the Database Control started (emctl start dbconsole) and use it, however, after a while emctl shuts down by itself. Below is what occurs in emagent.trc just before emctl shuts itself down - apparantly gracefully. All help appreciated
Kirk
2005-02-11 16:18:05 Thread-1827 ERROR http: 11: snmehl_read: error on read: A connection with a remote socket was reset by that socket. (error = 73)
2005-02-11 16:18:05 Thread-1827 ERROR upload: FxferSend: HTTP Error=-1 reading request response from: http://serverxxx.university.edu:5500/em/upload/
2005-02-11 16:18:05 Thread-1827 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1702 ERROR http: 15: snmehl_read: error on read: A connection with a remote socket was reset by that socket. (error = 73)
2005-02-11 16:18:05 Thread-1702 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
2005-02-11 16:18:05 Thread-1827 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1827 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1827 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1702 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1702 ERROR pingManager: nmepm_pingReposURL: Cannot connect to http://serverxxx.university.edu:5500/em/upload/: retStatus=-32
2005-02-11 16:18:05 Thread-1827 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1827 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1827 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1827 ERROR upload: 3 Failures in a row for B0000197.xml, we give up
2005-02-11 16:18:05 Thread-1827 ERROR upload: Error in uploadXMLFiles. Trying again in 123.00 seconds.
2005-02-11 16:18:05 Thread-1717 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1717 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1717 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1717 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1717 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1717 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1717 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1717 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1717 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1717 ERROR upload: 3 Failures in a row for B0000197.xml, we give up
2005-02-11 16:18:05 Thread-1717 ERROR upload: Error in uploadXMLFiles. Trying again in 147.00 seconds.
2005-02-11 16:18:05 Thread-1974 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1974 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1974 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1974 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1974 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1974 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1974 WARN http: snmehl_connect: connect failed to (serverxxx.university.edu:5500): A remote host refused an attempted connect operation. (error = 79)
2005-02-11 16:18:05 Thread-1974 ERROR upload: FxferSend: Cannot connect to: http://serverxxx.university.edu:5500/em/upload/. retStatus=-32
2005-02-11 16:18:05 Thread-1974 ERROR upload: Failed to upload file B0000197.xml, ret = -2
2005-02-11 16:18:05 Thread-1974 ERROR upload: 3 Failures in a row for B0000197.xml, we give up
2005-02-11 16:18:05 Thread-1974 ERROR upload: Error in uploadXMLFiles. Trying again in 176.00 seconds.
2005-02-11 16:18:07 Thread-515 WARN http: 6,-1: nmehl_httpListener: signaled to exit from emctlSathanga wrote:
Hi,
I have a Java application that runs on a Time clock (Hand held device). This app. has to be up and run all the times 24/7. After few days the app goes to hung stage, where we need to restart it manually. Is there a way, I can code within the app. itself, that restarts every night or so ....
I searched through this forum earlier and did not get an answer. Appreciate your helps.
Thanks
SathThere is but a more important question is why does it quit every few days. Solve that problem and you'll be more ahead than with the solution you asked or originally.
You can put the program on a timer and have ti launch every so often; you'll have to have it check to see if it's in memory when you do and if it is, then close the launcher and just let the previous running instance continue. -
Java application updating itself
Hi,
I'm making update manager program for my Java application.It downloads updated jarfile from the net and that file should replace the file being currently used.
Could someone give a hint what would be the best way to modify the jar-file that is currently being used by virtual machine (or is there any).
The optimal way would be that the code in the original jar file could somehow change itself (and then restart etc) but failing that the second best alternative would be making a second java -aplication which does the updating. In that case I'd need an advice how to start java application from another application in device indepentend way (prefereably not with Runtime.exec().
Thanks in advance.
r2The best way would be to use Java Web Start, which does all of that, instead of writing your own.
-
Hi,
I am busy making a gui and I run in to a problem, because I have an option in the settings menu. The application is fullscreen and therefore we have an option in the settings menu made with radiobuttons to choose if you want the application to run in fullscreen mode of windowed mode. Now the thing is people always start the application in fullscreen even if they had chosen the windowed mode before. so when people select the windowed mode I would like to restart the application (onl this time NOT fullscreen).
Only my problem is that I dont know how I can restart the gui without doing it manualy. is there some code for restarting?Why not have the radio buttons call methods, say
fullScreenButton.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
if(fullScreenButton.isSelected())
frame.dispose();
new MyWindow.setMode(this.FULL_SCREEN_MODE);
});The main thing here is to atach an ID with the buttons. On clicking, dispose the frame and reload a new one with the new ID -
AS Java applications not starting after patching from 2004s SPS10 to SPS11
Hi folks,
after patching our NetWeaver 2004s from SPS10 to SPS11 and the Kernel from 7.00.83.0 to 7.00.95.0, the applications on the AS Java do not start up automatically any more.
Under the following URLs, the same error is shown:
http://<fully qualified host name>:51000/
http://<fully qualified host name>:51000/nwa
http://<fully qualified host name>:51000/sap/monitoring/SystemInfo
http://<fully qualified host name>:51000/useradmin/
http://<fully qualified host name>:51000/wsnavigator
http://<fully qualified host name>:51000/uddiclient
503 Service Unavailable
SAP J2EE Engine/7.00
Application stopped.
Details: You have requested an application that is currently stopped
http://<fully qualified host name>:51000/webdynpro/welcome/Welcome.jsp
itself works, the two links Content Administrator and Web Dynpro Console both lead to the same 503 error described above
On http://<fully qualified host name>:51000/irj, the error message is different:
com.sap.engine.services.deploy.container.ApplicationInManualStartUpException:
Application sap.com/com.sap.portal.fpn.accessservice cannot be started because is in MANUAL start-up mode..
Exception id: 09:33_09/05/07_0003_102709250
See the details for the exception ID in the log file
In std_server0.out we have the following entries, right after the list of all services that were started:
ServiceManager started for 39904 ms.
Framework started for 46720 ms.
SAP J2EE Engine Version 7.00 PatchLevel is running!
PatchLevel January 31, 2007 18:37 GMT
May 9, 2007 9:40:19 AM com.sap.portal.prt.sapj2ee.error [SAPEngine_Application_Thread[impl:3]_3] Fatal:
The last line with com.sap.portal.prt.sapj2ee.error is listed another 131 times, and there is also the following message:
### Excluding compile: com.sapportals.portal.prt.jndisupport.util.AbstractHierarchicalContext::lookup
We can connect to the system using Visual Administrator. Under Server->Services->Deploy, most applications are not running. It is possible to start a few applications manually, others however do not start showing different exceptions.
We have AS ABAP and AS Java installed, as well as BI, DI, EP and EPC. AS ABAP seems to be running fine.
We have also noticed the following deviations in JSPM:
BC_FES_IGS is Release 7.00 SP Level 7.0
EP_BUILDT is Release 7.00 SP Level 10.0
SAP_BUILDT is Release 7.00 SP Level 0.0
All other components except for the Kernel are Release 7.00 SP Level 11.0 or 11.2
What could be wrong, and what can we do to solve it?
Best regards,
Robert SchulteThanks for your response, usha rani
1. We already tried that, unfortunately, it does not help
2. We checked the kernel version thoroughly after you suggested it, everything seems to be fine. We had a Unicode kernel before, and we still have one.
3. safemode is already set to NO
4. J2EE's default.trace is full of exceptions, but none of them is pointing me into a helpful direction.
Perhaps the exceptions mean more to someone else:
java.lang.Exception: Exception loading and instanciating sub-manager:
com.sap.caf.km.repositorymanager.CAFSecurityManager
(java.lang.ClassNotFoundException: com.sap.caf.km.repositorymanager.CAFSecurityManager)
com.sapportals.wcm.repository.runtime.CmConfigurationProvider#
sap.com/irj#com.sapportals.wcm.repository.runtime.CmConfigurationProvider.Component
<SetRoomIdForDiscussionObjects> will not be available.
Failed to load class
<com.sap.netweaver.coll.room.impl.filter.DiscussionSetRoomIdPropertyFilterManager>
#J2EE_GUEST#0####1e820b50fe4111db8e780013724175b4#SAPEngine_Application_Thread[impl:3]_22
##0#0#Error##Plain###
java.lang.ClassNotFoundException:
com.sap.netweaver.coll.room.impl.filter.DiscussionSetRoomIdPropertyFilterManager
com.sap.portal.prt.runtime.broker#sap.com/irj#
com.sap.portal.prt.runtime.broker#J2EE_GUEST#0####
1e820b50fe4111db8e780013724175b4#SAPEngine_Application_Thread[impl:3]_22##0#0#
Error#1#/System/Server#Java###
[PortalServiceItem.startServices] service initialisation failed:
tc.eu.odi.conn.uwl|OdiBridgeService
[EXCEPTION]
{0}#1#com.sapportals.portal.prt.core.broker.PortalServiceInstantiationException:
Could not instantiate implementation class com.sap.tc.eu.odi.conn.uwl.OdiBridgeService
of Portal Service tc.eu.odi.conn.uwl|OdiBridgeService because: could not load the service
com.sap.engine.services.deploy.container.ApplicationInManualStartUpException:
Application sap.com/com.sap.portal.fpn.accessservice cannot be started
because is in MANUAL start-up mode.
There are many more entries in default.trace. -
How to restart java application
Hi ,
I have an application which have some parameters ( These parameters are configured in APP )
I want if the config values changes then our application should be restarted .
How can I do it programmitically
Thanks and regards
AnshumanLet your program detect the changes and exit with a defined return code.
If the running script detects the Java program's having stopped with this return code,
it restarts the program. -
How to restart Java Application from state when system crash
I want to know about the API that provide mechanism to save your program state peroidically or any specific task completed of application and if system crash and next time when application restart it should be started from previous state.
I required solution urgently plz. replay as soon as possiblewrite it yourself.
Serializable Interface, FileOutputStream, ObjectOutputStream ... that'd be a start for you. -
VOD - application goes down after a while (only some instances)
Hello Guys,
I have a simple VOD application running on FMS 3.5.5 which I need to stream continuously but I'm unable to identify the correct configuration to do so. I removed as much limit details as I could from those XML file: Server.xml, Application.xml and VHost.xml.
Basically I have arround 15 different streams but all of sudden some of them, NOT ALL, goes down with no explanation (as I could see).
As per logs, there is no much details but "application unloaded".
Can someone pls help me to identify what else needs to be changed in order to have those stream playing continuously? Usually they went down after some hours in idle state. But I'm not sure whether it's related to CPU/Memory usage. My server has 8GB of memory, and when I start playing all those stream the memory goes down till 52mb free (50mb to 53mb usually). "All" memory is allocated to cache, and it seems there is no problem with that.
Server.xml
<Root>
<Server>
<NetworkingIPv6 enable="false" />
<CrossDomainPath></CrossDomainPath>
<Plugins>
<UserDefined>
<UserKey1>
This data can be retrieved by FMS plug-in.
Please look at Auth Adaptor sample for details.
</UserKey1>
<UserKey2>
This data can be retrieved by FMS plug-in.
Please look at Auth Adaptor sample for details.
</UserKey2>
</UserDefined>
<FilePlugin enabled="true">
<MaxNumberOfRequests>0</MaxNumberOfRequests>
<Content type="Streams">true</Content>
<Content type="SWF">false</Content>
</FilePlugin>
</Plugins>
<SSL>
<SSLRandomSeed>16</SSLRandomSeed>
<SSLSessionCacheGC>5</SSLSessionCacheGC>
<SSLClientCtx>
<SSLVerifyCertificate>true</SSLVerifyCertificate>
<SSLCACertificatePath></SSLCACertificatePath>
<SSLCACertificateFile></SSLCACertificateFile>
<SSLVerifyDepth>9</SSLVerifyDepth>
<SSLCipherSuite>ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH</SSLCipherSuite>
</SSLClientCtx>
</SSL>
<Process>
<UID>${SERVER.PROCESS_UID}</UID>
<GID>${SERVER.PROCESS_GID}</GID>
</Process>
<Mask>017</Mask>
<LicenseInfo>${SERVER.LICENSEINFO}</LicenseInfo>
<LicenseInfoEx></LicenseInfoEx>
<ReadBufferSize>4096</ReadBufferSize>
<AdminServer>
<CrossDomainPath></CrossDomainPath>
<RTMP>
<RTMPE enabled="true"></RTMPE>
</RTMP>
<HostPort>${SERVER.ADMINSERVER_HOSTPORT}</HostPort>
<IpcHostPort>localhost:11110</IpcHostPort>
<SocketGC>60</SocketGC>
<Process>
<UID>${SERVER.PROCESS_UID}</UID>
<GID>${SERVER.PROCESS_GID}</GID>
</Process>
<AdminElem>false</AdminElem>
<Allow>all</Allow>
<Deny></Deny>
<Order>Allow,Deny</Order>
</AdminServer>
<AutoCloseIdleClients enable="false">
<CheckInterval>-1</CheckInterval>
<MaxIdleTime>-1</MaxIdleTime>
</AutoCloseIdleClients>
<ResourceLimits>
<FLVCachePurge>60</FLVCachePurge>
<FLVCache>
<FileCheckInterval>120</FileCheckInterval>
<MaxSize>${SERVER.FLVCACHE_MAXSIZE}</MaxSize>
<MaxKeyframeCacheSize>0</MaxKeyframeCacheSize>
</FLVCache>
<RecBuffer>
<MaxFlushTime>5</MaxFlushTime>
<MaxFlushSize>256</MaxFlushSize>
<AllowedVideoLag></AllowedVideoLag>
<MaxSize>512000</MaxSize>
<MaxTimestampSkew>-1</MaxTimestampSkew>
</RecBuffer>
<CPUMonitor>1</CPUMonitor>
<ThreadPoolGC>20</ThreadPoolGC>
<MsgPoolGC>60</MsgPoolGC>
<ApplicationGC>-1</ApplicationGC>
<FLVCacheSize>10</FLVCacheSize>
<SocketGC>60</SocketGC>
<ProcVMSizeMonitorInterval>60</ProcVMSizeMonitorInterval>
<ProcVMSizeWarn>1800</ProcVMSizeWarn>
<ProcVMSizeNominal>1600</ProcVMSizeNominal>
<SSLSessionCacheGC>5</SSLSessionCacheGC>
<Connector>
<HTTP>
<MinConnectionThreads>0</MinConnectionThreads>
<MaxConnectionThreads>0</MaxConnectionThreads>
<MaxConnectionQueueSize>-1</MaxConnectionQueueSize>
<HandleCache>
<MaxSize>100</MaxSize>
<IdleTime>30</IdleTime>
<TrimSize>0.2</TrimSize>
<GCInterval>60</GCInterval>
</HandleCache>
</HTTP>
<RTMP>
<MinIOThreads>0</MinIOThreads>
<MaxIOThreads>32</MaxIOThreads>
<NumCRThreads>0</NumCRThreads>
<MinConnectionThreads>0</MinConnectionThreads>
<MaxConnectionThreads>0</MaxConnectionThreads>
<MaxConnectionQueueSize>-1</MaxConnectionQueueSize>
</RTMP>
</Connector>
<Protocol>
<RTMP>
<Edge>
<MinIOThreads>0</MinIOThreads>
<MaxIOThreads>0</MaxIOThreads>
<SocketTableSize>-1</SocketTableSize>
<SocketOverflowBuckets>-1</SocketOverflowBuckets>
<MaxConnectionRate>-1</MaxConnectionRate>
</Edge>
<Core>
<MinIOThreads>0</MinIOThreads>
<MaxIOThreads>0</MaxIOThreads>
<SocketTableSize>-1</SocketTableSize>
<SocketOverflowBuckets>-1</SocketOverflowBuckets>
</Core>
<Admin>
<MinIOThreads>0</MinIOThreads>
<MaxIOThreads>0</MaxIOThreads>
<SocketTableSize>-1</SocketTableSize>
<SocketOverflowBuckets>-1</SocketOverflowBuckets>
</Admin>
<SocketSndBuf>0</SocketSndBuf>
<SocketRcvBuf>0</SocketRcvBuf>
<DiffServ>0</DiffServ>
<DiffServMask>0</DiffServMask>
</RTMP>
<ECCP>
<MinIOThreads>0</MinIOThreads>
<MaxIOThreads>0</MaxIOThreads>
<SocketTableSize>-1</SocketTableSize>
<SocketOverflowBuckets>-1</SocketOverflowBuckets>
<CoreTimeout>30</CoreTimeout>
</ECCP>
<ACCP>
<MinIOThreads>0</MinIOThreads>
<MaxIOThreads>0</MaxIOThreads>
<SocketTableSize>-1</SocketTableSize>
<SocketOverflowBuckets>-1</SocketOverflowBuckets>
</ACCP>
</Protocol>
<IPCQueues>
<GlobalQueue>
<HeapSize>2048</HeapSize>
<MaxQueueSize>10</MaxQueueSize>
</GlobalQueue>
<EdgeCore>
<HeapSize>1024</HeapSize>
<MaxQueueSize>10</MaxQueueSize>
</EdgeCore>
<Services>
<HeapSize>2048</HeapSize>
<MaxQueueSize>10</MaxQueueSize>
</Services>
</IPCQueues>
<MessageCache enable="false">
<MaxCacheUnits>4096</MaxCacheUnits>
<MaxCacheSize>100</MaxCacheSize>
<MaxUnitSize>16</MaxUnitSize>
<FreeRatio>0.125</FreeRatio>
<GlobalRatio>0.4</GlobalRatio>
<MaxAge>1000000</MaxAge>
<UpdateInterval>1024</UpdateInterval>
<FreeMemRatio>0.5</FreeMemRatio>
</MessageCache>
<SmallMemPool enable="false">
<MaxCacheUnits>4096</MaxCacheUnits>
<MaxCacheSize>100</MaxCacheSize>
<MaxUnitSize>16</MaxUnitSize>
<FreeRatio>0.125</FreeRatio>
<GlobalRatio>0.4</GlobalRatio>
<MaxAge>1000000</MaxAge>
<UpdateInterval>1024</UpdateInterval>
<FreeMemRatio>0.5</FreeMemRatio>
</SmallMemPool>
<LargeMemPool enable="false">
<MaxCacheUnits>4096</MaxCacheUnits>
<MaxCacheSize>100</MaxCacheSize>
<MaxUnitSize>16</MaxUnitSize>
<FreeRatio>0.125</FreeRatio>
<GlobalRatio>0.4</GlobalRatio>
<MaxAge>1000000</MaxAge>
<UpdateInterval>1024</UpdateInterval>
<FreeMemRatio>0.5</FreeMemRatio>
</LargeMemPool>
<SegmentsPool enable="false">
<MaxCacheUnits>4096</MaxCacheUnits>
<MaxCacheSize>100</MaxCacheSize>
<MaxUnitSize>16</MaxUnitSize>
<FreeRatio>0.125</FreeRatio>
<GlobalRatio>0.4</GlobalRatio>
<MaxAge>1000000</MaxAge>
<UpdateInterval>1024</UpdateInterval>
<FreeMemRatio>0.5</FreeMemRatio>
</SegmentsPool>
<Master>
<CoreGC>-1</CoreGC>
<CoreExitDelay>20</CoreExitDelay>
</Master>
<Edge>
<MinEventQueueThreads>2</MinEventQueueThreads>
<MaxEventQueueThreads>-2</MaxEventQueueThreads>
<NumSchedQueues>1</NumSchedQueues>
</Edge>
</ResourceLimits>
<Logging>
<Time>local</Time>
<RetryNumber>0</RetryNumber>
<RetrySleep>100</RetrySleep>
<RecordsNumber>-1</RecordsNumber>
<TerminatingCharacters>CRLF</TerminatingCharacters>
<Access>
<Enable>true</Enable>
<Scope>server</Scope>
<Checkpoints enable="false">
<CheckInterval>60</CheckInterval>
<LogInterval>3600</LogInterval>
</Checkpoints>
</Access>
<Diagnostic>
<Enable>true</Enable>
</Diagnostic>
<Application>
<Enable>true</Enable>
</Application>
<AuthEvent>
<Enable>true</Enable>
</AuthEvent>
<AuthMessage>
<Enable>true</Enable>
</AuthMessage>
<FileIO>
<Enable>true</Enable>
</FileIO>
</Logging>
<Localhost>localhost</Localhost>
<PublicIP></PublicIP>
<SWFVerification>
<SWFFolder></SWFFolder>
<DirLevelSWFScan>1</DirLevelSWFScan>
<MaxInitDelay>5</MaxInitDelay>
<MinGoodVersion></MinGoodVersion>
<Cache>
<TTL>1440</TTL>
<UpdateInterval>5</UpdateInterval>
</Cache>
</SWFVerification>
<Streams>
<StreamLogLevel>warning</StreamLogLevel>
<Mp4>
<Playback>
<VideoAutoBufferReadSize>153600</VideoAutoBufferReadSize>
<AudioAutoBufferReadSize>51200</AudioAutoBufferReadSize>
<OtherAutoBufferReadSize>1024</OtherAutoBufferReadSize>
<EnableAggMsgs>true</EnableAggMsgs>
<MaxAggMsgSize>65536</MaxAggMsgSize>
<MaxTracks>64</MaxTracks>
<MaxSampleSize>16777216</MaxSampleSize>
<AllowAnyAVCProfile>false</AllowAnyAVCProfile>
<AllowAnyAACProfile>false</AllowAnyAACProfile>
</Playback>
<Recording>
<MaxELSTEntries>100</MaxELSTEntries>
<MaxDataSampleDescriptions>10</MaxDataSampleDescriptions>
<MaxAudioSampleDescriptions>10</MaxAudioSampleDescriptions>
<MaxVideoSampleDescriptions>10</MaxVideoSampleDescriptions>
</Recording>
</Mp4>
<Raw>
<EnableAggMsgs>true</EnableAggMsgs>
<MaxAggMsgSize>65536</MaxAggMsgSize>
</Raw>
</Streams>
<Httpd enabled="${SERVER.HTTPD_ENABLED}">
<Directory>Apache2.2</Directory>
<Program>bin/httpd</Program>
<Options>-f ./conf/httpd.conf</Options>
<Service>FMSHttpd</Service>
</Httpd>
</Server>
<ServerDomain></ServerDomain>
</Root>
Application.xml
<Application>
<Process>
<Scope></Scope>
<Distribute numprocs="3">Instances</Distribute>
<LifeTime>
<RollOver></RollOver>
<MaxCores></MaxCores>
</LifeTime>
<MaxFailures>2</MaxFailures>
<RecoveryTime>0</RecoveryTime>
</Process>
<LoadOnStartup>false</LoadOnStartup>
<MaxAppIdleTime>-1</MaxAppIdleTime>
<JSEngine>
<RuntimeSize>1024</RuntimeSize>
<MaxGCSkipCount>-1</MaxGCSkipCount>
<MaxTimeOut>0</MaxTimeOut>
<ScriptLibPath>${APP.JS_SCRIPTLIBPATH}</ScriptLibPath>
<XMLSocket>
<MaxUnprocessedChars>4096</MaxUnprocessedChars>
</XMLSocket>
<NetConnection>
<ObjectEncoding>AMF3</ObjectEncoding>
</NetConnection>
<Security>
<RPC enable="false">
<Client>
<Method>
<Allow></Allow>
</Method>
</Client>
<NetConnection>
<Method>
<Allow>onStatus</Allow>
</Method>
</NetConnection>
<SharedObject>
<Method>
<Allow></Allow>
</Method>
</SharedObject>
<Stream>
<Method>
<Allow>onStatus</Allow>
</Method>
</Stream>
</RPC>
</Security>
</JSEngine>
<StreamManager>
<StorageDir></StorageDir>
<QualifiedStreamsMapping enable="false" />
<DuplicateDir appName="true"></DuplicateDir>
<CachePrefix type="path">?IP?</CachePrefix>
<CacheUpdateInterval></CacheUpdateInterval>
<MaxBufferRetries>128</MaxBufferRetries>
<ThrottleBoundaryRequest enable="false">8</ThrottleBoundaryRequest>
<ThrottleLoads enable="true">8</ThrottleLoads>
<ThrottleDisplayInterval>64</ThrottleDisplayInterval>
<EnhancedSeek zone="client">true</EnhancedSeek>
<KeyFrameInterval>60000</KeyFrameInterval>
<MaxStreamsBeforeGC>-1</MaxStreamsBeforeGC>
<Audio>
<CombineSamples>
<Subscribers>8</Subscribers>
<LoCPU>60</LoCPU>
<HiCPU>80</HiCPU>
<MaxSamples>0</MaxSamples>
</CombineSamples>
<SendSilence>
<Interval></Interval>
</SendSilence>
<NotifyAudioStop enabled="false">
<Duration></Duration>
</NotifyAudioStop>
</Audio>
<Live>
<AccumulatedIFrames>
<MaxTime>-1</MaxTime>
<MaxSize>-1</MaxSize>
</AccumulatedIFrames>
<Queue enabled="true">
<MaxQueueSize>4096</MaxQueueSize>
<MaxQueueDelay>500</MaxQueueDelay>
<FlushOnData>true</FlushOnData>
<AggregateMessages enabled="true">
<MaxAggMsgSize>-1</MaxAggMsgSize>
</AggregateMessages>
</Queue>
<PublishTimeout>2000</PublishTimeout>
<MaxLatency>500</MaxLatency>
<StartClockOnPublish>false</StartClockOnPublish>
<EraseOnPublish>true</EraseOnPublish>
</Live>
<SendDuplicateStart>true</SendDuplicateStart>
<SendDuplicateOnMetaData>true</SendDuplicateOnMetaData>
<Recording>
<MaxSize>-1</MaxSize>
<MaxSizeCap>-1</MaxSizeCap>
<MaxDuration>-1</MaxDuration>
<MaxDurationCap>-1</MaxDurationCap>
</Recording>
</StreamManager>
<SharedObjManager>
<StorageDir></StorageDir>
<DuplicateDir appName="true"></DuplicateDir>
<ResyncDepth>-1</ResyncDepth>
<LockTimeOut>-1</LockTimeOut>
<AutoCommit>true</AutoCommit>
<MaxProperties>-1</MaxProperties>
<MaxPropertySize>-1</MaxPropertySize>
</SharedObjManager>
<AllowHTTPTunnel>true</AllowHTTPTunnel>
<Client>
<WindowsPerAck>2</WindowsPerAck>
<Bandwidth override="yes">
<ServerToClient>2500000</ServerToClient>
<ClientToServer>2500000</ClientToServer>
</Bandwidth>
<BandwidthCap override="no">
<ServerToClient>5000000</ServerToClient>
<ClientToServer>5000000</ClientToServer>
</BandwidthCap>
<BandwidthDetection enabled="true">
<MaxRate>-1</MaxRate>
<DataSize>16384</DataSize>
<MaxWait>2</MaxWait>
</BandwidthDetection>
<MsgQueue>
<Live>
<MaxAudioLatency>2000</MaxAudioLatency>
<MinBufferTime>8000</MinBufferTime>
</Live>
<Recorded>
<MinBufferTime>2000</MinBufferTime>
</Recorded>
<Server>
<BufferRatio>0.5</BufferRatio>
<Prioritization>false</Prioritization>
<MinQueuedVideo>64</MinQueuedVideo>
</Server>
<Diagnostic>
<Enable>false</Enable>
</Diagnostic>
</MsgQueue>
<HTTPTunnel>
<IdlePostInterval>512</IdlePostInterval>
<IdleAckInterval>512</IdleAckInterval>
<MimeType>application/x-fcs</MimeType>
<WriteBufferSize>16</WriteBufferSize>
</HTTPTunnel>
<MaxMessageSizeLosslessVideo>0</MaxMessageSizeLosslessVideo>
<OutChunkSize>4096</OutChunkSize>
<AggregateMessages enabled="true"></AggregateMessages>
<Access>
<FolderAccess>false</FolderAccess>
<AudioSampleAccess enabled="false"></AudioSampleAccess>
<VideoSampleAccess enabled="false"></VideoSampleAccess>
</Access>
<UserAgent override="yes">
<Bits from="WIN 6,0,0,0" to="WIN 7,0,55,0">0x01</Bits>
<Bits from="MAC 6,0,0,0" to="MAC 7,0,55,0">0x01</Bits>
</UserAgent>
</Client>
<Debug>
<MaxPendingDebugConnections>50</MaxPendingDebugConnections>
<AllowDebugDefault>false</AllowDebugDefault>
</Debug>
<HTTP>
<HTTP_1_0>false</HTTP_1_0>
<Verbose>false</Verbose>
<Connections>
<MaxTimeout>60</MaxTimeout>
<Reuse>true</Reuse>
<Interface></Interface>
</Connections>
<Proxy>
<Host></Host>
<Port></Port>
<Type>HTTP</Type>
<Tunnel>false</Tunnel>
<Username></Username>
<Password></Password>
</Proxy>
<Redirect>
<Allow>true</Allow>
<Max>10</Max>
<UnrestrictedAuth>true</UnrestrictedAuth>
</Redirect>
</HTTP>
<SWFVerification enabled="false">
<SWFFolder></SWFFolder>
<MinGoodVersion></MinGoodVersion>
<DirLevelSWFScan>1</DirLevelSWFScan>
<MaxInitDelay>5</MaxInitDelay>
<FirstHashTimeout>5</FirstHashTimeout>
<FinalHashTimeout>60</FinalHashTimeout>
<UserAgentExceptions>
<Exception from="" to=""/>
</UserAgentExceptions>
<Cache>
<TTL>1440</TTL>
<UpdateInterval>5</UpdateInterval>
</Cache>
<ConnectionBlocking enabled="false"/>
</SWFVerification>
<Logging>
<Access>
<Checkpoints enable="false">
<LogInterval>3600</LogInterval>
</Checkpoints>
-->
</Access>
</Logging>
<DisallowedProtocols></DisallowedProtocols>
</Application>
Vhost.xml
<VirtualHost>
<AliasList>
<Alias name="alias1"></Alias>
</AliasList>
<AppsDir>${VHOST.APPSDIR}</AppsDir>
<ResourceLimits>
<MaxConnections>-1</MaxConnections>
<MaxEdgeConnections>-1</MaxEdgeConnections>
<MaxAppInstances>15000</MaxAppInstances>
<MaxStreams>250000</MaxStreams>
<MaxSharedObjects>50000</MaxSharedObjects>
<AppInstanceGC>-1</AppInstanceGC>
</ResourceLimits>
<VirtualKeys>
</VirtualKeys>
<VirtualDirectory>
<Streams></Streams>
</VirtualDirectory>
<DNSSuffix></DNSSuffix>
<Allow>all</Allow>
<Proxy>
<Mode>local</Mode>
<RequestTimeout>2</RequestTimeout>
<Anonymous>false</Anonymous>
<CacheDir enabled="false" useAppName="true">
<Path></Path>
<MaxSize>32</MaxSize>
</CacheDir>
<LocalAddress></LocalAddress>
<RouteTable protocol="">
<RouteEntry></RouteEntry>
</RouteTable>
<EdgeAutoDiscovery>
<Enabled>false</Enabled>
<AllowOverride>true</AllowOverride>
<WaitTime>1000</WaitTime>
</EdgeAutoDiscovery>
<SSL>
<SSLVerifyCertificate>true</SSLVerifyCertificate>
<SSLCACertificatePath></SSLCACertificatePath>
<SSLCACertificateFile></SSLCACertificateFile>
<SSLVerifyDepth>9</SSLVerifyDepth>
<SSLCipherSuite>ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH</SSLCipherSuite>
</SSL>
-->
<AggregateMessages enabled="true">
</AggregateMessages>
</Proxy>
<Logging>
<Access>
<Checkpoints enable="false">
<LogInterval>3600</LogInterval>
</Checkpoints>
-->
</Access>
</Logging>
</VirtualHost>Hello guys,
thanks for replying.
All intances spent 24h playing/streaming as expected but today some of them went down.
Any idea why this core is being deactivated?
master.log
2011-04-20 16:30:54 16109 (i)2581172 System memory load (90) is now below the maximum threshold. -
2011-04-20 16:30:55 16109 (w)2581171 System memory load (91) is high. -
2011-04-20 18:36:18 16109 (i)2581226 Edge (16129) is no longer active. -
2011-04-20 18:36:18 16109 (w)2581255 Edge (16129) _defaultRoot__edge1 experienced 1 failure[s]! -
2011-04-20 18:36:18 16109 (i)2581224 Edge (28483) started, arguments : -edgeports ":1935,80" -coreports "localhost:19350" -conf "/opt/adobe/fms/conf/Server.xml" -adaptor "_defaultRoot_" -name "_defaultRoot__edge1". -
2011-04-20 18:53:25 16109 (i)2581223 Core (16132) is no longer active. -
2011-04-20 18:53:25 16109 (i)2581221 Core (28621) started, arguments : -adaptor "_defaultRoot_" -vhost "_defaultVHost_" -app "registry" -inst "registry" -tag -conf "/opt/adobe/fms/conf/Server.xml" -name "_defaultRoot_:_defaultVHost_:registry:registry:".-
2011-04-20 18:57:25 16109 (i)2581223 Core (28621) is no longer active. -
2011-04-20 18:57:25 16109 (i)2581221 Core (28814) started, arguments : -adaptor "_defaultRoot_" -vhost "_defaultVHost_" -app "registry" -inst "registry" -tag -conf "/opt/adobe/fms/conf/Server.xml" -name "_defaultRoot_:_defaultVHost_:registry:registry:".-
2011-04-20 19:00:15 16109 (i)2581172 System memory load (61) is now below the maximum threshold. -
2011-04-20 19:00:28 16109 (i)2581223 Core (16752) is no longer active. -
2011-04-20 19:00:28 16109 (w)2581256 Core (16752) _defaultRoot_:_defaultVHost_:::_1 experienced 1 failure[s]! -
2011-04-20 19:00:28 16109 (i)2581221 Core (29004) started, arguments : -adaptor "_defaultRoot_" -vhost "_defaultVHost_" -app -inst -tag "_1" -conf "/opt/adobe/fms/conf/Server.xml" -name "_defaultRoot_:_defaultVHost_:::_1".
core.log
2011-04-20 16:30:56 16132 (w)2581171 System memory load (91) is high. -
2011-04-20 18:36:16 16752 (i)2581247 Core (16752) disconnected from edge. -
2011-04-20 18:36:16 16548 (i)2581247 Core (16548) disconnected from edge. -
2011-04-20 18:36:16 16962 (i)2581247 Core (16962) disconnected from edge. -
2011-04-20 18:36:16 16132 (i)2581247 Core (16132) disconnected from edge. -
2011-04-20 18:36:21 16962 (i)2581246 Core (16962) sending register cmd to edge. -
2011-04-20 18:36:21 16752 (i)2581246 Core (16752) sending register cmd to edge. -
2011-04-20 18:36:21 16548 (i)2581246 Core (16548) sending register cmd to edge. -
2011-04-20 18:36:22 16132 (i)2581246 Core (16132) sending register cmd to edge. -
#Date: 2011-04-20
#Fields: date time x-pid x-status x-ctx x-comment
2011-04-20 18:53:27 28621 (i)2581246 Core (28621) sending register cmd to edge. -
2011-04-20 18:53:30 28621 (w)2581171 System memory load (99) is high. -
#Date: 2011-04-20
#Fields: date time x-pid x-status x-ctx x-comment
2011-04-20 18:57:27 28814 (i)2581246 Core (28814) sending register cmd to edge. -
2011-04-20 18:57:29 28814 (w)2581171 System memory load (99) is high. -
2011-04-20 19:00:16 16962 (i)2581172 System memory load (61) is now below the maximum threshold. -
2011-04-20 19:00:15 28814 (i)2581172 System memory load (66) is now below the maximum threshold. -
2011-04-20 19:00:16 16548 (i)2581172 System memory load (61) is now below the maximum threshold. -
#Date: 2011-04-20
#Fields: date time x-pid x-status x-ctx x-comment
2011-04-20 19:00:29 29004 (i)2581237 Starting admin app on core (29004). -
2011-04-20 19:00:29 29004 (i)2581238 Core (29004) connecting to admin. -
2011-04-20 19:00:29 29004 (i)2581231 Core (29004) connected to admin. -
2011-04-20 19:00:29 29004 (i)2581234 Core (29004) connection to admin accepted. -
2011-04-20 19:00:29 29004 (i)2581246 Core (29004) sending register cmd to edge. -
# free -m
total used free shared buffers cached
Mem: 7993 6076 1917 0 4 34
-/+ buffers/cache: 6037 1956
Swap: 3147 1558 1589
thank you! -
Sun Java Application Server 9.0 and 9.1 - High CPU PROCENTAGE 100%
Hi,
I have problem with sun java application Server running after few days during watching a logs from web admin suddenly the application server takes 100% cpu and keeps this procentage - I have to manually close the server process.
The server running on Windows Server 2003.
Anyone have any idea to sovle the problem?Hi Kedar,
Thanks for the reply. Yes, I finally figured it out.
The custom MBeans seem to work well for the most part though I don't know for sure if I'm using them in the way they were really intended.
Basically, I want to run 'services' on my application server for the lifetime of the server. I want these 'services' to maintain things like runtime caching of information over time that is not persisted in a DB but needs to be kept around in active memory to be used at a later time, but only while the application server is up and running.
Another thing I would like to do is have them receive JMS notifications directly, but I seem to be having trouble when subscribing as a consumer within my custom MBean. The topic thread on that is here:
http://forum.java.sun.com/thread.jspa?threadID=5153124&tstart=0 -
Error while Restarting weblogic application server
Hi,
While Restarting weblogic application server (10.3 installed on linux) we are getting following error :
<Aug 10, 2010 2:47:08 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
<Aug 10, 2010 2:47:08 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for CR376251 Wed Aug 06 09:19:34 PDT 2008
WebLogic Server Temporary Patch for CR371247 Sat Aug 09 20:10:38 PDT 2008
WebLogic Server Temporary Patch for CR377673 Tue Aug 12 20:39:50 EDT 2008
WebLogic Server Temporary Patch for CR377673 Tue Aug 12 20:39:50 EDT 2008
WebLogic Server Temporary Patch for CR376759 Thu Aug 14 14:53:02 PDT 2008
WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 >
<Aug 10, 2010 2:47:11 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Aug 10, 2010 2:47:11 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Aug 10, 2010 2:47:12 PM IST> <Notice> <Log Management> <BEA-170019> <The server log file /usr/ebiz/bea/user_projects/domains/portal_dmz_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
Exception in thread "VDE Transaction Processor Thread" java.lang.OutOfMemoryError: Java heap space
at com.octetstring.vde.Entry.readBytes(Entry.java:506)
at com.octetstring.vde.Entry.<init>(Entry.java:98)
at com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:234)
<Aug 10, 2010 2:48:03 PM IST> <Error> <EmbeddedLDAP> <BEA-000000> <Error opening mapping file: /usr/ebiz/bea/user_projects/domains/portal_dmz_domain/servers/AdminServer/data/ldap/conf/mapping.cfg>
<Aug 10, 2010 2:48:03 PM IST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.InternalError
java.lang.InternalError
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:752)
at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Truncated. see log file for complete stacktrace
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:643)
Truncated. see log file for complete stacktrace
>
<Aug 10, 2010 2:48:03 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Aug 10, 2010 2:48:03 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Aug 10, 2010 2:48:03 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
x86_64 is not a supported Linux hardware platform for Autonomy.
Please suggest. Its liitle urgent. Any help will be appriciated.
Thanks and regards,
Minal BhatteMay be all classes cant be loaded.
Do you have any application which is deployed your manage server? If you say Yes:
There are three ways:
1)If Sun JVM is used, then add:
set MEM_ARGS=-Xms1280m -Xmx1280m -XX:PermSize=128m -XX:MaxPermSize=256m
*** -XX:PermSize and -XX:MaxPermSize should be equal and quarter of -Xmx. (-Xmx should also be equal to -Xms)
If BEA JRockit JVM is used, then add:
set MEM_ARGS=-Xms1280m -Xmx1280m
2) If you still get that error, increase your real memory of system.
3) For last choice, contact with your developer to tune your application. -
After automatically updating to 32.0.3 last Thursday and this Monday on all our Staff and Patron computers both Win7 pro and XP pro we have seen Firefox sessions that will not bring up the Print Dialog. The Print Preview dialog will come up but no print button or print menu item will bring up the Print Dialog. After you close Firefox and reopen it the Print Dialog box will work again for some time. The websites that Patron and Staff use during a session are different and done seem to be the cause. The Firefox settings are at fault because a simply restart of just Firefox fixes the issue and no other web browsers or application has any problem with displaying the Print Dialog at any time. Again this began on all the computers as soon as 32.0.3 was installed automatically over night.
Hi NPLD,
Thank you for your question, I understand that there are multiple computers that no longer have a working print dialogue after a while of using Firefox. However after a restart, the print dialogue continues to act normally.
Does resetting the printing settings on the affected computers only temporarily change this as well?[[Fix printing problems in Firefox]]
I noticed it when I tested this page: [http://www.housebeautiful.com/decorating/home-makeovers/1920s-home-before-after?src=spr_FBPAGE&spr_id=1451_94608649#slide-2] However I cannont reproduce it all the time. The print icon in the page has a opened a printable view and then the print dialoge comes up. When I switched to another program, that icon did not open the preview.
Do you notice any about:config entries that change when you see this start to happen? -
Error while running Java Application as NT Service using INSTSRV
Hi,
I am trying to run Java Application as an NT Service using Instsrv.But when i start the service It works fine.when i stop the service it does not stop and it continues to run the application.When i uninstall the service It still executes.When i reboot my machine it stops .Is there any solutions for this.Any help is greatly appreciated.
Thanks.I actually had similar situation. I used autoexnt.ext tool (it creats a service that can be called when rebooting) to start a batch file which in turn run a java program. After the program starts, it can only be stopped through Task Manager or Ctrl-C at the dos window (it creats a dos window) or close the window directly. Stopping the service has nothing to do with the program. I feel this is reasonable because the only function of the service here is to start the application. After that the service does not (very likely) have any connection with the program so whatever you do with the service will not affect the program itself. I wonnder if you are in the same situation.
PC -
Issues while configuring java application using JDO with MS JDBC Driver 1.0
We are in the process of configuring our java application with the production version of SQL Server 2005 Java Database Connectivity (JDBC) Driver 1.0. We are facing issues getting it to work with Sun App Server using JDO concept.
After creating the data store, adding the JDBC driver to the application server classpath through console and also copying the driver into the lib directory, we are still getting the below error.
Following is the stack trace encountered while running the application
[#|2006-02-15T10:21:25.493+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=30;|JDO74010: Bean 'InventoryEJB' method ejbFindAllInventoryItems: problems running JDOQL query.
com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
NestedException: java.sql.SQLException: Error in allocating a connection. Cause: javax.transaction.SystemException
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.initializeSQLStoreManager(SQLPersistenceManagerFactory.java:870)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:786)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:673)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:849)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:681)
at com.sun.j2ee.blueprints.supplier.inventory.ejb.InventoryEJB1142755294_ConcreteImpl.jdoGetPersistenceManager(InventoryEJB1142755294_ConcreteImpl.java:530)
at com.sun.j2ee.blueprints.supplier.inventory.ejb.InventoryEJB1142755294_ConcreteImpl.ejbFindAllInventoryItems(InventoryEJB1142755294_ConcreteImpl.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:147)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:185)
at $Proxy164.findAllInventoryItems(Unknown Source)
at com.sun.j2ee.blueprints.supplier.inventory.web.DisplayInventoryBean.getInventory(Unknown Source)
at org.apache.jsp.displayinventory_jsp._jspService(displayinventory_jsp.java:119)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
at com.sun.j2ee.blueprints.supplier.inventory.web.RcvrRequestProcessor.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Can anyone help me on this issue?
Regards,
BinduI have already tried this before and this not work too, but strange that even if I use JDBC:ODBC bridge driver, the return value for output parameters are not correct, that is, only return the value that I input but not the value after executed in the procedure....
The code that I used with JDBC:ODBC bridge is as follow:
public static void main(String[] args) {
String url = "jdbc:odbc:;DRIVER=SQL Server;Persist Security Info=False;database=db;Server=sql;uid=sa;pwd=pwd";
Connection con;
ResultSet rs = null;
CallableStatement callS = null;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con=DriverManager.getConnection(url);
callS = con.prepareCall("{ call dbo.CpJavaTest (?)}");
callS.registerOutParameter(1, Types.INTEGER);
callS.execute();
rs=callS.getResultSet();
int ret = callS.getInt(1);
System.out.println("return value : " + ret);
while (rs.next()) {
String f1 = rs.getString(4);
String f2 = rs.getString(5);
System.out.println(f1 + " " + f2);
} catch(SQLException ex) {
System.out.println("SQLException: " + ex.getMessage());
The value of the output parameter is same as what I inputed! Hope any one can teach me how to correct it...
Thank you very much! -
hello.
I got my macpook pro in july 2009 so the warrenty has ran out. Today, after a while just typing away I tried to save the document and went to click on the save icon and found that I had selected selected everything in the document and then the left clicker stopped regsitering. The right click worked just fine but it would like the left click didnt exist and it wouldnt let me do it. I have a mouse, and at first I thought it was the mouse. But it wasnt registering on the trackpad either, so its definitely the laptop itself not getting the signals for a left click.
I then restarted the laptop and it was back to normal. So i thought it was just a glitch. but it happened again after about an hour after restarting the laptop. So I gave up on the laptop and then out for dinner, came home to find that it happened after about 30 mins of being on the internet.
Ive tried looking for similiar threads but it seems like for other people its something to do with the battery on their laptop or just on their track pads thats not registering. For me, it's not registering on my track pad and every mouse I have in my house to test it with.
Please help, it is VERY VERY much appreciatedThat disk from her computer is a machine specific version, you need this disk
http://store.apple.com/us/product/MC573Z/A
and follow these instructions
How to erase and install Snow Leopard 10.6 -
I can't find Cocoa-Java Application after Xcode Version 3.2.1 install..
Can anyone tell me what happened to all the different Java Applications and Applet selections when File/New Project is selected from Xcode version 3.2.1 64bit? I can't seem to find it. Prior to installing this new version of Xcode, I had full access to all the different Java suites, now I have nothing. Please help, coding seems to compile, I just want to have the choices there for learning purposes. For example:
Ant-based Application jar
Java AWT Applet
Java AWT Application
Java Swing Applet
etc.
Any help would be greatly appreciated.
I had just read in the Iphone Developer section that:
+Important: You will need to re-install the iPhone SDK or Snow Leopard if you plan on developing iPhone applications after upgrading your Mac to Snow Leopard and installing Xcode 3.2.+
Would somebody be able to give me installation instructions on installing the http://developer.apple.com/iphone/download.action?path=%2Fiphone%2Fiphonesdk_3.1.2__final%2Fiphone_sdk_3.1.2_with_xcode_3.2.1__snow_leopard_10m2003.dmg.. It looks like at this point I should have kept the previous version I was using and should have done a custom install. Am I allowed to create a folder called /Developer2 and put an older archived version of Xcode in there? Any help would be greatly appreciated.
Best Regards,...now I have nothing. Please help, coding seems to compile, I just want to have the choices there for learning purposes. For example:
Ant-based Application jar
Java AWT Applet
Java AWT Application
Java Swing Applet
Changed - Apple has this to say about that:
"The Java templates in the Organizer (Window > Organizer Cmd-Ctrl-O) are still present, however all but one of the Java project templates have been removed.
The JNI project template is the only Java project template that remains, because it builds a native library. The template has also been re-written to be a full graphical Swing application that calls into the native Mac OS X address book. I'd highly encourage anyone who is interested in JNI development on the Mac to check it out.
The only additional developer content we ship for Java is the source and javadoc for the JDK itself, and does not include any templates."
-=-=-=-
To create Java projects w/Xcode 3.2.1 as an example, you must first open Organizer by choosing Window > Organizer. At the bottom of the Organizer window, you will see three buttons.
OrganizerBottomBar
Click the + button on the left and choose New From Template > Java Templates to create a Java project. Click the right button at the bottom of the Organizer to show the editor. Use the editor to write your code.
Maybe you are looking for
-
I am trying to figure out how to back up ALL of my apps, games, movies, personal info, etc, that is destroyed when I upgrade ITunes ( I do not know why). If it's all on ITunes in the first place then what's the problem with installing new software
-
Sender FCC for the following structure.
Hi, I am using the following source structure: <Goods> 0..unbounded(Data Type) <HeaderData>(1..1) <1> <2> <3> <ItemData>(1..unbounded)
-
Reporting iTunes problems?
Is there anywhere on the Apple web site to give feedback on iTunes? I thought there use to be a feedback page (http://www.apple.com/feedback/itunes.html), but it seems to be only for requesting music. The reason I ask is that I've just noticed that i
-
My computer sometimes doesn't send out my e-mails
My MacBook sometimes doesn't send out my e-mails. I need to send them directly from the server to be certain they go out. Random recipients and random e-mails.
-
Can somebody please help me with my ipod plan??
I have a Product Replacement Plan for two years on my 1st generation ipod touch. I bought it December 2007 and I just recently lost it November 2008. But before I lost it, in September 2008 I had to use my replacement plan to get another ipod so the