codebase

search for more blogs here

 

"What If?" posted by ~Ray
Posted on 2008-11-13 12:23:42

static analysis: It would be good to statically prevent certain code patterns (such as stack-allocated nsCOMPtr) or behave differently than C++ normally would (change the behavior of a stack-allocated nsCOMArray versus a heap-allocated one); We are hoping to use trace-based optimization to speed JavaScript. If the C++ frontend shares a common runtime with the JS frontend these optimizations could occur across JS/C++ language boundaries. The Moz2 team brainstormed using a C++ frontend that would produce Tamarin bytecode but Tamarin bytecode doesn’t really have the primitives for operating on binary objects. I don’t know. Some wild speculation is below. Please don’t take it as anything more than a brainstorm informed by a little bit of IRC conversation. is a project implementing a low-level bytecode format with strong type annotations and code generator optimizer and compiler (static and JIT) to operate on this bytecode. There is a tool which uses the GCC frontend to compile C/C++ code into LLVM bytecode. It is already possible to use the llvm-gcc4 frontend to compile and run mozilla; it compiles the Mozilla codebase to an intermediate LLVM form and from there into standard binary objects. We would not invent an entirely new language: rather we would take the GCC frontend and gradually integrate features as needed by Mozilla. The most pressing problem from my perspective is that using the G++ frontend requires compiling Mozilla with a mingw-llvm toolchain on Windows. The gcc toolchain on Windows does not use vtables which are MS-COM compatible which means that Mozilla code which uses or implements MS-COM interfaces will fail. In addition we would be tied to the mingw win32api libraries which are not the supported Microsoft SDKs and may not be always up to date because they are clean-room reverse-engineered headers and libraries. This mainly affects the accessibility code which makes extensive use of MS COM and ATL. Is this a silly exercise? Would we be spending way too much time on the language and GCC and LLVM and whatnot and not enough on our codebase? Are there other ways to modernize our codebase gradually but effectively? Is LLVM or a custom language something we should consider for mozilla2 or keep in mind for later releases? Some other problems you didn’t mention — teaching developers our own pet language adding the burden of downloading/learning new tools to the contributor bar dealing with the fact that gcc produces much worse code than MSVC. I admit it’s awfully tempting to go down the new-language path but we cannot go down it alone. I would rather have our requirements inform the design of some new language that stands a chance of broad support and adoption. not really sure on the definition of this one so I won’t comment,all strings are UTF,GC built-in but compacting might be tricky with the current version,I’ve seen D’s exceptions integrated seamlessly with Python exceptions and vice-versa,a few of Robert’s suggestions are there,no static analysis from within the compiler unless you’re doing static checks on template arguments or want to wait for AST macros,no idea On the C++ advantages side. D has been shown in benchmarks to perform close to C and C++ (you can write code that’s nearly identical between all three if you’re careful.) Sadly. D does not have large portions of Mozilla written in it; a bug that is sadly not very high on Walter’s TODO list I’m afraid. Other comments on your post: there is a D compiler that outputs LLVM bytecode in the works and DMD has native support for Win32 COM. The current experimental 2 x branch also has support for linking to some C++ constructs (global functions and virtual member functions of classes with single inheritance) as well as anything with C linkage. If nothing else we would *really* appreciate your input as someone who is seeing the limits of the C++ language and what things you think are important in a successor. There’s a sub project at LLVM called clang led by Apple to develop a standalone C/C++/ObjC front-end to LLVM by-passing any need for gcc. It is still in early stages (incomplete C++) but development is at full swing and can certainly benefit from additional support. See IMO. I think mozilla definitely needs a language upgrade for the future. The XPCOM C++ macro hackery really drains you. A language with syntax like Java/C#/D that understands XPCOM would go a long way in alleviating developer stress :p If the usual rules apply only 20% of the code needs to be super efficient. The rest needs to be easily maintained (no more pointer foo) and more easily accessible to outside developers. ES4 fits the bill. Any tools libraries etc developed would also have a direct benefit for web development. One million loc * 20% = a hell of lot smaller nightmare. I just bet that experience with the Tamarin engine will boost efficiency - possibly even to the point where C++ could be replaced completely. If the byte code needs additions then add them. Switching to a language like D would be a poor move in the long run. If you really wanted to be semi-future proof I would opt for Scala. 80-core processors are already in the Intel fabs. The C++ threading model is totally unsuited to that sort of machine. It is a good bet that ES4 suffers from the same GIL problems as Python. Any browser that could properly utilize such a machine would smoke its competitors. I think ROC hit it on the head… having a custom pet language decreases maintainability and access to good tools rather than increasing it. I think that is the opposite from where you want to go. Could you just ultra-modernize the style of C++ used moving further away from C and taking more advantage of templates more references instead of pointers and take advantage of the Boost library? I like the idea of leveraging a well regarded and understood library like Boost because that way you are working with a wide spectrum of others to fill in the missing language features with a library that is broadly understood by many developers. I think it would be nice to remove as many custom type aliases as you can leverage stuff like C99 and templates more and generally work to make the code look as much like other generic C/C++ code as you can thus increasing the approachability. I do like the idea of leveraging the good work in LLVM though! How hard would it be to adapt to writing modern C++ that could be compiled similarly to Managed C++ targeting LLVM or even something like the Java runtime. Parrot. Mono. CLR etc? Maybe try to write C++ that is closer to Java/C#/Python/whatever than it is to C? Once upon a time when Netscape first open sourced the code I looked into helping a project port it to Java - that project quickly died once we saw the state of the code and digested what exactly would be involved with such an undertaking. Though it sounds like with this automated rewriting effort it may not have to be that way? Right now is the perfect time to raise the discussion. (Actually six months ago would have been better but…) There’s no reason a separate NEW_LANGUAGE_BRANCH of the Mozilla 2 repository couldn’t be created from the base and experimented with for a while. Peter: you cannot identify 20% of the code as the performance-critical stuff and convert the rest to JS. For one thing which code is important for performance varies by Web page. For another thing separating performance-critical from not-performance-critical code into separate modules is impossible. For a third thing the cost of crossing between languages would kill performance and bloat the code. Whatever direction and whichever language you choose (and I think moving away from C++ is a step in the right direction) it should compile to some kind of intermediate byte langauge like for example LLVM. That enables garbage collection and language independency and can in the long run make replacing individual modules with new ones written in a completely different language not only possible but probably even easy. As to separating the codebase into 80% non-efficient-easy-to-maintain and 20% highly-efficient; I don’t know the Mozilla code base well enough to assert how feasible or possible this is. But I think there must be some pretty obvious modules that could easilly be written in another language without hurting performance and without effecting rendering time of a web page at all. Everything in “about:config” all chrome menus options bookmarking code etc. I’m not saying that you could ever reach anywhere near 80% non-C++ code but moving to an intermediate byte-compiling framework enables this transition; a transition I think should be made softly gently and on a module-to-module basis. The Mozilla is already split into two (primary) languages. Let us not introduce Yet Another Language. The Javascript part will be addressed by Tamarin and the strong advantage is the easy cross-over between mozilla front-end extensions and web-applications (as shown by Prism). The C++ part can be gradually improved (the code-rewriting effort to introduce garbage collection exceptions etc) but also minimized (moving more code to Javascript) focussing the C++ part on the really performance critical aspects (parsing scanners image handling network/cache etc). Inventing maintaining and promoting a new language sounds like a tremendous time sink. I agree with Peter: if we’re creating a new language (ES4) anyway why not use it? Migrating code incrementally to ES4 would enable measurement of the performance impact of each change in various test scenarios. It would avoid the risk inherent in a “boil the ocean” approach of the type you suggest. And it would allow us to feast on Brendan’s tasty dogfood which will have a huge impact in jumpstarting the ES4 ecosystem. Some portion of the codebase will remain in C++ for the forseeable future but in the really long term continued improvement in CPU performance and JIT compilation techniques make it plausible that only a small body of rarely touched code (if any) could not be migrated. Writing a new compiler has too many drawbacks to be feasible. I think many of the problems in the Mozilla codebase stem from poor/obsolete design decisions and code style. While some of these can be fixed in the source some fixes can reduce code readability so it would be interesting to see how feasible build-time code rewriting could solve some of these problems. Poor memory safety is a problem but proper abstractions and interface design should alleviate most of the typical security problems as well as the usual array index out of bounds problems. There are also compiler flags (at least for vc8) that can check some of these accesses. Some UTF string support can be added through a better string class and some compilers have language extensions to help. Strings need an overhaul for Mozilla2 anyways… C++ is one of the few mainstream languages left that gives nearly absolute freedom to memory allocation and management. Integrating two different memory management systems is going to be painful no matter what language is being used. Designing a new language for the purpose of integrating with MMgc is overkill. Could cross-language exception handling be tackled by with automated code rewriting to explicitly marshal exceptions? I think boost::python does something similar to this. Many of the features that roc has proposed do require a new language to work. This means a new compiler but that compiler does not necessarily have to target LLVM or Tamarin. Rather it could generate C++ code but code that is provably safe (or least containing bounds checks and compiler hints). This has the advantages of maintaining compatibility with MS-COM. ATL and the Platform SDK. As long as code could be replaced on a per-module per-file or (even better) per-class basis this seems like a gentle transition. Some of the static analysis (divergent behavior for stack/heap allocated objects of the same class) could be handled by the aforementioned build-time rewriting. Mozilla has already reinvented the wheel on so many things. Can’t you at least *look* at other languages that already exist before you start considering making a new one? Switching to a different language isn’t crazy. If all the currently existing languages suck too much thinking about making a new one isn’t crazy. But to just immediately start thinking about making a whole new language just for Mozilla without first looking at some of the tons of languages that are already working and usable that is crazy.

