Debugging in "strict mode" while using external library assets

Hi everyone. A new ActionScript-3 user here with a question on strict mode.
   I have multiple Flash pages which use the same art assets. To support modularity and possibly decrease total download time, I have implemented this by placing the shared assets into the library of a shared .swf file (the other .swf files all load this shared .swf file). The shared .swf contains ActionScript routines to place instances of the assets onto the stage and to perform other common functionality.
   A drawback to this strategy is that, correct me if I'm wrong, "strict mode" can not be used to debug calls to functions which exist in external .swf files. That is, if the parent .swf makes a call to a function which is defined within an externally loaded .swf, that function call will be reported as an error in strict-mode because Flash is unaware of the contents of an external .swf at compile time (though it is aware at run-time.)
   My understanding is that shared code can be compiled under strict-mode if the shared code exists purely as an external .as file, not as an external .swf file. However, again please correct me if I'm wrong, art assets which are shared at run-time must exist in an external .swf file. Therefore, by my understanding, if run-time shared assets are desired, then strict mode will not properly compile the projects.
   Is my understanding correct?
   Thanks for any help,
     - Rashid

      Posting an update.
      I have since found a way to compile in strict mode a project which loads an external .swf and acesses its functions. This external swf is able to have a library of its own which is accessed in the external swf's own ActionScript.
      Unfortunately, the solution I have found increases the size of the project's compiled swf. If anyone knows of a way to solve this problem without increasing swf size, I would be quite grateful if you were to share your knowledge.
      Posted below is the solution I am aware of, which increases file size. In these steps, “main project” refers to the top-level Flash project which is attempting to load other swf's. “External project” refers to an swf which is to be loaded by the main project.
1) Publish the external projects as swc files. “Swc” is a class file, and is to be accessed by the main project when debugging under strict mode. The .swc presumably contains information about external project's library items which are to be exported for ActionScript.
      To create an .swc file, head to “File->Publish Settings...->Flash”. Check the “Export SWC” box.
2) In the main project, add the external projects' .swc files to the external library path. This is found in, “File->Publish Settings...->Flash->Settings->External library path”. Either individual swc files can be added here (via the SWC file button) or the name of the directory where they reside (via the Path button). Both approaches should work.
3) Somewhere in the main project's ActionScript, the external project is likely being loaded via a line of code similar to myLoaderObject.load( myURLRequest ). For this new approach, it is now necessary to make use of the second parameter to load(), the loader context. Here's the new line of code:
myLoaderObject.load( myURLRequest, new LoaderContext( false, ApplicationDomain.currentDomain ) );
      If the LoaderContext parameter is NOT passed, then Flash unfortunately shall not report this as an error. Instead, you may observe strange behavior when the external swf attempts to use its exported library items.
4) If the main project's code refers to the external project's class by name, then that class will need to be “import”ed into the main project's code. Without this, the compiler will complain about not recognizing the class.
5) In the main project, edit  “File->Publish Settings...->Flash->Settings->Source path”.  Add the path to the external project's .as class file. Without this, the main project shall give a run-time error of not being able to find the external class.
   This final step, 5, is what increases the size of the main project's swf. I have a project with a few nested .swf loads, and the main project's swf increased by about 10Kb when using this solution.
      This does not seem proper. That is, one would desire the sizes of the final swf's to remain unchanged regardless of the level of compile-time error reporting. If my interpretation of an .swc class file is correct, then it seems logical to presume that step 5 above should not even be necessary, because the class information is given to the compiler/debugger through the .swc.
   Anyone know what I am doing wrong, or otherwise how to get around this problem?
   Thanks bunches.

