Strange problem when re-launching an application
I have this program which can self-update to the latest version. What it does is downloads the new version of itself, deletes the old version, renames the new version, sets its permissions and executes it.
Up until this next point, everything worked fine.
The method it executes it is using the Unix style exec() functions.
Until recently, my app was run "Unix Style", as in some kind of login script ran it. There were a lot of issues the cropped up, so I changed it to a proper application package. You know, with the .app directory structure with the real executable inside the MacOS directory.
Now what happens is that the initial app launches and seems to run normally, but when an update comes down, it goes through its update process and launches the replacement with the exec() functions.
Then something strange happens. My app will run for a few more seconds, and then just stop. It will disappear from the task viewer. It does not crash, it just goes away without any explanation.
I have put a lot of logging statements in, and there is no reason for it to stop where it does. I do not even think it stops at the same place. In once caase it stopped between to logging statements. IE: Log statement #1 was in my log file, but no log statement #2 when there was nothing in the world that could have caused the program to exit between them.
Does anyone know why this happens?
I have a suspicion, that maybe the fact that I am using the Unix exec command to launch the app, it is causing some trouble and I need to use the apple method.
What is the API command to launch another executable in a manner that it would be launched by the login window aka a user double clicking on the app icon?
First of all, have you set a proper bundle identifier for your app? It'll be the CFBundleIdentifier entry in the bundle's Info.plist file.
The equivalent to double-clicking on an app in the Finder is probably LSOpenFSRef() which is part of Launch Services:
OSStatus LSOpenFSRef (
const FSRef *inRef,
FSRef *outLaunchedRef
You can change a posix style path to an FSRef (opaque File system reference) using FSPathMakeRef():
OSStatus FSPathMakeRef (
const UInt8 * path,
FSRef * ref,
Boolean * isDirectory
That function is part of the CoreServices framework:
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework / .. /Frameworks/CarbonCore.framework/ .. /Headers/Files.h"
Hope this helps....
Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM - Mac OS X (10.4.8)
Similar Messages
-
Strange problem when copying files to NAS
Hello all. I have a strange problem when trying to copy files from my intel iMac to my Seagate NAS. I am copying files from my HD and when the file is nearly copyied i get an error message saying that the file can't be copied because it is already in use by another application. Well... it surely isn't. I try copying them by ftp (Filezilla) and everything works fine. I can then access them through my media server but !!!! NOT THROUGH MY iMac!!!! It is like the files are not there!!!! But they definetely are! I tried fixing the disk permissions, rebooting NAS, iMac etc but nothing seems to solve the problem. Is there any suggestion of what might be wrong? I am under Mavericks and i am pretty sure that the problem started after the update. When copying from my external USB hard drive to my iMac HD everything works fine. The problem is from my iMac to my NAS.
Wow... thanks for the time you devote Linc.... Well below are the results of the above commands....
Step 1 returned no text.
Step 2 returned the following text:
com.tunabellysoftware.checkmytemp.GNTPClientService
jp.co.canon.MasterInstaller
com.WesternDigital.WDSmartWareD
com.wdc.WDDMservice
com.teamviewer.service
com.tappin.agent.plist
com.microsoft.office.licensing.helper
com.klieme.TimeMachineScheduler
com.adobe.SwitchBoard
com.adobe.fpsaud
Step 3 returned the following text:
com.adobe.PDApp.AAMUpdatesNotifier.59168.9D679ECB-757D-43DD-920E-153524EA697A
jp.co.canon.cijscannerregister.67792
jp.co.canon.ij.CNSSelectorAgent.66384
OpenObject.fuspredownloader.65328
com.tappin.TappIn.53712
com.ecamm.PhoneViewHelper.65680
com.pratikkumar.RemoteHelper.51424
com.elgato.eyetvhelper.10064
6.0.65152
com.tunabellysoftware.TemperatureGaugeHelper
com.paragon.ntfs.trial
com.teamviewer.desktop
com.teamviewer.teamviewer
com.sony.PMBPortable.AutoRun
com.google.keystone.user.agent
com.adobe.ARM.df0ab5bbe6f698196fcc21e3c1e66dcb758bd911f4d637272d9d8109
com.adobe.AAM.Scheduler-1.0
Step 4 returned the following text:
/Library/Components:
/Library/Extensions:
ATTOCelerityFC8.kext
ATTOExpressSASHBA2.kext
ATTOExpressSASRAID2.kext
ArcMSR.kext
CalDigitHDProDrv.kext
HighPointIOP.kext
HighPointRR.kext
PromiseSTEX.kext
SoftRAID.kext
/Library/Frameworks:
AEProfiling.framework
AERegistration.framework
Adobe AIR.framework
AudioMixEngine.framework
NyxAudioAnalysis.framework
PluginManager.framework
TSLicense.framework
WesternDigital
iLifeFaceRecognition.framework
iLifeKit.framework
iLifePageLayout.framework
iLifeSQLAccess.framework
iLifeSlideshow.framework
iTunesLibrary.framework
/Library/Input Methods:
/Library/Internet Plug-Ins:
AdobePDFViewer.plugin
AdobePDFViewerNPAPI.plugin
Aspera Web.plugin
Default Browser.plugin
EPPEX Plugin.plugin
Flash Player.plugin
Flip4Mac WMV Plugin.plugin
JavaAppletPlugin.plugin
NavIn.plugin
Quartz Composer.webplugin
QuickTime Plugin.plugin
SharePointBrowserPlugin.plugin
SharePointWebKitPlugin.webplugin
Silverlight.plugin
flashplayer.xpt
iPhotoPhotocast.plugin
nsIQTScriptablePlugin.xpt
/Library/Keyboard Layouts:
/Library/LaunchAgents:
com.adobe.AAM.Updater-1.0.plist
com.apple.NavService.plist
com.oracle.java.Java-Updater.plist
com.sony.PMBPortable.AutoRun.plist
com.teamviewer.teamviewer.plist
com.teamviewer.teamviewer_desktop.plist
/Library/LaunchDaemons:
com.WesternDigital.WDSmartWareD.plist
com.adobe.SwitchBoard.plist
com.adobe.fpsaud.plist
com.klieme.TimeMachineScheduler.plist
com.microsoft.office.licensing.helper.plist
com.oracle.java.Helper-Tool.plist
com.tappin.agent.plist
com.teamviewer.teamviewer_service.plist
com.wdc.WDDMservice.plist
jp.co.canon.MasterInstaller.plist
/Library/PreferencePanes:
EyeConnect.prefPane
Flash Player.prefPane
Flip4Mac WMV.prefPane
GRproofing.prefPane
Growl.prefPane
JavaControlPanel.prefPane
NTFSforMacOSX.prefPane
Perian.prefPane
TappIn.prefPane
TimeMachineScheduler.prefPane
/Library/PrivilegedHelperTools:
com.microsoft.office.licensing.helper
jp.co.canon.MasterInstaller
/Library/QuickLook:
GBQLGenerator.qlgenerator
QuickLookEyeTV.qlgenerator
iBooksAuthor.qlgenerator
iWork.qlgenerator
/Library/QuickTime:
AC3MovieImport.component
AppleIntermediateCodec.component
AppleMPEG2Codec.component
EyeTV MPEG Support.component
Perian.component
/Library/ScriptingAdditions:
Adobe Unit Types.osax
/Library/Spotlight:
GBSpotlightImporter.mdimporter
LogicPro.mdimporter
Microsoft Office.mdimporter
iBooksAuthor.mdimporter
iWork.mdimporter
/Library/StartupItems:
ChmodBPF
DynDNSUpdater
EyeConnect
/etc/mach_init.d:
/etc/mach_init_per_login_session.d:
/etc/mach_init_per_user.d:
Library/Address Book Plug-Ins:
SkypeABDialer.bundle
SkypeABSMS.bundle
Library/Fonts:
AC-CondensedScript_Unicode.otf
AC-CuttingEdge.otf
AC-FrenchToast.otf
AC-Gorgi.otf
AC-HiSchool.otf
AC-Hollow_Unicode.otf
AC-Lundi.otf
AC-Lycee.otf
AC-Pathetic_unicode.otf
AC-mutlu_unicode.otf
ACRealAdult.otf
AVI-BonatiPT-Bold.ttf
AVI-BonatiPT-BoldItalic.ttf
AVI-BonatiPT-Italic.ttf
AVI-BonatiPT-Normal.ttf
AVI-Jacobs-Bold.ttf
AVI-Jacobs-BoldItalic.ttf
AVI-Jacobs-Italic.ttf
AVI-Jacobs-Normal.ttf
AVI-Optima-Bold.ttf
AVI-Optima-BoldItalic.ttf
AVI-Optima-Italic.ttf
AVI-Optima-Normal.ttf
AVI-OptimaCollege-Italic.ttf
AVI-OptimaCollege.ttf
AVI-ParisAifel-Medium.ttf
AVI-ParisAifel-MediumItalic.ttf
AdLib BT.suit
AdLibBTReg
Andale Mono
ArbuckleShadowNF.otf
Arial
Arial Black
Arial Narrow
BleeckerStreetShadedNF.otf
BundleofJoyOutlineNF.otf
CF Bac
CF Bar
CF Bar-Bold
CF BarText
CF BarText-Bold
CF Big
CF Compacta Bold
CF Compacta ExtraBold
CF Compacta Light
CF Compacta Medium
CF Compacta Regular
CF Criton
CF Criton-Contrafos
CF Criton-Heavy
CF Derrida-Bold
CF Derrida-Book
CF Derrida-Heavy
CF Derrida-Light
CF Derrida-SemiBold
CF DogEatDog
CF Fat
CF Holly
CF Holly-Bold
CF Holly-Light
CF Holly-Medium
CF Initials
CF Jet
CF Jet-Alter
CF Jet-Left
CF Jet-Right
CF Jet-Simple
CF K-Graffiti
CF K-Select
CF KouroudiSelect-Bold
CF KouroudiSelect-Fun
CF KouroudiSelect-Regular
CF KouroudisGraffiti-Dust
CF KouroudisGraffiti-Light
CF KouroudisGraffiti-Regular
CF LetterGothic
CF MatrixDot
CF MatrixFax
CF MatrixMonospace
CF MatrixNegative
CF Newspaper
CF PainterBlack
CF PainterBold
CF PainterRegular
CF Poster
CF Sans
CF Sans-Bold
CF Sans-Heavy
CF SempliceBold
CF SempliceRegular
CF SempliceThin
CF Smooth
CF Smooth-CondBold
CF Smooth-CondNorm
CF Smooth-ExtraBold
CF Smooth-Revenge
CF Smooth-Toy
CF Sophia
CF Sophia-Bold
CF Sophia-BoldItalic
CF Sophia-Italic
CF Stamp
CF Stencil
CF Suprematica
CF Twins
CF Venus
CFBarSG
CFBarSGBol
CFBarTexSG
CFBarTexSGBol
CFBigSG
CFCriSGCon
CFCriSGHea
CFDogEatDogSG
CFEteoclesContrafos
CFEteoclesHeavy
CFEteoclesRegular
CFFatSG
CFHolSGBol
CFHolSGLig
CFHolSGMed
CFIniSG
CFJetAlt
CFJetLef
CFJetRig
CFJetSim
CFKouGraSGDus
CFKouGraSGLig
CFKouGraSGReg
CFKouSelSGBol
CFKouSelSGFun
CFKouSelSGReg
CFLetGotSG
CFNewSG
CFSanSG
CFSanSGBol
CFSanSGHea
CFSmoSGConBol
CFSmoSGConNor
CFSmoSGExtBol
CFSmoSGRev
CFSmoSGToy
CFSopSG
CFSopSGBol
CFSopSGBolIta
CFSopSGIta
CFSteSG
CFSupSG
CFTwiSG
Century
ChicaGogoOpenNF.otf
D-Regular.suit
DReg
DejaVuSans-Bold.ttf
DejaVuSans-BoldOblique.ttf
DejaVuSans-ExtraLight.ttf
DejaVuSans-Oblique.ttf
DejaVuSans.ttf
DejaVuSansCondensed-Bold.ttf
DejaVuSansCondensed-BoldOblique.ttf
DejaVuSansCondensed-Oblique.ttf
DejaVuSansCondensed.ttf
DejaVuSansMono-Bold.ttf
DejaVuSansMono-BoldOblique.ttf
DejaVuSansMono-Oblique.ttf
DejaVuSansMono.ttf
DejaVuSerif-Bold.ttf
DejaVuSerif-BoldOblique.ttf
DejaVuSerif-Oblique.ttf
DejaVuSerif.ttf
DejaVuSerifCondensed-Bold.ttf
DejaVuSerifCondensed-BoldOblique.ttf
DejaVuSerifCondensed-Oblique.ttf
DejaVuSerifCondensed.ttf
Demo_ConeriaScript.ttf
Demo_ConeriaScript_Slanted.ttf
Demon
Demonstrator.suit
DidgereeDoodleOutlineNF.otf
DrumagStudioOutlineNF.otf
ElektromotoNarrowOutlineNF.otf
Franklin Gothic Demi
Franklin Gothic Heavy
FuturBTBol
FuturCon
Futura Bd BT.suit
Futura Condensed.suit
GFS Goschen-Italic.otf
GFSAmbrosia.otf
GFSDecker.otf
GFSEustace.otf
GFSFleischman.otf
GFSGaraldus.otf
GFSIgnacio.otf
GFSJackson.otf
GFSNeohellenic.otf
GFSNeohellenicBold.otf
GFSNeohellenicBoldIt.otf
GFSNeohellenicIt.otf
GFSNicefore.otf
GFSPhilostratos.otf
GFSPolyglot.otf
GFSTheokritos.otf
Georgia
Gill Sans Hel
Gill Sans Hel Pt-SCOS
Gill Sans Hel Pt-SCOSBold
Gill Sans Hel-Bold
Gill Sans Hel-BoldItalic
Gill Sans Hel-Con
Gill Sans Hel-ConBold
Gill Sans Hel-Demi
Gill Sans Hel-DemiItalic
Gill Sans Hel-ExBold
Gill Sans Hel-ExConBold
Gill Sans Hel-ExLight
Gill Sans Hel-Italic
Gill Sans Hel-Light
Gill Sans Hel-LightItalic
Gill Sans Hel-SCOS
Gill Sans Hel-SCOSBold
Gill Sans Hel-SemCon
Gill Sans Hel-SemConBdIt
Gill Sans Hel-SemConBold
Gill Sans Hel-SemConIt
Gill Sans Hel-SemConLight
Gill Sans Hel-SemConThin
Gill Sans Hel-Thin
Gill Sans Hel-UltBold
Gulim.ttf
HelveConBol
HelveNeuMedCon
Helvetica Condensed.suit
HelveticaNeue MediumCond.suit
Looney Tunes Tilt BT.ttf
LooseCabooseOutlineNF.otf
Lucida Sans
PF DaVinciScriptPoly-Inked.ttf
PF DaVinciScriptPoly-Reg.ttf
PFAlfabeta
PFAlfabetaOS Poly Bold.ttf
PFAlfabetaOS Poly BoldItal.ttf
PFAlfabetaOS Poly Italic.ttf
PFAlfabetaOS Poly Regular.ttf
PFAmateur
PFArabats.ttf
PFBarApart
PFBaseline
PFBaselineDisplay
PFBeatnick
PFBedroom
PFBellGothicText
PFBerkleyBlue
PFBevel
PFBodoniScriptOne
PFBodoniScriptTwo
PFBodoniText
PFBodoniText Poly-Bold.ttf
PFBodoniText PolyBoldItalic.ttf
PFBodoniText-Poly Italic.ttf
PFBodoniText-Poly Regular.ttf
PFBulletin
PFCatalog
PFCatalogPoly-Bold.ttf
PFCatalogPoly-BoldItalic.ttf
PFCatalogPoly-Italic.ttf
PFCatalogPoly-Regular.ttf
PFCentury
PFCereal
PFCheltenham
PFCosmonut
PFCosmonut-Astrobats.ttf
PFDaVinciScript
PFDeeJay
PFDidotOsPoly-Bold.ttf
PFDidotOsPoly-BoldItalic.ttf
PFDidotOsPoly-Italic.ttf
PFDidotOsPoly-Regular.ttf
PFDigicons-One.ttf
PFDigicons-Two.ttf
PFDigidotSemiSquare
PFDigidotSquare
PFDinDisplay
PFDinText
PFDinTextCompressed
PFDinTextCondensed
PFDiplomat
PFDiplomatPoly-Bold.ttf
PFDiplomatPoly-BoldItalic.ttf
PFDiplomatPoly-Italic.ttf
PFDiplomatPoly-Regular.ttf
PFDiplomatSans
PFEarthbound
PFEphemera
PFEphemera Poly-Bold.ttf
PFEphemera Poly-BoldItalic.ttf
PFEphemera Poly-Italic.ttf
PFEphemera Poly-Regular.ttf
PFEtnica
PFFragment
PFFranklinGothic
PFFreeScript
PFFuel
PFFusionSans
PFFuturaNeu
PFGaramondClassic
PFGlobal
PFGoudyInitials.ttf
PFGrid
PFHardkore
PFHausSquare
PFHighwayGothic
PFHighwayGothicCompressed
PFHighwayGothicCondensed
PFHighwayGothicExtended
PFHighwayGothicXtraCond
PFHipster
PFHitower
PFHybrid
PFIndex
PFInnercity
PFIsotext
PFIsotextExtended
PFJunior
PFKids
PFKids-LilStuff.ttf
PFKonstantinople
PFKonstantinople Initials.ttf
PFLetterGothicDisplay
PFLetterGothicNext
PFLibera
PFLithoText
PFMacsimile
PFManicAttack
PFMechanica
PFMediterra
PFMonumenta
PFNext
PFOnline
PFPanel
PFPaperback
PFPapernote
PFPlasmatic
PFPlayskool
PFPremierDisplay
PFPremierFrame
PFPremierText
PFPress
PFPsychedelia
PFRadikale
PFRafSkript
PFReminder
PFReport
PFRetrospace
PFRoyalscript
PFScriptor-Ligatures.ttf
PFScriptor-Ornaments.ttf
PFScriptor-Regular.ttf
PFSectorA
PFSectorB
PFSidetrip
PFSignSkript
PFSignSkript-AdClips.ttf
PFStamps
PFStudio
PFSugar
PFSystemplus
PFTemple
PFTemple-Icons.ttf
PFTempleSerif
PFTextbook
PFTraffic
PFTransport
PFUniversal
PFVenue
PFVideotext
PFWonderland
PFWonderland-Wonderbats.ttf
Palatino Linotype
SketchIcons.ttf
SketchIconsbold.ttf
SnoopySnailsOutlineNF.otf
StadionGreek
Tahoma
That_'s Font Folks!.ttf
Times New Roman
Times.suit
TimesRom
Trebuchet MS
UB-Aircraft
UB-AntiqueOlive
UB-AntiqueOlive-Bold
UB-AntiqueOlive-BoldItalic
UB-AntiqueOlive-Italic
UB-AntiqueOliveBlack
UB-AntiqueOliveBlack-Italic
UB-AntiqueOliveCompact
UB-AntiqueOliveCompact-Ita
UB-AntiqueOliveLight
UB-AntiqueOliveLight-Italic
UB-AvantGarde
UB-Baskerville
UB-Baskerville-Bold
UB-Baskerville-BoldItalic
UB-Baskerville-Italic
UB-Bonati
UB-BonatiCond
UB-BonatiHeavy
UB-Byzantine
UB-Calculator
UB-Calligula
UB-Century
UB-Century-Bold
UB-Century-BoldItalic
UB-Century-Italic
UB-Donuts
UB-DonutsCond
UB-End
UB-Europa
UB-FarWest
UB-FarWestExt
UB-Fashion
UB-Fine
UB-Flores
UB-Free
UB-Front
UB-Future
UB-FutureCond
UB-Goudies
UB-Helvetica
UB-Helvetica-Bold
UB-Helvetica-BoldItalic
UB-Helvetica-Italic
UB-HelveticaBlack
UB-HelveticaBlack-Italic
UB-HelveticaCond
UB-HelveticaCond-Bold
UB-HelveticaCond-BoldItalic
UB-HelveticaLight
UB-HelveticaLight-Italic
UB-HelveticaThin
UB-HelveticaThinCond
UB-King
UB-Lucky
UB-Maskat
UB-Muratti
UB-MurattiCond
UB-NewsLetter
UB-Ninza
UB-Omnius
UB-Optima
UB-Optima-Bold
UB-Optima-BoldItalic
UB-Optima-Italic
UB-Paris
UB-Rich
UB-Rockwell
UB-Rockwell-Bold
UB-Rockwell-BoldItalic
UB-Rockwell-Italic
UB-RockwellBlack
UB-RockwellBlack-Italic
UB-RockwellLight
UB-RockwellLight-Italic
UB-Script
UB-Sherlock
UB-SherlockCond
UB-Shop
UB-Sign
UB-Slogan
UB-Soccer
UB-SoccerCondOblique
UB-Souvenir
UB-Souvenir-Bold
UB-Souvenir-BoldItalic
UB-Souvenir-Italic
UB-SouvenirBlack
UB-SouvenirBlack-Italic
UB-SouvenirLight
UB-SouvenirLight-Italic
UB-Times
UB-Times-Bold
UB-Times-BoldItalic
UB-Times-Italic
UB-Unifine
UB-Vampire
UB-World
Verdana
VinnieBoombahOutlineNF.otf
Wingdings
Wingdings 2
Wingdings 3
nbyzn.ttf
soundfx.ttf
Library/Frameworks:
SamsungKiesFoundation.framework
SamsungKiesSerialPort.framework
Library/Input Methods:
.localized
Library/InputManagers:
Library/Internet Plug-Ins:
Google Earth Web Plug-in.plugin
iGetterBundle.plugin
Library/Keyboard Layouts:
Library/LaunchAgents:
com.adobe.AAM.Updater-1.0.plist
com.adobe.ARM.df0ab5bbe6f698196fcc21e3c1e66dcb758bd911f4d637272d9d8109.plist
[email protected]t.plist
com.google.keystone.agent.plist
Library/PreferencePanes:
.TVPC93ED0576A
Library/ScriptingAdditions:
iGetterScriptingAddition.osax
Library/Services:
ToastIt.service
Finallu step 5 returned the following text:
Skype, EyeTV Helper, RemoteHelper, PhoneViewHelper, TappIn, Dropbox, Canon IJ Network Scanner Selector EX, fuspredownloader, StatusMenu
I hope you find it helpful Linc. Many thanks for all the attention! -
Strange problem when tried to convert HelloWorld.class..
Hi friends..
i've downloaded the Java Card SDK 2.2.1, and i tried to compile HelloWorld application that shipped with its distribution..
i found strange problem when i tried to convert HelloWorld.class into .CAP, etc.. :(
I use Windows XP, assume that i've set the Environment Variables needed
i've compiled the HelloWorld.java into HelloWorld.class..
the package of of HelloWorld is : com.sun.javacard.samples.HelloWorld;
and i use this config file :
-out EXP JCA CAP
-exportpath .
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1 com.sun.javacard.samples.HelloWorld.HelloWorld
com.sun.javacard.samples.HelloWorld
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0and then i tried to run converter script in the Console :
*C:\java_card_kit-2_2_1\samples>converter -config com\sun\javacard\samples\HelloWorld\HelloWorld.opt*
*error: file com\sun\javacard\samples\HelloWorld\HelloWorld.opt could not be found*
Usage: converter <options> package_name package_aid major_version.minor_ve
sion
OR
converter -config <filename>
use file for all options and parameters to converter
Where options include:
-classdir <the root directory of the class hierarchy>
set the root directory where the Converter
will look for classes
-i support the 32-bit integer type
-exportpath <list of directories>
list the root directories where the Converter
will look for export files
-exportmap use the token mapping from the pre-defined export
file of the package being converted. The converter
will look for the export file in the exportpath
-applet <AID class_name>
set the applet AID and the class that defines the
install method for the applet
-d <the root directory for output>
-out [CAP] [EXP] [JCA]
tell the Converter to output the CAP file,
and/or the JCA file, and/or the export file
-V, -version print the Converter version string
-v, -verbose enable verbose output
-help print out this message
-nowarn instruct the Converter to not report warning messages
-mask indicate this package is for mask, so restrictions on
native methods are relaxed
-debug enable generation of debugging information
-nobanner suppress all standard output messages
-noverify turn off verification. Verification is defaultPlease help me regarding this, because i'm new in this field..
Thanks in advance..Thanks safarmer for your reply..
i tried this :
C:\java_card_kit-2_2_1\samples>javac -target 1.3 -source 1.1 -g -classpath .\cla
sses;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard\samples\HelloWorld
\*.java
javac: invalid source release: 1.1
Usage: javac <options> <source files>
use -help for a list of possible options
C:\java_card_kit-2_2_1\samples>javac -target 1.3 -source 1.2 -g -classpath .\cla
sses;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard\samples\HelloWorld
\*.java
it seems that i can't specify the -source to 1.1, so i tried to use -source 1.2..
after that, i tried to convert again, and i got this error :
C:\java_card_kit-2_2_1\samples\src>converter -config com\sun\javacard\samples\He
lloWorld\HelloWorld.opt
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to lic
ense terms.
error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file fo
rmat of version 47.0.
conversion completed with 1 errors and 0 warnings.Please help me regarding this..
Thanks in advance.. -
Problem when running a WebDynpro application
Hi,
Can any one help me in solving this.
I got a problem when running a WebDynpro application Which used to run fine before, when i developed it.
Now i got an error showing,
<b>com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=B MSHOST=obtdev4 GROUP=SPACE R3NAME=O20 MSSERV=sapmsO20 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '127.0.0.1:3320' not reached TIME Tue Aug 07 10:06:07 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -10 MODULE nixxi.cpp LINE 2764 DETAIL NiPConnect2 SYSTEM CALL connect ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 2</b>
can any one tell me the solution for it.
Thanks in advance,
MrChowdaryArun,
I had checked for the JCo Connection, tested it I got some error.
But i am unable to understand where exately the problem is as is i already told that it used to work fine with same JCo.
Thanks,
Bharath. -
Strange problem when opening word doc situated in WLS virtual dir
Hi all,
we have a strange problem when opening word doc
situated in C:\Oracle\Middleware\as_1\forms\webutil
we put some word docs there and tried to open from forms using for example web.show_document('http://wp0606:9001/forms/webutil/mug00103.doc', '_blank');
no problem using FF, however in IE8 the word doc is shown in its binary format, this also happens when we try to open the doc in IE8
however when we google and search for instance for a test.doc and then click on this url a file save dialog is shown
that's why we believe that this might be due to a configuration issue of WLS
any help would be greatly appreciated
Kr
MartinI think you have 2 ways to go here. Figure out what html is from wherever weblogic gets it, meaning you have to delve into the docs, snoop
around in directories and find what it must be sending (This is going to be unavoidable if you are going to change what weblogic is doing.
Sooner or later you have to try to figure out where it gets this stuff from)
or
you can experimentally snoop on your url with a tool like wget or curl. These are fundamental web tools.
The latter is always a useful thing to be able to do. (you need to formulate a query to get the content-type).
Whoever managed to get weblogic to serve any files in the first place probably can figure this out. -
Strange problem when transfering songs
Hi Everyone,
I have a very strange problem when i transfer songs to my iphone.
When i transfering songs maually (dragging them from ITunes music library to my iphone) i can see that they are in my iphone (at "On This iPhone"),
but when im looking in my iphone (in the music library) im seeing only 70-80% of the songs.
And the strange thing is that i can see them if im searching them!
Please help.
Thank you!I'll have to rephrase my question. Close this one.
-
A problem when WebHelp launched in IE7.0
We got a very serious problem when WebHelp was launched in
IE7.0.
We connected to the appointed locations in our applications
by using bookmark of WebHelp.
The computer code which we used in out applications such as :
"C:\Program Files\Internet Explorer\IEXPLORE.EXE
\\device\HHH0\Webhelp\HHH0HELP.htm#HHH0D010.htm#BLK01_HISTORY_NO"
When WebHelp was launched in IE6.0, it is normal and can show
out bookmark "BLK01_HISTORY_NO" in HHH0D010.htm correctly.
But in IE7.0 it is abnormal and can't show out
"#HHH0D010.htm#BLK01_HISTORY_NO" in the URL of IE7.0.
It's look like can't connect bookmark "BLK01_HISTORY_NO".
Please help us to solve this problem, and thank you very
much.I wasn't familiar with command.exe so I looked it up in
Google. That seems to suggest it is spyware! I am guessing that it
may well be a valid method but one that has been hijacked. Be that
as it may, could it be that there is something in IE7 that prevents
command.exe from running ? I am not sure from your first post
whether it fails on all calls or just bookmarked calls. If it is
just the latter it probably rules out this train of thought.
Outside my area but you or your developers may want to do the
same Google search and see if it leads you anywhere. -
Strange problem when copying standard program SAPF100 (transaction F.05)
Hi there ABAP'ers,
I've got a very strange problem I can't figure out :/
I'm doing a copy of a standard program - SAPF100, which stands for F.05 transaction.
I copy it to ZSAPF100 and after launching it, filling a selection-screen with data and F8 I'm receiving a dump
GETWA_NOT_ASSIGNED
Field symbol has not yet been assigned.
The termination occurred in the ABAP program "SAPF100" in "DO_SKC1C".
The main program was "ZSAPF100 ".
The termination occurred in line 253 of the source code of the (Include)
program "SAPF100_SBEW"
of the source code of program "SAPF100_SBEW" (when calling the editor 2530).
and when debugging the place in Zcode where error occurs - really a fs is not assigned, whilst in standard code is assigned.
Why such situation appeared? I just copied the standard program and launched a copy :/ How to deal with that problem?
I will be very very very thankful for a help.
Regards. P.I'm doing the copy:
Components:
Source
Text elements
Documentation
Variants
User interface
Screens
INCLUDEs
Includes:
FROM -> TO
<ICON> Z<ICON>
<LINE> Z<LINE>
FIUUMS40 ZFIUUMS40
RKASMAWF ZRKASMAWF
SAPF100_I1 ZSAPF100_I1
SAPF100_POSTINGS ZSAPF100_POSTINGS
SAPF100_SBEW ZSAPF100_SBEW
SAPF100_SLDATA ZSAPF100_SLDATA
SCHEDMAN_EVENTS ZSCHEDMAN_EVENTS
And still DUMP -
Problem when Creating Project (Composite Application Services) in NWDS
I've seen a few posts regarding this but I don't feel as if any real solution was given.
I just installed Netweaver Developer Studio (7.0.15) with the current JDK/JRE (1.6.0_07). When trying to create a new Composite Application Services project within the Studio, using the new project wizard, I get an error: Problem when Creating Project.
I get the EJB Module and Dictionary to create within my navigator with no problems, however, during the creation of the metadata, the error occurs. I do have the metadata folder appear within the navigator, but nothing in it. None of the other three items are created.
I have tried the attempt at deleting the metadata folder within my workspace directory and trying again but the same exact result occurs.
Is there any other solution out there for this problem besides attempting to find older versions of NWDS, etc. that are more "stable"?
Thank you!Durga,
Very simple but effective solution.
I had tried uninstalling / re-installing NWDS with no effect but uninstalling / re-installing NWDS AND all java related products on my machine did work.
Note: For anyone else with this issue in the future. I installed the Java SDK / JRE 1.4.2_18 with NWDS 7.0.15 in case this is also a possible issue with versions.
Thanks, Durga! -
There are some strange problems when i used swc files in my as3 project
Hello everyone,
My development environment: fdk4.0, flash cs5.5, I publish fla file by using flash cs5.5, publish setting is fp version :10.0&10.1 ->swc. I imported swc files to my as3 project and complied them by using flex sdk4.0. When i run my project,fp was crash. when i republished on fp 10.2, the project works. Is there any reason?
another strange problem, for example a MovieClip's aslink named "A" in swc, it has a textfield named "subText". I write code like below:
var mc:A = new A();
mc.subText.text = "test";
when mc called "subText" , fp throws null property error, it can't find subText.. very small number of movieclips have this problem, I sloved this by duplicating a new one and rename it.
but i don't know why ?
thank you for your reply.I should have figured that out from your original post. I think there is a possibility that your bookmarks/history database (places.sqlite) has a corrupted record. Rather than take drastic action on that immediately, could you do a test? The test is to exit Firefox, rename your existing database, and restart Firefox. Firefox should import your last bookmarks backup. You then could check whether the problem remains or whether you got a clean restore of bookmarks. After the test, assuming you prefer to retain your history, you could undo the procedure and try restoring your bookmark backup into the database to see whether that overwrites the problem record. If not, then we would go back to possible drastic action.
'''Test procedure''':
Open your current Firefox settings (AKA Firefox profile) folder using
Help > Troubleshooting Information > "Show Folder" button
Switch back to Firefox and Exit
Pause while Firefox finishes its cleanup, then rename '''places.sqlite''' to something like places_20130614.sqlite. Keep this window open.
Restart Firefox. By design, Firefox should import your last automatic bookmark backup.
If you return to the Library dialog, how does it look?
'''To reverse the test''' (but preserve a backup of your history/bookmark database):
Exit Firefox
Delete the newly created places.sqlite file
Right-click copy and paste the places_20130614.sqlite and rename the copy to places.sqlite
Restart Firefox and open the Library dialog. Should look like it did a few minutes ago before any changes.
''If the test showed no corruption,'' try to restore your last bookmarks backup. The procedure is described in this article: [[Restore bookmarks from backup or move them to another computer]].
Does any of that get us closer to a solution? -
PS. I am on Mac OS 10.9.3
Hi sethup,
Have you uninstalled Acrobat 8 before installing Acrobat 11?
Did the installation for Acrobat 11 go without any errors?
If yes then it might be an issue with the licensing. We might have to check the amt3.log file.
Do you face the same issue when you try to launch the application in the root user account as well.
Refer : Enabling and using the "root" user in Mac OS X
Regards,
Rave -
UI problem when run java swing application on MAC OSX
Hello,
I have problem when i run my java swing application on MAC OSX.
Dialog box is not properly visible in MAC means ita size increses.
its size incresed and and some content or buttons on that dialog are not fully visible.
I can only see partial message or button.
If any one have idea about this problem then give the solution.
Thanks :)
ShwetaI am using following way to create dialog
JOptionPane optionpane = new JOptionPane(new Object[]{lblMsgUp}, JOptionPane.OK_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE, null, choices, "Save");
JDialog dialog = optionpane.createDialog(parent, "Save");
dialog.setSize(450, 125);
dialog.setVisible(true); -
Strange problem when joining two tables
Hi,
I have recently encountered a strange problem on an Oracle 11gR2 database which is optimized for Datawarehouse usage.
I am using two tables that have a relationship enforced by two fields of type NUMBER(10).
The problem is that when I am joining these two tables very often I get strange results and when I re-execute the query I get a different result. I saw in the explain plan that the Hash Join is used for joining these two tables.
select count(*)
from recharge_history rh, recharge_history_balance rhb
where rh.recharge_id = rhb.recharge_id
and rh.recharge_id2 = rhb.recharge_id2
and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
If I explicitly set the Join method to some other type through SQL Hints, or if I use to_number function when joining (even though the two fields used for join in both tables are of NUMBER(10) type), I get the correct result, like for example below:
select /*+ USE_MERGE (rh rhb) */
count(*)
from recharge_history rh, recharge_history_balance rhb
where rh.recharge_id = rhb.recharge_id
and rh.recharge_id2 = rhb.recharge_id2
and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
select
count(*)
from recharge_history rh, recharge_history_balance rhb
where to_number(rh.recharge_id) = t_number(rhb.recharge_id)
and to_number(rh.recharge_id2) = (to_number)rhb.recharge_id2)
and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
Thank you for your time.
EdrinHi, Edrin,
961841 wrote:
Hi,
I have recently encountered a strange problem on an Oracle 11gR2 database which is optimized for Datawarehouse usage.
I am using two tables that have a relationship enforced by two fields of type NUMBER(10).
The problem is that when I am joining these two tables very often I get strange results and when I re-execute the query I get a different result. I saw in the explain plan that the Hash Join is used for joining these two tables.
select count(*)
from recharge_history rh, recharge_history_balance rhb
where rh.recharge_id = rhb.recharge_id
and rh.recharge_id2 = rhb.recharge_id2
and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
Don't try to compare DATEs with VARCHAR2s, such as '30-Dec-2012'. The VARCHAR2 '31-Aug-2012' is between '30-Dec-2012' and '31-Dec-2012'; so are '31-Aug-2013' and '30-Mar-1999'.
That may not be your only problem, but it's still a problem.
If you're getting incosistent results, then it sounds like a bug. Start a service request with Oracle support. -
Strange problem when importing Ai file to PS
Hello everyone,
I'm having a strange problem with a banner picture of mines when inporting an Illustrator file to Photoshop.
I made some clouds in Ai using this wonderful tutorial I found on these forums, and it has a really great haze effect.
The problem is that that haze effect gets ruined when I import this Ai file to photoshop, and it turns out super jagged and loses its visual effect.
I was doing this project for an online competition for making a banner, so its too late to fix now because of deadlines (this caused me to finish the whole thing in Illustrator), but I need to know for the future what the problem was.
I had a Roughen Illustrator filter on as a part of the cloud, which is the only thing that makes sense to me, but is there a way to rasterize my Ai file without the white boxes and import it to Photoshop or anything I can do that won't ruin it?
Is it because it is an effect from Ai that it won't work in PS?
Any help is greatly appreciated and I am currently using Ai and PS CS6, and my experience with the program is currently learning steadily as a student in school.
(I will update this question with pictures of my problem specifically when I figure out how and when I get the time to do so if necessary.)
Edit: Here are the pictures of my problem. On the top is in Ai, how it is supposed to look, and to the bottom is how it turns out in Ps for some reason.I noticed that when you scrub the timeline in the .fla you
get a different result then if you run the movie..... how can that
be? -
Strange problem when opening new message.
I have a rather annoying problem when I open a newly received SMS from a particular contact (lets call him Bill).
When I open the new message from Bill, either by swiping to unlock or touching a banner message at the top of the screen. Instead to being shown the message itself, I will automatically be taken to the 'start new message' screen with none of our message history (i.e. as if I am starting to type an entirely new message to Bill)
I can then cancel this and return to myself and Bill's normal message stream.
Any ideas how to get around this annoyance? Thank you.I think you have 2 ways to go here. Figure out what html is from wherever weblogic gets it, meaning you have to delve into the docs, snoop
around in directories and find what it must be sending (This is going to be unavoidable if you are going to change what weblogic is doing.
Sooner or later you have to try to figure out where it gets this stuff from)
or
you can experimentally snoop on your url with a tool like wget or curl. These are fundamental web tools.
The latter is always a useful thing to be able to do. (you need to formulate a query to get the content-type).
Whoever managed to get weblogic to serve any files in the first place probably can figure this out.
Maybe you are looking for
-
Issue while passing Target URL dynamically in SOAP Receiver Adapter
Experts, I am stuck with an issue while passing the Target URL dynamically. The UDF required for this works just fine. I can see the Target URL in Dynamic Configuration header(The Key is TServerLocation) in SXMB_MONI but the request that I am sending
-
WANTED FUTURES FOR Fireworks CS5
Hello iv been using FW for over 8 years. You can discover my works at 3AKIS.COM (all works made in FW). And i really love it for it's great user interface and ability to create quick and nice work. In general i take 45mins-2 hours to create wonderful
-
Printing chat logs from an ipod touch???
My daughter has an ipod touch and has downloaded Goober chat to her ipod. It does store chat logs is there any way these chat logs can be printed? If so please state directions in detail as I don't know how to use the ipod touch clearly. Thanks for a
-
Suggest names for configuration tables
Hi all, Not sured whether my subject belongs to SQL and PL/SQL forum section... My need is to find suggestion for naming configuration tables (3 tables). Give me please some examples.
-
Upgrade from Cache 3.1.x Software to ACNS 4.2.3
I have a problem in upgrading my CE590 from Cache 3.1.x Software to ACNS 4.2.3 Software. The following error appear : Integrity check failed for /sw/tmp_bundle. Install addon "Cisco Upgrade Diamond Ruby Bundle" failed (256) I tried to install deltmpp