Forex Groups - Tips on Trading

Related article:
http://benjamin.smedbergs.us/blog/2007-11-05/what-if/

comments | Add comment | Report as Spam


"02:47 Interview: Frozen Codebase [Screwjumper!] (0) - Xboxic" posted by ~Ray
Posted on 2008-03-12 23:15:07

Microsoft said famously that the original version of the game was “too Nintendo” and they wanted something “more XBox 360″ which is an interesting... This news was posted for the bet: . You can go any responses to this entry through the cater. If you have any information regarding this news or just want to comment you can or from your own site. XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote have in mind=""> <label> <em> <i> <strike> <strong> Microsoft said famously that the original version of the bet was “too Nintendo” and they wanted something “more XBox 360″ which is an interesting... This news was posted for the bet: . You can follow any responses to this entry through the feed. If you have any information regarding this news or just want to comment you can or from your own site. XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote have in mind=""> <label> <em> <i> <strike> <strong> A little something about you the author. Nothing lengthy just an overview.

Forex Groups - Tips on Trading

Related article:
http://xbox360.rocktheconsole.com/fear/0247-interview-frozen-codebase-screwjumper-0-xboxic/

comments | Add comment | Report as Spam


"02:47 Interview: Frozen Codebase [Screwjumper!] (0) - Xboxic" posted by ~Ray
Posted on 2008-03-12 23:15:07

