Strange problem when a c++ program is triggered by Runtime.exec()
I am working in linux system. I have 2 programs:
1. one is a c++ program e.g. AAA. In this program, i use "system("gcc ...")" to call gcc to do some internal processing
2. the other is a java program BBB. In this program, i use Runtime.exec("AAA") to run program AAA.
case 1
if I run c++ program AAA directly, everything goes well, gcc call via "system" is successful.
case 2
if I run java program BBB to trigger AAA indirectly, the AAA can be executed, but the system call (gcc call inside AAA) is failed.
so, what is wrong? any hints? what is the solution to make case #2 work? I just want to use BBB to trigger AAA, and the system call should also be successful.
thanks in advance for your help!
"...but the system call (gcc call inside AAA) is failed."
Isn't terribly descriptive, but I'm guessing that it complains it can't find gcc?
If that's the case then it's because the call to Runtime.exec() runs the code in a shell with no idea where anything is, whereas when you run the C++ code straight it is running in the shell you kicked it off in. Something along those lines anyway.
Someone else'll be able to tell you how to get it to work. I'm sure I've seen this sort of problem here several times.
Similar Messages
-
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 -
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 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.. -
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.
-
Problem when calling external program
Hi,
I have a strange problem and no more idea how to solve it.
What I do:
In Java I call an external Fortran-exe with Runtime.getRuntime().exec(...) This Fortran program creates 4 files.
What I get:
One of the 4 files is incomplete, the first few lines are missing.
What makes me wonder:
When I take the exec-statement to the commandline and let it run there, everything is fine and the files contain all the info I need. All the 4 files are correct then.
What I also tried:
I tried to copy the (incomplete) file within Fortran. That means when I call the Fortran program I get 2 identical files then but with different filenames. Doing so on the commandline everything is fine again. But again, the same commandline String called in the exec in my Java program it is getting worse: The formerly incomplete file is empty now with 0 bytes.
Even if I wait for the process to finish does not help.
I do not understand it any more and would really like to know what happens there, why, and what can I do to avoid it or to get my complete output files. What does Runtime.getRuntime().exec(myString) do different than when I take the myString on the commandline?
Any hints welcome.
TIAHi,
unfortunately this does not help. I have already about 15 Fortran programs running this way which work accurately. So a possible problem with output stream does not look reasonable to me in this case. -
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? -
Problem when I execute program SCM in background
Hi experts,
I am with problem when I execute a program (SCM) in background. I inserted a new field (estoque_seg(10)) and the process stopped at execute in background.When I call transaction and press F8, works but for this, I need jump the consistence IF sy-batch IS INITIAL....Dont has any bath imput, only functions. Any idea?
Follow below the code:
Estrutura para tabela ENTRADA
DATA: BEGIN OF st_entrada,
matnr(40) TYPE c,
werks(20) TYPE c,
ponto_abas(10) TYPE c,
estoque_max(10) TYPE c,
cobertura(10) TYPE c,
estoque_seg(10) TYPE c, " Erlon Lourenço 20/01/2011
END OF st_entrada.
Estrutura para tabela de LOG
*TYPES: BEGIN OF st_saida,
pernr(8) TYPE c ,
date(10) TYPE c,
er_contribuition(15) TYPE c,
tax(15) TYPE c,
msg_erro(80) TYPE c,
END OF st_saida.
Tabela para obter descricao da mensagem
*DATA: ti_saida TYPE STANDARD TABLE OF st_saida WITH HEADER LINE
INITIAL SIZE 0.
Tabela que recebera o arquivo texto
DATA: BEGIN OF ti_entrada OCCURS 0.
INCLUDE STRUCTURE st_entrada.
DATA: END OF ti_entrada.
DATA: BEGIN OF it_matid OCCURS 0,
matnr TYPE /sapapo/matkey-matnr,
matid TYPE /sapapo/matkey-matid,
END OF it_matid.
DATA: BEGIN OF it_locid OCCURS 0,
locno TYPE /sapapo/loc-locno,
locid TYPE /sapapo/loc-locid,
END OF it_locid.
DATA: BEGIN OF it_matlotsz OCCURS 0,
target_dur TYPE /sapapo/matlotsz-target_dur,
END OF it_matlotsz.
DATA: wa_matloc LIKE /sapapo/matloc OCCURS 0 WITH HEADER LINE,
wa_matlsim LIKE /sapapo/matlsim OCCURS 0 WITH HEADER LINE,
wa_matlotsz LIKE /sapapo/matlotsz OCCURS 0 WITH HEADER LINE.
Variáveis Globais
DATA: v_tabix TYPE sy-tabix,
v_vrsioid TYPE /sapapo/apo01-vrsioid,
v_tam TYPE i.
Select-Options & Parameters
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_versao TYPE /sapapo/apo01-vrsioex OBLIGATORY DEFAULT '000',
p_abas AS CHECKBOX ,
p_est AS CHECKBOX ,
p_cober AS CHECKBOX ,
p_estsg AS CHECKBOX. " ERLON LOURENCO - 20/01/2012 - Estoque Segurança
SELECTION-SCREEN END OF BLOCK b1.
Start-of-Selection
START-OF-SELECTION.
PERFORM consiste.
PERFORM f_upload.
PERFORM f_processa_batch.
PERFORM f_saida_dados.
MESSAGE i000 WITH 'Processo encerrado com Sucesso'.
END-OF-SELECTION.
*& Form F_UPLOAD
text
--> p1 text
<-- p2 text
FORM f_upload .
DATA: lc_file TYPE string.
TYPES: BEGIN OF st_ent,
cam(80),
END OF st_ent.
DATA: ti_ent TYPE STANDARD TABLE OF st_ent WITH HEADER LINE
INITIAL SIZE 0.
RANGES: r_file FOR zget0001-field_content.
r_file[] = zbs_constantes=>obter( i_bukrs = space i_field = 'FILE' i_process = 'PONTO-REAB' ).
READ TABLE r_file INDEX 1.
lc_file = r_file-low.
CLEAR: ti_entrada,
ti_entrada[],
ti_ent,
ti_ent[].
abrir arquivo para leitura
OPEN DATASET lc_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
MESSAGE i000 WITH text-e01.
STOP.
ENDIF.
Leitura de arquivos
DO.
READ DATASET lc_file INTO ti_ent.
IF sy-subrc <> 0.
EXIT.
ENDIF.
APPEND ti_ent.
ENDDO.
Fechamento do arquivo
CLOSE DATASET lc_file.
LOOP AT ti_ent.
SPLIT ti_ent AT ';' INTO ti_entrada-matnr ti_entrada-werks ti_entrada-ponto_abas ti_entrada-estoque_max ti_entrada-cobertura ti_entrada-estoque_seg.
APPEND ti_entrada.
ENDLOOP.
ENDFORM. " F_UPLOAD
*& Form F_PROCESSA_BATCH
text
--> p1 text
<-- p2 text
FORM f_processa_batch .
LOOP AT ti_entrada.
v_tabix = sy-tabix.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ti_entrada-matnr
IMPORTING
output = ti_entrada-matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ti_entrada-ponto_abas
IMPORTING
output = ti_entrada-ponto_abas.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ti_entrada-estoque_max
IMPORTING
output = ti_entrada-estoque_max.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ti_entrada-cobertura
IMPORTING
output = ti_entrada-cobertura.
IA - ERLON LOURENCO - 20/01/2012
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ti_entrada-estoque_seg
IMPORTING
output = ti_entrada-estoque_seg.
FA - ERLON LOURENCO - 20/01/2012
MODIFY ti_entrada INDEX v_tabix.
ENDLOOP.
CLEAR: it_matid,
it_matid[],
it_locid,
it_locid[],
wa_matlsim,
wa_matlsim[],
wa_matloc,
wa_matloc[].
SELECT matnr matid INTO TABLE it_matid FROM /sapapo/matkey
FOR ALL ENTRIES IN ti_entrada WHERE matnr = ti_entrada-matnr.
SELECT locno locid INTO TABLE it_locid FROM /sapapo/loc
FOR ALL ENTRIES IN ti_entrada WHERE locno = ti_entrada-werks.
IF p_versao = '000'.
LOOP AT ti_entrada.
READ TABLE it_matid WITH KEY matnr = ti_entrada-matnr.
IF sy-subrc = 0 .
READ TABLE it_locid WITH KEY locno = ti_entrada-werks.
IF sy-subrc = 0.
SELECT SINGLE * INTO wa_matloc FROM /sapapo/matloc WHERE matid = it_matid-matid AND
locid = it_locid-locid.
IF sy-subrc = 0.
IF p_abas = 'X'.
wa_matloc-reord = ti_entrada-ponto_abas.
ENDIF.
IF p_est = 'X'.
wa_matloc-maxstock = ti_entrada-estoque_max.
ENDIF.
" IA - Erlon Lourenço - 23/01/2012
if p_estsg = 'X'.
wa_matloc-safty = ti_entrada-estoque_seg. " Erlon Lourenço - 23/01/2012
endif.
"FA - Erlon Lourenço - 23/01/2012
IF p_abas = 'X' OR
p_est = 'X' OR
p_estsg = 'X'. " Erlon Lourenço - 23/01/2012
APPEND wa_matloc TO wa_matloc.
ENDIF.
SELECT SINGLE * INTO wa_matlotsz FROM /sapapo/matlotsz WHERE lszid = wa_matloc-lszid.
IF sy-subrc = 0.
IF p_cober = 'X'.
wa_matlotsz-target_dur = ti_entrada-cobertura.
APPEND wa_matlotsz TO wa_matlotsz.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP. " LOOP AT ti_entrada.
ELSE.
Verifica versáo para saber se preenche a tabela wa_matlsim
SELECT SINGLE vrsioid INTO v_vrsioid FROM /sapapo/apo01 WHERE vrsioex = p_versao.
IF sy-subrc = 0.
SELECT * INTO TABLE wa_matlsim FROM /sapapo/matlsim WHERE simid = v_vrsioid.
IF wa_matlsim[] IS NOT INITIAL.
LOOP AT ti_entrada.
READ TABLE it_matid WITH KEY matnr = ti_entrada-matnr.
IF sy-subrc = 0 .
READ TABLE it_locid WITH KEY locno = ti_entrada-werks.
IF sy-subrc = 0.
READ TABLE wa_matlsim WITH KEY matid = wa_matloc-matid
locid = wa_matloc-locid.
IF sy-subrc = 0.
wa_matlsim-reord = ti_entrada-ponto_abas.
wa_matlsim-maxstock = ti_entrada-estoque_max.
wa_matlsim-safty = ti_entrada-estoque_seg. " Erlon Lourenço - 23/01/2012
MODIFY wa_matlsim INDEX v_tabix.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP. " LOOP AT ti_entrada.
ENDIF. " IF wa_matlsim[] IS NOT INITIAL.
ENDIF. " IF sy-subrc = 0. 1º
ENDIF. "IF p_versao = '000'
Funcáo que atualiza campos nas bases de dados.
CALL FUNCTION '/SAPAPO/DM_PRODUCTS_POST'
EXPORTING
iv_vb = 'U'
TABLES
it_matloc = wa_matloc
it_matlsim = wa_matlsim
it_matlotsz = wa_matlotsz
EXCEPTIONS
not_qualified = 1
insert_failed = 2
update_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " F_PROCESSA_BATCH
FORM BDC_DYNPRO
*& Form F_SAIDA_DADOS
text
--> p1 text
<-- p2 text
FORM f_saida_dados .
IF ti_saida[] IS NOT INITIAL.
DATA: lc_file TYPE string.
lc_file = p_erros.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = lc_file
FILETYPE = 'ASC'
TABLES
data_tab = ti_saida
FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE i005 WITH 'Error to unload file !'.
STOP.
ENDIF.
ENDIF.
ENDFORM. " F_SAIDA_DADOS
*& Form CONSISTE
text
--> p1 text
<-- p2 text
FORM consiste .
IF p_abas IS INITIAL AND
p_est IS INITIAL AND
p_cober IS INITIAL AND
p_estsg IS INITIAL. " ERLON LOURENCO - 20/01/2012 - Estoque Segurança
MESSAGE i000 WITH text-e03.
STOP.
ENDIF.
IF sy-batch IS INITIAL.
MESSAGE i000 WITH text-e02.
STOP.
ENDIF.
Best regards,
Erlon Lourenço
Edited by: Erlon Louren on Jan 27, 2012 11:09 AMHi Raja,
Check weather there are any enhancements to the datasource.If yes once check the code in CMOD.Seems there is some discrepency in that.
Regards
Karthik -
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? -
How to tackle the dataflow problem when Value Change event always triggers after another GUI event
We know that Value change event always triggers after another GUI event. Eg, the user modifies string control, the user clicks on a boolean control. Then event boolean clicked is triggered before event string control value change.
Now suppose somehow the GUI event that must happen to subsequently trigger the Value change event can potentially affect the data that Value change event is supposed to work on. How can we tackle this problem ?
For example, in a mockup application that the grand purpose is to have user entered values in a textbox logged to a file (no missing information is accepted, and there is a boolean to determine how the information is logged).
There are 2 controls, boolean A when clicked (mouse down) will load random number in text box B. Text box B is designed with event structure VALUE change which saves whatever values user enters into text box B to a log file.
There are 3 problems when instead of clicking anywhere on the front panel after modifying text box B, the user ends up clicking on boolean control A.
1. Event mouse down on Boolean control A will execute first, modifying text box B content before the user entered values in B get saved.
2. The value of boolean A can potentially affect how textbox B is loggged.
3. The value of boolean A affects how the file is logged and this is indeterminate. Somehow when running this VI with no Highlighting, the textbox B Value change event executes -before- boolean A value is updated (F to T). When running this VI with Highlighting, the boolean A value is updated (F to T) (because we click on it) -before- textbox B value change event occurs. Why is it like this ?
Now the situation I made up seems non-sense, but I believe it resembles one way or another a problem that you might run into. How would you solve this problem elegantly ?
You can set the string control to "update while typing".
Are you sure appending the log to itself is reasonable? Wouldn't it grow without bounds if the users keeps entering strings or pressing the ingore button?
Why isn't the "constant" a diagram constant instead of a control. Is the user allowed to change it?
To reset just write empty strings or a false to local variables of the controls (renit to defaults" seems a bit heavy handed).
All you probably need is a single event case for "ignore:value change" and "String" value changed", no need for the local variable..
Also add a stop button and an event for it.
You don't need the timeout event.
-
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 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. -
A strange problem when uploading a file in Struts
When i upload a file, the other elements in the form of the jsp cannot be got by the ActionForm, instead, the getters show that they are "null"s. But when i upload no file, everthing is ok.
Moreover, the problem happens when i update an article which can have an picture with it, but when i add a new article, the problem does not appear, instead, the file can be uploaded and other element can also be got.
i think i might be a problem of the volume of the request , because i put more information to update than to add.
Hope someboby can help me with the problem.When i upload a file, the other elements in the form of the jsp cannot be got by the ActionForm, instead, the getters show that they are "null"s. But when i upload no file, everthing is ok.
Moreover, the problem happens when i update an article which can have an picture with it, but when i add a new article, the problem does not appear, instead, the file can be uploaded and other element can also be got.
i think i might be a problem of the volume of the request , because i put more information to update than to add.
Hope someboby can help me with the problem. -
Problem of executing a process under Linux using Runtime.exec
Hi, All
I am having a problem of executing a process under Linux and looking for help.
I have a simple C program, which just opens a listening port, accept connection request and receive data. What I did is:
1. I create a script to start this C program
2. I write a simple java application using Runtime.exec to execute this script
I can see this C program is started, and it is doing what it supposed to do, opening a listening port, accepting connection request from client and receiving data from client. But if I stop the Java application, then this C program will die when any incoming data or connection request happens. There is nothing wrong with the C program and the script, because if I manually execute this script, everying works fine.
I am using jre1.4.2_07 and running under Linux fedora 3.0.
Then I tried similar thing under Windows XP with service pack2, evrything works OK, the C program doesn't die at all.Mind reading is not an exact science but I bet that you are not processing either the process stdout or the stderr stream properly. Have you read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html ?
Maybe you are looking for
-
Adobe Creative Cloud can't signin is there alternative to downloading these programs?
I just purchased Adobe Creative Cloud and when went to sign in all it would do is sign me out in which I never got to sign in lol is there alternative way to download this software as I have Photoshop and Lightbloom
-
FI-MM and FI- SD Queries... Please Help
Hi Gurus, Please help me with the following queries- 1. How movement type and valuation class helps in determining G/L A/C? 2. Where do I configure GL A/C as per movement type and valuation class? 3. Where I can see G/L postings of individual materia
-
TS1702 Lost pictures and txt when upgrade to iOS
How do I retrieve pics and text messages after update to iOS
-
Charting Query: How to show detailed chart when clicked
Hi , I have a flash chart that shows monthly summary values . When user clicks on a bar ( say for month of JAN), I want to show another chart based on data for JAN only. I am trying to figure out how to show my detail chart when user clicks on a summ
-
What happened to the ColorSync option in my print dialog box?
I am using a Canon Selphy CP 740 for photo printing with my Alu iMac, and since new, I noticed most / all of the photos came out too dark. However I discovered the ColorSync option to lighten the image, and this fixed the problem. Since upgrading to