Similar Messages

  • [ps3mediaserver][pms-svn][AUR] No sound while using external subtitles

    Greetings everyone,
    I am experiencing some weird behavior while using External Subtitles, e.g. Playing an AVI file with PS3MediaServer works fine but playing the very same AVI file with external subtitles gives me the video with subtitles and no sound.
    My Server configuration is as follows :
    Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
    RAM :2048 Mo
    OS : Archlinux 2.6.37-ARCH #1 SMP PREEMPT Tue Mar 8 08:34:35 CET 2011 x86_64
    Target : Playstation 3 Slim, firmware 3.60
    Here are the various Sofware versions I use :
    PMS version I am using is PS3 Media Server 1.21.0 (built from AUR, PKG: pms-svn)
    Java version is Java: 1.6.0_22-Sun Microsystems Inc.
    MPlayer version is "MPlayer SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team" and so is "MEncoder SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team"
    TSMuxer version is "1.10.6-10"
    FFMpeg version is "FFmpeg version git-2611e52"
    The network configuration of the server is : 192.168.0.20, netmask 255.255.255.0 ; 100MBits Full Duplex (Wired)
    The network configuration of the Playstation 3 is : 192.168.0.15, netmask 255.255.255.0 ; Auto (Wired, no WiFi !)
    Both are linked on a 100MBits Switch : Playstation 3 <--> Switch 100 Mbits <--> PS3 Media Server
    My PMS.conf is :
    thumbnails = true
    language =
    prevents_sleep_mode = true
    folders = \/srv\/shares
    network_interface = eth0
    hide_empty_folders = true
    hide_media_library_folder = true
    hide_transcode_folder = true
    hide_enginenames = true
    enable_archive_browsing = false
    audio_thumbnails_method = 2
    mencoder_subfribidi = false
    mencoder_disablesubs = false
    autoloadsrt = true
    hostname =
    port = 5001
    thumbnail_seek_pos = 10
    nbcores = 4
    turbomode = true
    minimized = false
    hidevideosettings = false
    charsetencoding = 850
    engines = mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,mencoderwebvideo,mplayervideodump,mplayerwebaudio,ffmpegdvrmsremux
    avisynth_convertfps = true
    avisynth_script = #AviSynth script is now fully customisable
    transcode_block_multiple_connections = false
    tsmuxer_forcefps = true
    tsmuxer_preremux_pcm = false
    tsmuxer_preremux_ac3 = false
    audiochannels = 2
    audiobitrate = 384
    maximumbitrate = 0
    skiploopfilter = false
    mencoder_fontconfig = false
    mencoder_font =
    mencoder_forcefps = false
    mencoder_usepcm = false
    mencoder_intelligent_sync = true
    mencoder_decode =
    mencoder_encode = keyint=1:vqscale=1:vqmin=2
    mencoder_nooutofsync = true
    # mencoder_audiolangs = fre,eng
    # mencoder_sublangs = fre,off;fr,off;eng,off;en,off
    mencoder_audiosublangs = fre,off;fr,off;eng,off;en,off
    mencoder_ass_scale = 1.0
    mencoder_ass_margin = 10
    mencoder_ass_outline = 1
    mencoder_ass_shadow = 1
    mencoder_noass_scale = 3
    mencoder_noass_subpos = 2
    mencoder_noass_blur = 1
    mencoder_noass_outline = 1
    mencoder_subcp = cp1252
    mencoder_ass = false
    mencoder_yadif = false
    mencoder_scaler = false
    mencoder_scalex = 0
    mencoder_scaley = 0
    ffmpeg = -g 1 -qscale 1 -qmin 2
    # The next value has to be chosen very carefully: to low = possible stuttering if the network is congested, but
    # to high causes the java heap to be to small. Check the -Xmx-setting in /opt/pms/PMS.sh and raise it to 1024M
    # or higher if you see unexplainable Out Of Memory-errors in the debug.log
    maxvideobuffer = 400
    use_mplayer_for_video_thumbs = false
    # The next value sorts your media files. 0 (default) = A-Z while 1 = Z-A
    sort_method =
    usecache = true
    forcetranscode=
    Here are the tests I have run :
    MediaInfo output
    General
    Complete name : test without subs.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 350 MiB
    Duration : 42mn 24s
    Overall bit rate : 1 153 Kbps
    Writing application : transcode-1.0.6
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 42mn 24s
    Bit rate : 978 Kbps
    Width : 624 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.186
    Stream size : 296 MiB (85%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 42mn 23s
    Bit rate mode : Variable
    Bit rate : 160 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 49.4 MiB (14%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.58 video frame)
    Writing library : LAME3.90.
    Encoding settings : -m j -V 4 -q 2 -lowpass 18 --abr 160
    And its very same but with external subtitles :
    -rw-r--r-- 1 svc-pms svc-pms 77159 Oct 12 12:57 test with subs.srt
    -rw-rw-r-- 1 svc-pms svc-pms 366711578 Oct 23 10:50 test with subs.avi
    MediaInfo output, just to acknowledge it is the same file, but with a different name
    General
    Complete name : test with subs.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 350 MiB
    Duration : 42mn 24s
    Overall bit rate : 1 153 Kbps
    Writing application : transcode-1.0.6
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 42mn 24s
    Bit rate : 978 Kbps
    Width : 624 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.186
    Stream size : 296 MiB (85%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 42mn 23s
    Bit rate mode : Variable
    Bit rate : 160 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 49.4 MiB (14%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.58 video frame)
    Writing library : LAME3.90.
    Encoding settings : -m j -V 4 -q 2 -lowpass 18 --abr 160
    A- I tried playing the AVI file without external subtitles and it is working fine. 
    /var/log/pms.log :
    GUI environment not available
    Switching to console mode
    [main] TRACE 06:17:02.228 Starting PS3 Media Server 1.21.0
    [main] TRACE 06:17:02.237 by shagrath / 2008-2011
    [main] TRACE 06:17:02.237 http://ps3mediaserver.org
    [main] TRACE 06:17:02.237 http://ps3mediaserver.blogspot.com
    [main] TRACE 06:17:02.238 http://code.google.com/p/ps3mediaserver
    [main] TRACE 06:17:02.238
    [main] TRACE 06:17:02.238 Java: 1.6.0_22-Sun Microsystems Inc.
    [main] TRACE 06:17:02.238 OS: Linux amd64 2.6.37-ARCH
    [main] TRACE 06:17:02.238 Encoding: UTF-8
    [main] TRACE 06:17:02.238 PMS.conf: /filers/fvEXT3-01/_applications_/opt/pms/PMS.conf
    [main] TRACE 06:17:02.238 Working directory: /filers/fvEXT3-01/_applications_/opt/pms
    [main] TRACE 06:17:02.245 Temp folder: /tmp/ps3mediaserver
    [main] TRACE 06:17:02.652 Loading configuration file: FreeboxHD.conf
    [main] TRACE 06:17:02.662 Loading configuration file: XBMC.conf
    [main] TRACE 06:17:02.666 Loading configuration file: FreecomMusicPal.conf
    [main] TRACE 06:17:02.669 Loading configuration file: XBOX360.conf
    [main] TRACE 06:17:02.685 Loading configuration file: PS3.conf
    [main] TRACE 06:17:02.705 Loading configuration file: Streamium.conf
    [main] TRACE 06:17:02.708 Loading configuration file: WDTVLive.conf
    [main] TRACE 06:17:02.710 Loading configuration file: N900.conf
    [main] TRACE 06:17:02.712 Loading configuration file: Philips.conf
    [main] TRACE 06:17:02.715 Loading configuration file: Bravia4500.conf
    [main] TRACE 06:17:02.718 Loading configuration file: WMP.conf
    [main] TRACE 06:17:02.720 Loading configuration file: Samsung.conf
    [main] TRACE 06:17:02.722 Loading configuration file: Bravia5500.conf
    [main] TRACE 06:17:02.724 Loading configuration file: Realtek.conf
    [main] TRACE 06:17:02.726 Loading configuration file: Kuro.conf
    [main] TRACE 06:17:02.729 Loading configuration file: Android.conf
    [main] TRACE 06:17:02.731 Loading configuration file: BraviaEX.conf
    [main] TRACE 06:17:02.734 Loading configuration file: PopcornHour.conf
    [main] TRACE 06:17:02.736 Checking font cache... launching simple instance of MPlayer... You may have to wait 60 seconds!
    [main] TRACE 06:17:04.173 Done!
    [main] TRACE 06:17:04.210 Loading plugins from /filers/fvEXT3-01/_applications_/opt/pms/plugins
    [main] TRACE 06:17:04.227 No plugins found
    [main] TRACE 06:17:04.257 Registering transcoding engine FFmpeg Audio
    [main] TRACE 06:17:04.300 Registering transcoding engine MEncoder
    [main] TRACE 06:17:04.300 Registering transcoding engine MPlayer Audio
    [main] TRACE 06:17:04.301 Registering transcoding engine MEncoder Web
    [main] TRACE 06:17:04.301 Registering transcoding engine MPlayer Video Dump
    [main] TRACE 06:17:04.301 Registering transcoding engine MPlayer Web
    [main] TRACE 06:17:04.303 Registering transcoding engine TsMuxer
    [main] TRACE 06:17:04.303 Registering transcoding engine Audio High Fidelity
    [main] TRACE 06:17:04.303 Registering transcoding engine VLC Audio Streaming
    [main] TRACE 06:17:04.304 Registering transcoding engine VLC Video Streaming
    [main] TRACE 06:17:04.304 Registering transcoding engine Raws Thumbnailer
    [main] TRACE 06:17:04.401 Scanning network interface eth0 / eth0
    [main] TRACE 06:17:04.403 Using address /192.168.0.20 found on network interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.20;
    [main] TRACE 06:17:04.403 Created socket: /192.168.0.20:5001
    [main] TRACE 06:17:04.548 Using database located at : /filers/fvEXT3-01/_applications_/opt/pms/database
    [main] TRACE 06:17:04.930 A tiny media library admin interface is available at: http://192.168.0.20:5001/console/home
    [main] TRACE 06:17:05.001 Using the following UUID: d83f2e45-d8b8-3db7-b0ff-a6fc95ce046c
    [New I/O server worker #1-1] TRACE 06:17:08.787 Renderer Playstation 3 found on this address: /192.168.0.15
    [main] TRACE 06:17:09.902 It's ready! You should see the server appear on the XMB
    [New I/O server worker #1-1] TRACE 06:17:10.794 Renderer Playstation 3 has an estimated network speed of: 93 Mb/s
    /opt/pms/debug.log :
    available at : http://dpaste.org/774i/
    B - I tried playing the AVI file with external subtitles (SRT) and the file is playing with subtitles but no sound :-(
    /var/log/pms.log :
    GUI environment not available
    Switching to console mode
    [main] TRACE 06:20:24.967 Starting PS3 Media Server 1.21.0
    [main] TRACE 06:20:24.968 by shagrath / 2008-2011
    [main] TRACE 06:20:24.968 http://ps3mediaserver.org
    [main] TRACE 06:20:24.968 http://ps3mediaserver.blogspot.com
    [main] TRACE 06:20:24.968 http://code.google.com/p/ps3mediaserver
    [main] TRACE 06:20:24.969
    [main] TRACE 06:20:24.969 Java: 1.6.0_22-Sun Microsystems Inc.
    [main] TRACE 06:20:24.969 OS: Linux amd64 2.6.37-ARCH
    [main] TRACE 06:20:24.969 Encoding: UTF-8
    [main] TRACE 06:20:24.969 PMS.conf: /filers/fvEXT3-01/_applications_/opt/pms/PMS.conf
    [main] TRACE 06:20:24.969 Working directory: /filers/fvEXT3-01/_applications_/opt/pms
    [main] TRACE 06:20:24.973 Temp folder: /tmp/ps3mediaserver
    [main] TRACE 06:20:25.038 Loading configuration file: FreeboxHD.conf
    [main] TRACE 06:20:25.040 Loading configuration file: XBMC.conf
    [main] TRACE 06:20:25.041 Loading configuration file: FreecomMusicPal.conf
    [main] TRACE 06:20:25.044 Loading configuration file: XBOX360.conf
    [main] TRACE 06:20:25.047 Loading configuration file: PS3.conf
    [main] TRACE 06:20:25.055 Loading configuration file: Streamium.conf
    [main] TRACE 06:20:25.057 Loading configuration file: WDTVLive.conf
    [main] TRACE 06:20:25.059 Loading configuration file: N900.conf
    [main] TRACE 06:20:25.061 Loading configuration file: Philips.conf
    [main] TRACE 06:20:25.063 Loading configuration file: Bravia4500.conf
    [main] TRACE 06:20:25.065 Loading configuration file: WMP.conf
    [main] TRACE 06:20:25.068 Loading configuration file: Samsung.conf
    [main] TRACE 06:20:25.069 Loading configuration file: Bravia5500.conf
    [main] TRACE 06:20:25.071 Loading configuration file: Realtek.conf
    [main] TRACE 06:20:25.073 Loading configuration file: Kuro.conf
    [main] TRACE 06:20:25.076 Loading configuration file: Android.conf
    [main] TRACE 06:20:25.077 Loading configuration file: BraviaEX.conf
    [main] TRACE 06:20:25.080 Loading configuration file: PopcornHour.conf
    [main] TRACE 06:20:25.082 Checking font cache... launching simple instance of MPlayer... You may have to wait 60 seconds!
    [main] TRACE 06:20:25.144 Done!
    [main] TRACE 06:20:25.153 Loading plugins from /filers/fvEXT3-01/_applications_/opt/pms/plugins
    [main] TRACE 06:20:25.153 No plugins found
    [main] TRACE 06:20:25.160 Registering transcoding engine FFmpeg Audio
    [main] TRACE 06:20:25.166 Registering transcoding engine MEncoder
    [main] TRACE 06:20:25.167 Registering transcoding engine MPlayer Audio
    [main] TRACE 06:20:25.167 Registering transcoding engine MEncoder Web
    [main] TRACE 06:20:25.167 Registering transcoding engine MPlayer Video Dump
    [main] TRACE 06:20:25.168 Registering transcoding engine MPlayer Web
    [main] TRACE 06:20:25.169 Registering transcoding engine TsMuxer
    [main] TRACE 06:20:25.169 Registering transcoding engine Audio High Fidelity
    [main] TRACE 06:20:25.170 Registering transcoding engine VLC Audio Streaming
    [main] TRACE 06:20:25.170 Registering transcoding engine VLC Video Streaming
    [main] TRACE 06:20:25.170 Registering transcoding engine Raws Thumbnailer
    [main] TRACE 06:20:25.223 Scanning network interface eth0 / eth0
    [main] TRACE 06:20:25.224 Using address /192.168.0.20 found on network interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.20;
    [main] TRACE 06:20:25.224 Created socket: /192.168.0.20:5001
    [main] TRACE 06:20:25.279 Using database located at : /filers/fvEXT3-01/_applications_/opt/pms/database
    [main] TRACE 06:20:26.010 A tiny media library admin interface is available at: http://192.168.0.20:5001/console/home
    [main] TRACE 06:20:26.017 Using the following UUID: d83f2e45-d8b8-3db7-b0ff-a6fc95ce046c
    [New I/O server worker #1-1] TRACE 06:20:28.867 Renderer Playstation 3 found on this address: /192.168.0.15
    [New I/O server worker #1-1] TRACE 06:20:30.872 Renderer Playstation 3 has an estimated network speed of: 93 Mb/s
    [main] TRACE 06:20:32.488 It's ready! You should see the server appear on the XMB
    [New I/O server worker #1-6] TRACE 06:20:56.875 Starting transcode/remux of test with subs.avi
    So, obviously here, the only thing which changes from before was that, this time, the PS3 Media Server did a transcode/remux of the file (for the subtitles to be streamed)
    /opt/pms/debug.log :
    available at : http://dpaste.org/6XMI/
    I have pasted the complete debug.log but I believe the problem is around this :
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Opened request handler on socket /192.168.0.15:64494 // Playstation 3
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Request: HTTP/1.0 : HEAD : get/0$0$4$0/test+with+subs.avi
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Accept-Encoding: identity
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Cache-Control: no-cache
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Connection: close
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: Host: 192.168.0.20:5001
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Received on socket: User-Agent: PLAYSTATION 3
    [New I/O server worker #1-6] INFO 06:20:56.874 HTTP: get/0$0$4$0/test+with+subs.avi / 0-0
    [New I/O server worker #1-6] DEBUG 06:20:56.874 Searching for objectId: 0$0$4$0 with children option: false
    [New I/O server worker #1-6] DEBUG 06:20:56.875 Asked stream chunk [0-0] timeseek: 0.0 of test with subs.avi and player MEncoder
    [New I/O server worker #1-6] TRACE 06:20:56.875 Starting transcode/remux of test with subs.avi
    [New I/O server worker #1-6] DEBUG 06:20:56.875 Looking for an audio track with lang: eng
    [New I/O server worker #1-6] DEBUG 06:20:56.883 Looking for an audio track with lang: fre
    [New I/O server worker #1-6] DEBUG 06:20:56.884 Looking for an audio track with lang: jpn
    [New I/O server worker #1-6] DEBUG 06:20:56.886 Looking for an audio track with lang: ger
    [New I/O server worker #1-6] DEBUG 06:20:56.887 Looking for an audio track with lang: und
    [New I/O server worker #1-6] DEBUG 06:20:56.888 Matched audio track: Audio: MP3 / lang: und / ID: 1
    [New I/O server worker #1-6] DEBUG 06:20:56.888 Search a match for: und with fre and off
    [New I/O server worker #1-6] DEBUG 06:20:56.889 Search a match for: und with fr and off
    [New I/O server worker #1-6] DEBUG 06:20:56.889 Search a match for: und with eng and off
    [New I/O server worker #1-6] DEBUG 06:20:56.890 Search a match for: und with en and off
    [New I/O server worker #1-6] DEBUG 06:20:56.891 Found subtitles track: Sub: SubRip / lang: und / ID: 100 / FILE: /srv/shares/test_with_sub/test with subs.srt
    [New I/O server worker #1-6] DEBUG 06:20:56.891 Found external file: /srv/shares/test_with_sub/test with subs.srt
    [New I/O server worker #1-6] DEBUG 06:20:56.892 channels=2
    [mkfifo] INFO 06:20:56.979 Starting mkfifo --mode=777 /tmp/ps3mediaserver/mencoder1300252856978
    [mkfifo] INFO 06:20:56.995 Unix process ID (mkfifo): 4390
    [mencoder] INFO 06:20:57.029 Starting mencoder -ss 0 -quiet /srv/shares/test_with_sub/test with subs.avi -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=256:threads=4:keyint=1:vqscale=1:vqmin=2 -spuaa 3 -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -quiet -quiet -ofps 24000/1001 -sub /srv/shares/test_with_sub/test with subs.srt -utf8 -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/ps3mediaserver/mencoder1300252856978
    [mencoder] INFO 06:20:57.048 Reading pipe: /tmp/ps3mediaserver/mencoder1300252856978
    [mencoder] DEBUG 06:20:57.049 Opening file /tmp/ps3mediaserver/mencoder1300252856978 for reading...
    [New I/O server worker #1-6] DEBUG 06:20:57.129 Sleeping for 6000 milliseconds
    [mencoder] INFO 06:20:57.395 Attaching thread: mencoder
    [Timer-1] DEBUG 06:20:57.396 Buffered Space: 0 bytes / inputs: 0
    [mencoder] INFO 06:20:57.396 Unix process ID (mencoder): 4395
    [Thread-30] DEBUG 06:20:57.396 MEncoder SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team
    [Thread-30] DEBUG 06:20:57.397 161 audio & 351 video codecs
    [Thread-30] DEBUG 06:20:57.397 success: format: 0 data: 0x0 - 0x15db931a
    [Thread-30] DEBUG 06:20:57.397 AVI file format detected.
    [Thread-30] DEBUG 06:20:57.397 [aviheader] Video stream found, -vid 0
    [Thread-30] DEBUG 06:20:57.397 [aviheader] Audio stream found, -aid 1
    [Thread-30] DEBUG 06:20:57.397 VIDEO: [XVID] 624x352 24bpp 23.976 fps 977.5 kbps (119.3 kbyte/s)
    [Thread-30] DEBUG 06:20:57.397 [V] filefmt:3 fourcc:0x44495658 size:624x352 fps:23.976 ftime:=0.0417
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    [Thread-30] DEBUG 06:20:57.397 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
    [Thread-30] DEBUG 06:20:57.397 Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 PACKET SIZE: 2048 bytes, deltascr: 884
    [Thread-30] DEBUG 06:20:57.397 Opening video filter: [expand osd=1]
    [Thread-30] DEBUG 06:20:57.397 Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    [Thread-30] DEBUG 06:20:57.397 ==========================================================================
    [Thread-30] DEBUG 06:20:57.397 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    [Thread-30] DEBUG 06:20:57.403 Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    [Thread-30] DEBUG 06:20:57.403 ==========================================================================
    [Thread-27] DEBUG 06:20:57.403 [ac3 @ 0xd37ca0]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
    [Thread-27] DEBUG 06:20:57.437 Limiting audio preload to 0.4s.
    [Thread-27] DEBUG 06:20:57.437 Increasing audio density to 4.
    [Thread-30] DEBUG 06:20:57.463 Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
    [Thread-30] DEBUG 06:20:57.463 videocodec: libavcodec (624x352 fourcc=3267706d [mpg2])
    [Thread-30] DEBUG 06:20:57.463 [VE_LAVC] Using constant qscale = 1.000000 (VBR).
    [Thread-30] DEBUG 06:20:57.617 Writing header...
    [Timer-1] DEBUG 06:20:59.396 Buffered Space: 26595328 bytes / inputs: 0
    [Thread-28] DEBUG 06:21:01.227 freeMemory: 25791584
    [Thread-28] DEBUG 06:21:01.227 totalMemory: 81592320
    [Thread-28] DEBUG 06:21:01.228 maxMemory: 715849728
    [Thread-28] DEBUG 06:21:01.228 Extending buffer to 419430400
    [Timer-1] DEBUG 06:21:01.397 Buffered Space: 49999872 bytes / inputs: 0
    [Thread-28] DEBUG 06:21:01.726 Done extending
    Thing is, I do not have the same issue with files that are not (yet) MP3-Audio powered, for instance :
    General
    Complete name : /srv/shares/media03/directories/toto.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    Format profile : OpenDML
    Format settings : rec
    File size : 1.59 GiB
    Duration : 1h 46mn
    Overall bit rate : 2 140 Kbps
    Writing application : AVI-Mux GUI 1.17.8.3, Feb 16 201019:42:50
    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : 2
    Format settings, QPel : Yes
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 1h 46mn
    Bit rate : 1 620 Kbps
    Width : 1 280 pixels
    Height : 544 pixels
    Display aspect ratio : 2.35:1
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.097
    Stream size : 1.20 GiB (76%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Audio #1
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 46mn
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 292 MiB (18%)
    Alignment : Aligned on interleaves
    Interleave, duration : 64 ms (1.53 video frames)
    Interleave, preload duration : 192 ms
    Title : UW 6ch audio
    Audio #2
    ID : 2
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 46mn
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 97.4 MiB (6%)
    Alignment : Aligned on interleaves
    Interleave, duration : 64 ms (1.53 video frames)
    Interleave, preload duration : 192 ms
    Title : UW 2ch audio
    This file is well played by PS3 Media Server.
    I am quite confused with this issue ; did anyone experienced the same thing ?
    Best Regards,

    Having the same problem. I'm watching all of my movies without subs now, because transcoding kills the 5.1 audio (no problems with 2 channel audio). A workaround is posted in the comments of the pms-svn package.
    I will post the URL to this thread to another thread with probably the same problem (mplayer/x264). I have not yet seen a real solution to this, and I'm not really familiar with the bugzilla's from both projects.
    Other threads with similar problems:
    https://bbs.archlinux.org/viewtopic.php?id=112219 (devede also uses mplayer and x264)
    https://bugs.archlinux.org/task/22654 (related bug in Archlinux)
    http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1865 (related bug in mplayer)
    https://bbs.archlinux.org/viewtopic.php?id=115165 (this thread)
    Another workaround might be to trick pms into using ffmpeg or vlc rather than mencoder. I'm also streaming to a ps3 - I didn't try it, but it could be as easy as temporarily changing settings inside the profile for a ps3-client.
    Last edited by zenlord (2011-03-22 16:15:38)

  • Using External Library in a DC problem (SP16)

    Hi,
    I've been trying to get the example that Valery is outlining in his <a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro">Blog</a>.
    I've done it exactly as Valery says, but I can't get it to work. I create the External Library DC, add the jar to Public Part (purpose Assembly) and build. Builds ok.
    I then proceed to creating the J2EE Library. It is created ok. I then add the External Lib I just created to Used DCs. This goes ok. I build the DC. There are warnings:
    Warning: Warning: Source folder does not exist, will be ignored: server
    Plugin initialized in 0.03 seconds
    Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.
    And:
    createDeployArchive:
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sdaprep
           [cda] Creating descriptor server/provider.xml ...
           [cda] WARNING: Ignoring invalid runtime dependency on js/jars (orion.com), type External Library
    I've tried nearly every combination of Dependency Types When adding the used DC to J2EE DC. The jar never ends up in the SDA file in gen\default\deploy or jar in gen\default\public. I only get different types of warnings.
    Here is the whole build.log:
    Apr 7, 2006 8:48:00 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] WARNING: js/lib: built with warnings orion.com/js/lib(MyComponents) in variant "default" (0.753 sec) :
    Build log -
    Development Component Build (2006-04-07 08:48:00)
      Component name: js/lib
      Component vendor: orion.com
      SC compartment: MyComponents
      Configuration: LocalDevelopment
      Location: local
      Source code location: jarpak@UFIES-JARPAK
      DC root folder: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\
      DC type: J2EE Server Component
      DC subtype: Library
      Host: UFIES-JARPAK
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/addLib"
              [dcmake] validating dependency to  public part "Tokenizer" of DC "orion.com/js/jars"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/addLib
              [dcmake] starting build plugin from : C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\
    Build Plugin 'J2EE Library', Version 6.40 SP 16 (630_VAL_REL, built on 2006-02-13 00:17:07 CET)
       development component:  js/lib (orion.com)
          software component:  MyComponents (demo.sap.com)
                    location:  local
                        type:  J2EE Server Component, subtype Library
               build variant:  default
             source location:  jarpak@UFIES-JARPAK
           plugin start time:  2006-04-07 08:48:00 GMT+02:00 (EEST)
                     Java VM:  Java HotSpot(TM) Client VM, 1.4.2_03-b02 (Sun Microsystems Inc.)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Warning: Warning: Source folder does not exist, will be ignored: server
    Plugin initialized in 0.03 seconds
    Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Data context prepared in 0 seconds
    Executing macro file..
      Using macro file:     C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\macros\build.vm
      Creating output file: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\logs\build.xml
    Macro file executed in 0.482 seconds
    Starting Ant..
      Using build file:     C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\logs\build.xml
      Using build target:   build
      Generation folder:    C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426
      Using Ant version:    1.5.4
    prepare:
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\deploy
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\int-pp
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sda
    compile:
    createPublicParts:
    createDeployArchive:
         [mkdir] Created dir: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\t\C2CEFADCC9470A9F87865E9894AAE426\sdaprep
           [cda] Creating descriptor server/provider.xml ...
           [cda] WARNING: Ignoring invalid runtime dependency on js/jars (orion.com), type External Library
    packDeployArchive:
    [srcpacker] Creating source archive
    [srcpacker] No sources available for packing, no archive will be created.
         [timer] Source archive creation finished in 0.02 seconds
        [jarsap] Info: JarSAP version 20041217.1600
        [jarsap] Info: JarSAPProcessing version 20060104.1634 / JarSL version 20060106.1831
        [jarsap] Property jarsap.info.dir is not set.
        [jarsap] Building: C:\Documents and Settings\jarpak\.dtc\LocalDevelopment\DCs\orion.com\js\lib\_comp\gen\default\deploy\orion.comjslib.sda with compression
         [timer] JarSAP finished in 0.03 seconds
    build:
    Ant runtime 0.161 seconds
    Ant build finished with WARNINGS
    Build plugin finished at 2006-04-07 08:48:00 GMT+02:00 (EEST)
    Total build plugin runtime: 0.693 seconds
    Build finished with WARNING
    What am I doing wrong ?
    Kind Regards,
    Jari Pakarinen

    Hi,
    There is an issue with SP16 in using External library DC.
    Go through this Jars not included in J2EE Library DC SDA. This thread deals with the same issue.
    Hope this helps.
    Regards,
    Rathna.

  • After upgrading to Lion, the Finder will increase the virtual memory while using external HD

    after upgrading to Lion, the Finder will increase the "virtual memory size" while using external HD. I check it using Activity Monitor and found that "Finder" wll increase the "Virtual Memory Size" and "Private Memory Size". and then after a while. the system told me my HD is full and hanging there.
    My External HD is 1TB. and I have installed new version Paragon NTFS for Mac V.9.01. I am not sure it is related or not.
    but I attached my external HD. the "Finder" will start to increase the "Virtual Memory Size".
    please help out this case and solve this issue.
    thank you !!!

    The one has nothing to do with the other. Virtual memory size and Private memory size are used by developers to analyze their software. it has nothing to do with anything related to the user.

  • How to use external library(in .jar format) in netbeans project?

    How to use external library(in .jar format) in netbeans project?
    Thanks!

    How to use external library(in .jar format) in netbeans project?
    Thanks!

  • Turning off internal monitor while using external one

    Hello, Apple Support Communities.
    Before OSX Lion, anyone could turn off internal monitor while using external one, by waking up computer with lid closed, and the internal monitor will be kept turned off. But now, -I wonder what made Apple to think this way- Lion will turn on the internal one back on.
    I don't care about all sorts of reasons why should I or shouldn't I desire to this. I just want it, because I have nice big monitor, which is apparently bigger than my Macbook Pro. Besides using double monitor will just exhaust my poor laptop. -mine is bit old-
    I found ridicoulus answer from community, saying I should try fridge magnet. Sorry, but I don't want risk my whole computer, especially my HDD from getting magnetic damage. It happened so many times, -thanks my little bro- so now I am sick of magnet. I don't think Apple will cover this AKA magnetic damage anyway. -It wouldn't just damage, just erase your HDD-
    So.... Any helpful insights? Thanks.

    Nevermind. I found solution. Though it cost me 24 bucks.
    Now Apple is seriously making me to consider to roll back to sucking Windows.
    Thanks Jobs!

  • Using External Library in Mobile Web Dynpro Offline

    Hi all,
    i would like to use a jar in a Mobile Application for Handheld and i followed the steps from the wiki "Using External Library in Mobile Web Dynpro Offline" at
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/usingExternalLibraryinMobileWebDynpro+Offline
    >How to use External Library in Mobile Web Dynpro Offline
    >For using external jar in local deployment scenario, one can do following:
    >1. In the dc where jar has to be used, add the jar as external jar classpath entry. It can be done via <dc> > (Right-click)> properties->Java Build Path->Select "add external jar".
    >2. Do the programming using the jar.
    >3. Shut down the mobile client.
    >4. Copy the jar in the "lib" folder of mobile client installation.
    >5. Deploy the application in the IDE.
    >6. Run the application.
    >In 5, the jar will not deployed and will be picked from the lib folder during 6.
    >...
    >Note: This will work on and after SAP Net Weaver CE 7.1 SR3 with Mobile plugins from CE 7.1 SR3 (and after).
    i get a error at the deployment with the message "...package myres does not exist...":
        >echo:     C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5gen_oca
          >echo:   class path:  C:Program FilesSAPIDECEeclipsepluginscom.sap.tc.ap_2.0.1.080222142948compXOCADCssap.com     cmobileocaapi\_compgendefaultpublicapilibjavasap.comtcmobileocaapi~api.jar
          >echo:   output dir:  C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5classes
         >javac: Compiling 16 source files to C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5classes
         >javac: ERROR: C:Documents and SettingsTPCompworkspace.jdiLocalDevelopment     4CDFCC9F800D44D0F2B7FEDE7245CFB5gen_ocacomsapdemoemployee_scserviceimplEmployeeService.java:8: package myres does not exist
         >javac: ERROR: import myres.TestA;
    there is only sap.comtcmobileocaapi~api.jar in the class path and myres.jar was not added.
    how can i fix my problem or does the steps in the wiki not work yet for SAP Net Weaver CE 7.1 SR3 with Mobile plugins from CE 7.1 SR3 ?
    Thanks,
    Ismet

    Hi,
    1) in Development Infrastructure Perspective -> rightklick in Navigator/Projekt Explorer  -> new Project  -> (Development Infrastructure)  Development Component (DC).
    NWDS generates Project Ressources e.g. the folder "libraries"
    2) copy the jars to the "libraries" folder.
    3) rightklick on the newly created Development Component (DC) ->  Development Component -> Show In ->  Development Properties -> go to the Tab "Public Parts",
    in -> "Defined Public Parts" -> klick on Button "Add" -> give a name for "Public Part" -> at "Purpose" select "Compilation" -> Finish.
    rightklick on the newly created Public Parts -> select  "Manage Entities" and select the jars you want to use -> Next -> Finish.
    4) switch to the Mobile Apps for Handhelds Perspective ->  in Development Component  select e.g. the Service Component or the UI Component ->
    rightklick ->  Development Component -> Show In ->  Development Properties -> got to Tab "Dependencies" -> klick on Button "Add"  -> under the Node MyComponents -> select the newly created Development Component with the Public Parts/jars (that was created in 1 - 3).
    thats all, now you can deploy your application
    Regards,
    Ismet

  • Music app crashes while using shared library

    On my ipad 2 while using shared library every time I search the app crashes and most times when I try to play music on the music app via shared, only a handful of the artists show up and album art is all wrong. I tried it with two different ipad 2's thus it's itunes on my Mac Mini..
    I've tried:
    1. Reset ipad (didn't work)
    2. Signed out of ipad music shared, shut app down, sign back in. Most times I'll get all my artists and album art back but when I try to search it crashes, then once I reopen the artists are back down to a handful as opposed to hundreds. Search again, crashes immediately.
    3. I converted all music in my library to the newest ID tags (didn't work)
    4. I deleted both library files, (didn't work)
    5. I started over completely, deleted my library files and media, re imported, changed all ID tags to newest version (didn't work)
    6. Both ipads and computer and itunes are fully up to date
    7. I re synced both ipads by plugging them into the computer, deleted all music (didn't' work)
    This has been going on a long time, even under itunes 10, I'm out of options at this point.
    I have 8842 tracks at 66.76 gb.

    Unfortunately, I gave up and didn't find a solution.  However, it is, as of today, working properly. 
    Sorry, wish I had a good solution for you.

  • Macbook Pro Stuck/Frozen while using external monitor

    Macbook
    13-inch, Mid 2010
    Processor  2,4 GHz Intel Core 2 Duo
    Graphics  NVIDIA GeForce 320M 256 MB
    Software  OS X 10.9.1 (13B42)
    While playing music through iTunes and having external monitor connected via DisplayPort adapters (various adapters and various monitors).
    My MacBook freezes on random occasions. iTunes is stuck playing the last song and both displays are grey.
    Disconnecting the monitor doesnt help. System is completely stuck.
    Only solution is hard reboot.

    Hey Renecek,
    My first thought was, "Hey, you are using closed-clamshell mode".
    How to use your Mac notebook computer in closed-clamshell (display closed) mode with an external display - Apple Support
    But then I realized, wait, you want it to sleep.
    For that, check out the suggestions in these articles.
    OS X Yosemite: If your Mac won’t go to or stay in sleep
    OS X: When your Mac doesn't sleep or wake - Apple Support
    Take care,
    Nubz

  • PL/SQL missing symbol while loading external library

    I have followed all the steps in creating external library in PL/SQL i.e. configuring Listerner, TNSNAMES.ORA etc. etc.
    While invoking a function call on this external library, I am getting a missing symbol error :
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: /home/qzintf/libSQLAdapter.so: undefined symbol: Fneeded32
    ORA-06512: at "EQMIG.QUARTZSQLADAPTER", line 0
    ORA-06512: at line 12
    This missing symbol "Fneeded32" is located in a tuxedo shared lib. The path of tuxedo library (libfml32.so) has already been put in the env var LD_LIBRARY_PATH, but still Oracle is not looking into this library !
    Is there any way where I can define dependency of QUARTZSQLADAPTER on libfml32.so ?? Or make oracle use load this library while loading QUARTZSQLADAPTER ??

    Is the path to libfml32.so accessible to the oracle o/s user and the so itself readable/loadable by oracle?
    You neglected to supply any details of platform and versions - please always do. Full Oracle version and version of o/s.
    If you are using Oracle 64bit (quite likely on Unix flavours), confirm that libfml32.so is a 64bit so. If 32bit then the loadlibrary call will fail as 32bit objects cannot be natively loaded into a 64bit process image.

  • Using External Library in Web Dynpro - Error

    Hello,
    I want to use an external library in a web dynpro. I use WAS 6.40 SP12.
    1. I have created an dc web dynpro app
    2. I have created an dc external library app
    3. I have importet the jar to the external library
    4. I have published the jar as public part
    5. I have imported the public part to web dynpro
    If I build the project I get no error. If I deploy an run the project then I get an error stacktrace:
    java.lang.NoClassDefFoundError: com/sap/netweaver/bc/rf/util/uuid/UUID
    NoClassDefFoundError - I think the jar-file was not deployed. What is wrong?
    Greetings
    Thomas

    Hi THomas,
    Please explain how you are adding the jars into the publicpart of the Libary DC.
    You need to create 2 public parts .
    1. Assembly
    2. Compilation
    You need to add your jar to above two public parts.
    Then you need to add above two publicparts to your webdynpro application.
    Regards, Anilkumar

  • Screen flickers while using external display

    while using my macbook pro with an external display (my sony LCD TV). the external screen (TV) flickers. it goes black for about a second then comes on. it will happen about 20 minutes into watching TV and happens more often the longer i watch. for example i just finished watching a 40 minute video podcast it happened at the halfway point then more often - about 10 minutes later then 5 minutes later - then 2 minutes... the final minutes of the show it happened about 3 times before the end.
    any help? any ideas? i suspect (though i can't prove) it has to do with the setting for the external display.
    thanks

    Can you run memory diagnostics ? Download a pre-compiled bootable iso from http://www.memtest.org/ down the page and make a bootable CD. Boot to this CD and run RAM diagnostic for a couple of hours, maybe overnight, and see if your laptop has RAM errors.
    If you have no RAM defect after the long test above, then uninstall all ATI/AMD gfx card drivers in Programs and Feature in Control Panel. Now go to Device Manager and disable your gfx card, putting a checkmark in the box Uninstall drivers for this hardware. ( Please note this operation will not harm your computer. Windows will redetect your gfx card after restart. )
    Restart as required by Windows 7.
    You may have to disable and then enable the gfx card in Device Manager several times until you are left with VGA drivers only. ( Computer gurus suggest using a Driver Sweeper/Driver Cleaner program. But I do the driver cleaning chore myself. You may go to C:\Windows\System32\DRIVERS folder and manually delete Atikmpag.sys, Atikmdag.sys drivers. )
    Now you can re-install the ATI/AMD drivers that you have downloaded from hp suppport.
    Hope this helps.

  • How to use external library in EAR deployed onto J2EE engine

    For certain reasons some classes in .jar file in operation system level should be used in the EAR project I've deployed onto J2EE Engine.
    Can some one tell me what steps I should perform to acheive this?

    hey there,
    Think im already late for this... but it may be useful to someone who reads this forum later.
    I am struggling with exactly the same problem for the past more than 24
    odd hours now. The sad part - Im sure I have seen this being done in a
    matter of a few minutes when my team mate had an older version on NWDS.
    (I am currently using SP16 NWDS). May be this indeed is a bug that SAP
    needs to fix in its SP16 NWDS release.
    I need to use the HSSF POI libraries for my webdynpro components and
    have been trying ALL possible options given out here on SDN. To mention a
    few, I have tried -
    1) Jarrod's method of making a Java DC and then declaring a usage
    dependency for it inside a J2EE Server (library) DC. It didnt work... it
    gave me a warning that an illegal reference has been made to the runtime
    public part. And the final SDA file generated in the J2EE server
    component DC DIDNOT contain the jar files that I had added to the public part
    of the Java DC. On investigating further, I found that there were NO
    entities present in BOTH the public parts of the Java DC, even though the
    folder actually contained all the required .jar files.
    2) Creating an External Library DC, adding the JAR files to the
    'libraries' folder. Creating two public parts, one for assembly and the second
    for compilation. Then adding this DC as a 'Used DC' into a J2EE Server
    (library) DC. Yet, the .sda file that is created on building the J2ee
    Server (library) DC DOESNOT contain the JAR files.
    3) Creating an external library DC, adding the JAR files to the
    'libraries' folder. Creating two public parts, one for assembly and the second
    for compilation. Then adding this DC as a 'Used  DC' into a webdynpro
    DC. On building this webdynpro DC, the .ear file DOESNOT contain the JAR
    files.
    4) Directly adding the JAR files to my own webdynpro component in the
    'src/packages' folder. This didnt work because on rebuilding the
    project, the JAR files get deleted on their own.
    5) Renaming my .JAR files to .ZIP, extracting the entire package
    structure into folders, copy pasting this entire folder structure along with
    its .class files into the src/packages folder. On rebuilding, the NWDS
    deletes these folders and files on its own / behaves erratically. Also
    copy pasted these .class files along with the proper package structure
    into the '/bin' directory of my webdynpro application, but it still
    didnt work.
    The only thing that I have to try yet is to shift to SP10 of NWDS,
    build this external library project and get the required JAR files put on
    the wendynpro server. After that I might choose to get back onto the
    SP16 version and hopefully continue productive work... !
    Regards,
    Navneet.

  • Using external Library like iText

    Hi everyone, first of all i would like to thank all you guys because this forum help me so much, i´m new to webdynpro and i´m facing this problem, (this is my first post)  . . . all i want to do is to "deploy new archive and run" and see my app running.
    I ´m using the iText .jar in my DC Webdynpro project, i followed this blogs but to me is very confusing because it seems that are to many ways to do that, but nothing results to me.
    /people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    this are the two main solutions i tried.
    1.- Create DC Library
    2.- add .jar to libraries folder
    3.- add to public part (the two ways, assembly and the other one)
    4.- build
    4.- Create J2EE library DC
    5.- Add to Used DC the two public parts of the DC Library
    6.- Build & Deploy
    7.- I don't see any .jar in my deploy folder
    8.- I see the new library in Visual Admin
    9.- Add to Used DC of my DC Webdynpro the j2EE public part
    10.- I cant deploy and run my app
    1.- Create DC Library
    2.- add to public part the assembly and the other one
    3.- build
    3.- Add to used DC of my webdynpro app , the public parts of the DC library
    4.- I have the hints, the class definitions but when i click deploy new archive and run
    the deploy stops with errors.
    i really want to know what is the problem behind this because i only try all the blogs solutions but with no knowledge behind, and i´m expecting some results following the solutions like a recipe.

    Hi ,
    To user iText .jar in the webdynpro java project,  you need to do the following steps :
    1.- Create a project of type external DC Library.
    2 - add iText.jar to libraries folder.
    3.- create new public part of type "Compilation" by selecting the option 'Provides an API for developing/compiling other DCs'  and the compilation
    create a new public part of type 'Assembly' by selecting the option 'Can be packaged into other build results (e.g. SDAs)'.
    4.- Then navifate to the "navigation perspective" and expand the External DC project and navigate
          to folder "def" and open the files with .pp ext. Then add the following piece of code in the "entities"    tag in both the files.
                 <entity>
                   <name>itext.jar</name>
                   <package></package>
                   <caption>itext.jar</caption>
                   <description></description>
                   <entity-type>Archive</entity-type>
                   <entity-sub-type>Java Library</entity-sub-type>
              </entity>
    5.- Then build the project and release the activity.
    6.- Add to used DC of my webdynpro app -
    Choose 'DC Metadata' under your WD DC and navigate to 'DC Definition' --> 'Used DCs'. Right click 'Used DCs' to add the DC usage relations. In the 'Add Dependency' wizard, choose 'Local Development' --> 'My Components' --> Used DC --> 'Public Parts'. Select both the pulic parts ExternalLibCompilation and ExternalLibAssembly and check the dependency type 'Build Time' for ExternalLibCompilation, and "Build Time & Run Time" for ExternalLibAssembly and then click 'Finish'.
    7.- Finally, 'Build' the WD DC, so that all the declared dependency relationships gets well established. Thus far we've seen the approach for solving the problems related to the usage of External Library DCs.
    Hope the above mentioned process helps you to solve the prob.
    Thanks
    Ritushree

  • Problem using External Library DC

    Hello,
    First of all, I'm a java programmer kind of new to NWDI. I'm working on a Java DC that's meant to send e-mails which of course uses the JavaMail API, so I understand I have to add to my SC another DC of type External Library that contains the jar files I need. Here is where it all falls apart. I have followed step by step several possible solutions to this and still gettin' the "import cannot be resolved" error message in my Java Perspective. The procedure I'm using is the one described in this thread:
    Re: External Library DC question
    Can anyone help me out with this? I'm using NWDS 7.0.14
    Thanks in advance...

    HI,
    That post was to big. so without reading it im posting.
    1 create a library DC.
    2.Add the jar files in it.
    3. create a public part of type API and SDA.(use SDA if you want to deploy it with the project(just like an add external jar file) or use API part (if you want to use it as add jar file option))
    4. use that public part in you DC.
    5. use add jar option in your build path.
    if you have done these an having an error please tell me at what step you have a problem

Maybe you are looking for

  • Splitting up iTunes library

    OK, here's the situation. My daughter and I have been keeping separate iTunes libraries on the same computer for several years. Although we have several songs in common, most are either hers or mine. All of the songs live on an external HD. Now she h

  • Lightroom won't export more than one image at the time

    I am having trouble exporting my RAW files as JPEG files. At first Lightroom 4.4 seemed to skip certain photos when exporting and now I'm unable to export more than one image at the time. How can I fix this? I didn't seem to have this problem before

  • APEX Tab Display

    My application has 11 tabs which has become more than I originally anticipated. The amount of tabs has caused the page to scroll way too far to the right and is really making the GUI look ridiculous. While the application is functioning perfectly I c

  • Can I join Structure with Z table ?

    Can I join Structure with Z table? If yes...plz explain me with an example. PLease provide me with an example to join a structure with a Ztable... Any help would be appreciated... Regards, Krishna Chaitanya

  • Concurrent Program re-submitted

    Hi, We are running on R12(12.0.4). While bringing down the applications for applying a patch we killed couple of concurrent programs (FNDLIBR). Patching went off well. Applications came up smoothly and health check completed successfully. But the pro