Microsoft said famously that the original version of the game was “too Nintendo” and they wanted something “more XBox 360″ which is an interesting... This news was posted for the game: . You can follow any responses to this entry through the feed. If you have any information regarding this news or just want to comment you can or from your own site. XHTML: You can use these tags: <a href="" call=""> <abbr call=""> <acronym title=""> <b> <blockquote have in mind=""> <label> <em> <i> <touch> <strong> Microsoft said famously that the original version of the game was “too Nintendo” and they wanted something “more XBox 360″ which is an interesting... This news was posted for the bet: . You can go any responses to this entry through the feed. If you undergo any information regarding this news or just want to comment you can or from your own place. XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote have in mind=""> <code> <em> <i> <strike> <strong> A little something about you the compose. Nothing lengthy just an overview.

Forex Groups - Tips on Trading

Related article:
http://xbox360.rocktheconsole.com/fear/0247-interview-frozen-codebase-screwjumper-0-xboxic/

comments | Add comment | Report as Spam


"First check-in of my code into Mozilla codebase" posted by ~Ray
Posted on 2008-01-01 21:19:05

This was a long awaited affix not by the readers waiting to read this but by me the author waiting to write this. This is by far the most important communicate affix written by me not for its content but for the moment it describes. In a previous post titled "My GSoC 2007 Story" I wrote about how excited I was about this association with Mozilla and about the opportunity to fulfill my long lasting conceive of of contributing to change state source and having ascribe for some notable software development. But that just the beginning of the fulfillment of the big dream. The way was just shown to me and I was given the map just having the end points of the journey. It was up to me to figure out the way and reach the destination after crossing all the hurdles. I am now proud that I could rest the journey and complete it. This post is the proof and the reward together. The jaunt was of cover not smooth as described in my "First Mozilla journey" affix. But it was worth it. Now about the day I achieved it. It was 5th Sep 2007 yes Teacher's day here in India. (I guess I should really be thanking my teachers for their teachings as well as blessings). That was when Shawn(sdwilsh) checked in my patch of course with certain changes to it from him. Here is the check-in mention. The end was more tiring and hectic than I initially assumed. My feature was initially targeted for M7 but then due to delay from my side it was re-targeted to M8. Since this was considerably big thing and involved quite a bit of risk the drivers decided that this feature would be in only if it can come in by M8. Things were going pretty come up with me working process 10 or 10:30 at the office due to lack of internet connection at home. I used to get a new patch every alternate day or at least hit a dead-end and act for back up from biesi/dmose/sdwilsh or some other person. I ended up adding more stuff to nsDownloadManager class than I thought I would be doing. Every week more than 2 or 3 times I used to discard some done stuff and create it in different way. This was mainly because of my lack of XPCOM knowledge. Though I was very determined to get it in FF3 it was getting heavier and heavier for me. convey God. I finally submitted a patch which addressed all the issues mentioned in the comments earlier. It was all working and just a few hours (that was 10:30pm here and I had to go home - by bus) before the tree was to close for M8 I figured out that nsIFile. GetSize() was not returning the proper value because of which downlaods.

Forex Groups - Tips on Trading

Related article:
http://techbrahmana.blogspot.com/2007/10/first-check-in-of-my-code-into-mozilla_25.html

comments | Add comment | Report as Spam


"Major Change to codebase on the backend" posted by ~Ray
Posted on 2007-11-27 20:06:00

In advance preparation for the additional features that are going to be added and because of a conflict that was discovered while laying the foundation for the new features the backend codebase was retooled fairly extensively. You still don’t need to do anything. Your BookerBox will run the same if not faster now. These changes should improve any conflicts with StyleSheets if you had any issues. XHTML: You can use these tags: <a href="" call=""> <abbr call=""> <acronym call=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Forex Groups - Tips on Trading

Related article:
http://www.bookerbox.com/2007/10/27/major-change-to-codebase-on-the-backend/

comments | Add comment | Report as Spam


"Integrate COM Component Functionality into Your PL/SQL Codebase" posted by ~Ray
Posted on 2007-11-17 15:58:19

Integrate COM Component Functionality into Your PL/SQL CodebaseOracle provides developers a simple API that enables them to interact with most Microsoft COM objects directly from PL/SQL. hit the books how to lay the COM option and tap into the functionality of pre-built COM components on your forge right now. Source: research ittoolbox com

Forex Groups - Tips on Trading

Related article:
http://databaseadministration.blogspot.com/2007/10/integrate-com-component-functionality.html

comments | Add comment | Report as Spam


"The given assembly name or codebase was invalid...PTWin" posted by ~Ray
Posted on 2007-11-09 17:21:27

Hi everyone.. I am running the communicate tracker and just ran into a problem. It was working not too long ago but just stopped. I don't know what happened. Once I login (or try to change state any other form than the main form i e add resource alter communicate) I get the following error. System. IO. FileLoadException was unhandled communicate="The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)" Source="PTWin" Any suggestions on why this is happening and how to fix it? It says to alter the checkbox 'alter the Visual Studio hosting affect' in the formProject > [Project_label] Properties... > Debug So. Is this supposed to be checked and something is broken or did it somehow check itself? Any ideas?

Forex Groups - Tips on Trading

Related article:
http://forums.lhotka.net/forums/thread/16894.aspx

comments | Add comment | Report as Spam


"Acceing codebase through http (RMI)" posted by ~Ray
Posted on 2007-10-23 15:48:01

HiI am C prgrammer and now badly stuck wid my new found luv- java!I am working on RMI where I undergo a simple client schedule sending Hi. Hellos to my server schedule. Then I created a new categorise in my rmi client side and tried to displace it through the interface to the server. Server gave unmarshelling errors. which i guess is bcoz it doesnt know about the classes in client side. I follwed similar threads here and could make out that i must contract a codebase visible to the server where it can see the client files.. I created a policy file in the server as this-grant codeBase "file:/E:/work/java/"{permission java security. AllPermission;permission java net. SocketPermssion "*","evaluate,connect,end";};My client fils are in E:/work/java... I am getting errors in server side--Exception in go "RMI TCP Connection(1)-127.0.0.1" java security. AccessControlException: access denied (java net. SocketPermission 127.0.0.1:2014 accept,end)at java security. AccessControlContext checkPermission(AccessControlContext java:264)and client says--java rmi. UnmarshalException: Error unmarshaling return header; nested exception is: java io. EOFExceptionat sun rmi transport. StreamRemoteCall executeCall(StreamRemoteCall java:203)at sun rmi server. UnicastRef invoke(UnicastRef java:343)at sun rmi registry. RegistryImpl_Stub lookup(Unknown Source)at rmi client. RmiClient main(RmiClient java:33)Caused by: java io. EOFExceptioni experience I have done a breach there.. I also followed from prev threads that I undergo to contract the codebase as a URL but again I dont know how to alter my client files accessilbe through http ? my files are in say E:/work/java/client directory... how to access this through URL?also i tried this on linux where my files are in root/client/ .. Can you java Gurus help me in solving this in both the windows and linux versions.. Your back up is gr8ly anticipatedthankssss

Forex Groups - Tips on Trading

Related article:
http://www.webdeveloper.com/forum/showthread.php?t=159790&goto=newpost

comments | Add comment | Report as Spam


"64 Bit Codebase on Redhat EL 5" posted by ~Ray
Posted on 2007-10-10 16:15:19

This doesn't appear to bring home the bacon - I am getting error -60 and error -200when I attempt to act or open databases. The label we are testingagainst has worked for several years on the 32 bit version of codebaseso we must anticipate there is a problem with the 64 bit version. Any ideas out there?.

Forex Groups - Tips on Trading

Related article:
http://newsgroups.derkeiler.com/Archive/Comp/comp.databases.xbase.codebase/2007-09/msg00000.html

comments | Add comment | Report as Spam


"Game platform codebase differences?" posted by ~Ray
Posted on 2007-10-06 08:12:37

Depends. PC games are usually written with microsoft DirectX libraries. So porting this over to the xbox isnt very costly. The xbox can be seen as a specialized PC running DirectX. The open change competitor is OpenGL. Games written for OpenGL can be moved from PC to Mac to whatever is running OpenGL with go. Games written for DirectX are costly to move to machines that dont run DirectX desire a macintosh or a ps2. Games as all modern software are coded in languages that are mostly portable. So a C++ app (like the bet engine itself) in windows can be ported to OS X or whatever without too much difficulty. The other parts of the bet may not be so portable (like being connected to directx or opengl). Its generally more complex than what I'm describing. Companies that plan to alter cross-platform games just use OpenGL to decrease the be of porting them over. Doom/Quake /Warcraft are an example of this. Currently companies who create on the PC favor Microsoft's DirectX because its easy to create for and dont care about cross-platform stuff posted by at on August 28 say that a be of engines desire Unreal Tournament's can either use OpenGL or DirectX. There's a certain amount of optimization that goes into each pipeline so most focus on DirectX since it has the largest payoff but adding opengl give to a functional aim is not that difficult for many engines. Porting to consoles is an entirely different ballgame. It used to be that consoles didn't support opengl OR directx they had their own specific APIs. Xbox 360 supports XNA now which lets games run on both Windows & 360 though I create by mental act a lot of games still use whatever the raw API is. The other issue is that console games are tuned very very closely to the hardware of the console since its a standard base. That means that while it is sometimes possible to turn from PC to console without too much trouble the change port can be a pain in the ass because console games aren't typically written with portability in object. Again this is changing with new titles being released on multiple consoles /and/ PC posted by at on August 28 It depends on what you plan to do from the go away. All the study platforms undergo pretty big differences in terms of processor architecture available memory and other hardware in general. If you planned on it from the start you alter the decisions that need to be made to get the game running on every platform. But if you decide to turn after the bet has been completed it can be a huge undertaking trying to adapt 1-2 years of label and art decisions on one platform to work on another. There are several reasons you're seeing many more go across platform games these days:1. Games are written in higher aim languages (C++ mostly some C still) that abstract away from the hardware somewhat. It's comfort a good be of bring home the bacon porting from system to another but it's not as much as porting a program written in 100% assembly.2. Developers have "figured out" how to do multiplatform games. Most of the problems have been solved many times and written about in industry literature. So everyone pretty much knows how to do it change surface if they've never done it before.3. Developers/Publishers are no longer bound by draconian licensing terms. Nintendo used to have insane limitations on porting your game to other systems(or getting on the NES in command). Nowadays it's prety much assumed that a game ordain be cross-platform unless Sony/Microsoft/Nintendo own the studio or pay the studio for an exculusive.4. Since hardware costs for development and testing hardware can be very high (or in the case of launch titles the hardware can be non-existant) it's not uncommon for a PC version of the bet to be maintained (I worked on PSP and PS3 open titles that had these and the code tends to get reused so the PC ports stick around after open). This means that the architechture to be multiplatform is usually in displace making ports after the fact easier than they used to be posted by at on August 28 Getting it to run at all on all three platforms is reasonably straightforward-- they all have C compilers they all undergo similar graphics APIs etc. Nowadays they all change surface run the same instruction set (PowerPC.)The move which seems to take the most measure from what I've seen is the optimization 'bomb bet'; finding the bottlenecks on a given platform then moving things around to dissolve them. For example moving tasks to other cores on a 360 or onto SPUs on a PS3. SPUs are interesting because they are fastest when you can case your data up in a chunk to displace to them. So for PS3 you'll spend some time structuring stuff to be able to send it along to SPUs. Fortunately most of these changes are actually good for all platforms-- for example if you put your data together so SPUs can operate on it more efficiently you'll also get exceed lay aside coherency on non-PS3 platforms. And of cover multi-core is becoming a good thing on the PC. As far as the video cards go; yeah they all undergo idiosyncracies but the differences between say a Xbox 360 and a PS3's video hardware are a lot less significant than those between an Xbox 1 and a PS2 posted by at on August 28 This is off the top of my head so I may be missing some important details but here goes. The issues in request of increasing difficulty (in my personal opinion):1. Audio. They all handle playing audio differently but since they're pretty similar in concept (fill sound compete sound forbid sound) it's easy to consider this out.2. Standards. Things like memory separate usage save files and terminology (one may demand "Controller" to be capitalized while the other requires it to be "controller") are different. This is also fairly easy to consider out but there are so many tiny differences that it can change state very tedious.3. Art assets. Data files often undergo to be in very specific formats. Most of this can be done in a pre-processing step (so it doesn't have to be done at runtime) but you comfort have to alter the tool (these are often proprietary formats not just bitmap vs jpeg) and you have to mind about things desire different memory limits on each platform. As in whoops all our textures fit into memory on platform A but not platform B.4. Graphics. This is the big one. The different consoles often undergo very very different APIs for drawing to the screen and an cause that's easy on one console may be downright impossible on another. They are getting closer though - it's much easier now than it used to be.5. Undocumented platform differences. Things that "just work" on one platform (desire say multithreading) can end on another because the timing is slightly different. These kinds of bugs act forever to bring in down.6. Creating for one platform *then* porting instead of creating for two platforms simultaneously. Games are always under-scheduled and there are move to be last-minute hacks to fix last-minute bugs. Those absolutely kill you when you then try to turn the bet to another platform. For example. "Why the *(%! is there a rendering label in the AI code?!"As a totally ballpark calculate. I'd say something desire 30% of the label is different per platform. It's getting easier because the platforms are becoming more similar and because they're faster - you don't need to create verbally everything in assembly so you can reuse more label. Also once you undergo an engine that works across all platforms it becomes significantly easier to make new games after.

Forex Groups - Tips on Trading

Related article:
http://ask.metafilter.com/70284/Game-platform-codebase-differences

comments | Add comment | Report as Spam


"XstreamXM/XaMp issue" posted by ~Ray
Posted on 2007-10-02 21:22:57

See the end of this communicate for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System. Runtime. InteropServices. COMException (0x80040154): categorise not registered at System. Windows. Forms. AxHost. CreateInstance() at System. Windows. Forms. AxHost. GetOcxCreate() at System. Windows. Forms. AxHost. TransitionUpTo(Int32 state) at System. Windows. Forms. AxHost. CreateHandle() at System. Windows. Forms. hold back. CreateControl(Boolean fIgnoreVisible) at System. Windows. Forms. hold back. CreateControl(Boolean fIgnoreVisible) at System. Windows. Forms. AxHost. EndInit() at Xstreamer. Form1. InitializeComponent() at Xstreamer. create1. ctor() at Xstreamer. WelcomeLogin. XMROLogin() at Xstreamer. WelcomeLogin. Timer1_Tick(disapprove sender. EventArgs e) at System. Windows. Forms. Timer. OnTick(EventArgs e) at System. Windows. Forms. Timer. Callback(IntPtr hWnd. Int32 msg. IntPtr idEvent. IntPtr dwTime)************** Loaded Assemblies **************mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: register:///c:/windows/microsoft net/framework/v1.1.4322/mscorlib dll----------------------------------------Xstreamer Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: register:///C:/schedule%20Files/Xstreamer/Xstreamer exe----------------------------------------System. Windows. Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system windows forms/1.0.5000.0__b77a5c561934e089/system windows forms dll----------------------------------------System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system dll----------------------------------------System. Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system drawing/1.0.5000.0__b03f5f7f11d50a3a/system drawing dll----------------------------------------Microsoft. VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.3052.4 CodeBase: file:///c:/windows/assembly/gac/microsoft visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft visualbasic dll----------------------------------------System. Data Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system data/1.0.5000.0__b77a5c561934e089/system data dll----------------------------------------System. Xml Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: register:///c:/windows/assembly/gac/system xml/1.0.5000.0__b77a5c561934e089/system xml dll----------------------------------------AxInterop. WMPLib Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: register:///C:/Program%20Files/Xstreamer/AxInterop. WMPLib. DLL----------------------------------------AxInterop. ShockwaveFlashObjects Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: register:///C:/schedule%20Files/Xstreamer/AxInterop. ShockwaveFlashObjects. DLL----------------------------------------Interop. WMPLib Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: register:///C:/schedule%20Files/Xstreamer/Interop. WMPLib. DLL----------------------------------------Accessibility Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: register:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility dll----------------------------------------************** JIT Debugging **************To alter just in measure (JIT) debugging the config file for thisapplication or machine (machine config) must undergo thejitDebugging determine set in the system windows forms section. The application must also be compiled with debuggingenabled. For example:<configuration> <system windows forms jitDebugging="true" /></configuration>When JIT debugging is enabled any unhandled exceptionwill be sent to the JIT debugger registered on the machinerather than being handled by this dialog. with xamp i get an error communicate saying to manifold check my radiate installation but when i visit the adobe flash player place it informs me that "You undergo version 9,0,47,0 installed." i have uninstalled and reinstalled radiate compete several times with no luck anyone konw what the deal is? currently i'm using the xamp studio beta but would much rather be using xstreamxm. I just put together my new TV rest to attach my LCD on. I kind of desire it. Sorry for the shitty quality from the camera phone but my real camera is in my transport.

Forex Groups - Tips on Trading

Related article:
http://www.wackbag.com/showthread.php?t=74553

comments | Add comment | Report as Spam


"rmi.server.codebase property" posted by ~Ray
Posted on 2007-09-30 16:42:51

Hi i am new ,I've writting a small RMI-application using Apache webserver lo fill classes,that ordain be needed by client the question:I will instead of webserver(http or ftp) a file protocol and as codebase a networkdrive,that be of cover from client accessiblewhat muss exactly written in the property? thanks! file://myserver/mydirectory/myjarfile jar. If there are any spaces they must be URL-encoded as %20. See java net. URLEncoder. Unless otherwise licensed label in all technical manuals herein (including articles. FAQs samples) is provided under this.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5211526

comments | Add comment | Report as Spam


"_Stub not found. Client not obtaining calss from codebase." posted by ~Ray
Posted on 2007-09-28 14:42:01

My RMI Interface implemented classes are exported and boud to the registry created in the folowing way and the registry creation and exporting are doen in a ServletContextListner launched from Tomcat 5.5. JDK used is 1.5I undergo 3 exported remote objects and one of them needs to support JDK 1.4.2 client and deracinate creation was neccesary in the same package ad where its Remote Interface implemeted class is found otherwise the 1.4.2 client gets the Exception for not finding java rmi server. RemoteObjectInvocationHandler. If I put the stub created in the classpath of the 1.4.2 client. RMI process is successfully done. If I used the codebase at the server side programatically with System setProperty("java rmi server codebase","http://somehost/label/"); inthe the folowing server open code the Stub does not be to be get annotated and the client gets the ClassNotFoundException for the _Stub. I also have Securitymanage set for the both client schedule and the server program and for both of them the granted permission is java security. AllPermissionIs it maybe how I launch the registry ? What am I missing to alter the Stub get annotaed with the codebase? Thread go = Thread currentThread();ClassLoader oldLoader =go getContextColassLoader();Registry registry;try{ thread setContextClassLoader(ClassLoader getsystemClassLoader()); try{ egistry=LocateRegistry getRegistry(port); reg list(); }surprise(Exception e){ LocateRegistry createRegistry(port); }finally{ thread setContextClassLoader(oldLoader); }} ..... .... code... ..... label. registry rebind(name,remoteObjectA); registry rebind(label,remoteObjectB); registry bind(label,remoteObjectC); If the LocateRegistry createRegistry(port); is called within the ServletContextListner,I anticipate it is the Tomcat process who starts the registry. The classes of the Remote Interface implemented classes be ed to be imported in the ServletContextListner as they need to be bound to the registry and exported when the ServletContextListner is started. How can I make it so that the classpath is unknow to the registry? I anticipate I cannot LocateRegistry cresteRegistry() and compose Stubs to get downloaded from URL location by the clientsIf I wanted support the pre 1.5 JVM. I need the _Stub categorise in the same case as the Remote Interface implemented class. Registry then unwittingly finds the _Stub in the class path and the _deracinate does not get annotated.. maybe.. How can I give pre 1.5 JVM runnning client transfer the stub? I undergo tried several possible ways but so far no luck of making it bring home the bacon. The Stub class is generated into the same case as the implementation class you run rmic on not the package of the remote interface if they're different. Nothing you can or should do about that. I'm not aware whether Tomcat starts an RMIRegistry of its own but I can't see any evidence of it on my installation. Whoever is starting the Registry it looks desire it has access to your application classes on its classpath and you need to do something about that. I open the follwoing mention in other form:I anticipate I cannot set the codebase within the ServletContext. convey you anyway ejp. go out: Tue. 21 Feb 2006 19:24:53 -0500Reply-To: Greg Trasuk <trasukg@stratuscom com>From: Greg Trasuk <trasukg@stratuscom com>affect: Re: Use Jini in TomcatIn-Reply-To: <20060221185945.49964 qmail@web51405 send yahoo com>Content-Type: text/plain; charset=iso8859-1Unfortunately it's not easily possible to set the codebase annotation in Tomcat java rmi server codebase ordain undergo no effect since it only applies to the System classloader (i e the command-line classpath). Web containers actually fill your application classes inside a classloader for the webapp which in Tomcat's inspect extends from URLClassLoader which means that it has codebase annotations that already refer to register system paths. You might be to analyse out user-rjmann jini org; Ron Mann did some work on creating a new class loader underneath Tomcat. There was also a presentation at the last JCM but I forget the label (just look in the abstracts). My preference is to host your services and infrastructure separetely either using the function Starter framework or something like Harvester (http://harvester jini org). Cheers,Greg.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5211932

comments | Add comment | Report as Spam


"Accessing codebase through http in RMI" posted by ~Ray
Posted on 2007-09-26 14:43:11

HiI am C prgrammer and now badly stuck wid my new open luv- java!I am working on RMI where I undergo a simple client schedule sending Hi. Hellos to my server schedule. Then I created a new categorise in my rmi client side and tried to send it through the interface to the server. Server gave unmarshelling errors. which i guess is bcoz it doesnt know about the classes in client side. I follwed similar threads here and could alter out that i must specify a codebase visible to the server where it can see the client files.. I created a policy register in the server as this-grant codeBase "register:/E:/bring home the bacon/java/"{permission java security. AllPermission;permission java net. SocketPermssion "*","accept,connect,resolve";};My client fils are in E:/work/java... I am getting errors in server side--Exception in go "RMI TCP Connection(1)-127.0.0.1" java security. AccessControlException: access denied (java net. SocketPermission 127.0.0.1:2014 accept,end)at java security. AccessControlContext checkPermission(AccessControlContext java:264)and client says--java rmi. UnmarshalException: Error unmarshaling go header; nested exception is: java io. EOFExceptionat sun rmi displace. StreamRemoteCall executeCall(StreamRemoteCall java:203)at sun rmi server. UnicastRef create(UnicastRef java:343)at sun rmi registry. RegistryImpl_deracinate lookup(Unknown Source)at rmi client. RmiClient main(RmiClient java:33)Caused by: java io. EOFExceptioni know I have done a blunder there.. I also followed from prev threads that I have to specify the codebase as a URL but again I dont experience how to alter my client files accessilbe through http ? my files are in say E:/bring home the bacon/java/client directory... how to access this through URL?also i tried this on linux where my files are in root/client/ .. Can you java Gurus back up me in solving this in both the windows and linux versions.. Your back up is gr8ly anticipatedthankssss

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5212365

comments | Add comment | Report as Spam


"Inter-Applet Communication With a Different Codebase" posted by ~Ray
Posted on 2007-09-24 14:47:12

I undergo a requirement to provide applet to applet communication between applets which ordain most likely have different codebases and definitely be packaged in separate jars. The simple solution for inter-applet communication provided by searching around has been to use the applet context or a static applet registry categorise to provide methods for communication. As I undergo examined the classloaders provided with most browser plugin JVMs it seems that the applets will be loaded by displace classloaders causing a ClassCastException in any act to direct to a categorise that should aid communication between the applets. As another complicating factor the URL from which the applets will be accessed is served up by a portal server and is affect to dress (the portlets may be viewed from any be of different "pages" that undergo different URLs with a variety of structures) so I never experience what the relative paths to jars may be. advance searching has provided the following other solutions:1) turn my own classloader.2) alter the codebase point to a servlet which will give the change by reversal classes (Weblogic seems to do this)3) Use JSObject pass the parameters to a Javascript method or disapprove and have Javascript pass them to the class/4) Use local sockets or RMIAm I missing a simpler solution? Does anyone have experience with any of these solutions?

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5212808

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the codebase archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


codebase