URL in plugins
I want to access the record url of a lookup field in plugin and have to put into one URL field.So that If I click on that URL text the user should directly move to that particular record.
Can we achieve this functionality in plugin?Please let me know the solution or work around ASAP...its urgent.
Prashant Wani
Prashant Wani ,Software Engineer-II,Infinx Services Pvt.Ltd.
Hi Prashant,
Do you mean you want to generate the URL of the look up record and set into text field so that user should be able to open record directly?
You can achieve it through JS as well.
- In below url dynamically set the entity type and Id of the record. Construct the URL. You can read the Server URL,Entity type and Id of lookup and construct the URl.
https://URL/main.aspx?etn=incident&pagetype=entityrecord&id=%7BE08FE768-325F-E311-93F3-00155D10120B%7D.
- Set the constructed URL into text field.
If you are using CRm 2013 we have new URl format of String type field available. if you are using CRM 2011 you can dynamically make it hyperlink. refer below link.
https://community.dynamics.com/crm/b/mshelp/archive/2013/02/15/crm-2011-change-format-of-textfield-to-hyperlink.aspx
Thanks!
Kalim Khan
Similar Messages
-
Custom jdbc driver and custom url without plugin
I have been using sqldeveloper now for a while, using it to connect to pretty much all my db's. oracle,mssql,postgresql etc..
I need to connect to a db2 iseries database, I have jdbc code that works fine using the jt400 driver http://jt400.sourceforge.net/
I have loaded the library to sqldeveloper, but unfortunately that doesn't work. Is there any way to add a "custom" tab to the connection menu which allows you to input your own driver/url ? or any other way to support the jt400 driver? I have read that squirrel sql works, but would prefer to stick with sqldeveloper if I can get it working.
Thanks for your help.You can only add connection tabs for supported dbms types.
-
XSL Mapper JDeveloper plugin fails to launch from App Engine
XSL Mapper JDeveloper plugin fails to launch from App Engine ONLY WHEN THE TARGET LOCATION OF THE SERVICE CONFIGURATION POINTS TO AN HTTPS URL.
If I make the target location field of the service configuration point to an HTTP url, the plugin launches fine.
The error message indicates that there is a missing certificate in the chain:
oracle.tip.tools.ide.common.xsdgrammar.SchemaGrammarException: sun.security.validator.ValidatorException: No trusted certificate found
A basic google search on this error leads me to believe that I need to add a key to the java clients keystore on my PC. Can anyone confirm or deny this? Has anyone else encountered this?After digging pretty hard I believe I've found the cause and two possible solutions...and I quote...
"This seems to be a known conflict between versions of the Digi 001, the Audio Media III card, Panther OS, Pro Tools, and QuickTime 7 and above. This Mac is running...
OS Panther 10.3.9
Pro Tools LE 6.2.2
This is what I've found from http://sillydog.org/forum/sdt_8928.php (page three of this thread).
"testing has yielded that the Audio Media III card can be used with Pro Tools LE 6.2.3 on a platform as high as OSX Panther 10.3.9 as long as you do not (I repeat do not) install QuickTime 7ever. The QuickTime 6.5.2 re-installer will not remove problems created by installing QuickTime 7."
"Basically if you are running what Digidesign refers to as “Legacy” hardware. Audio Media III/ Toolbox or the Digi 001. You are running a version of Pro Tools LE that is incompatible with QuickTime 7. If at any point QuickTime 7 is installed you must re-install (the OS and all programs) to delete its effects, and are stalled on OSX 10.3.9 (w/o QuickTime 7)."
Knowing this, I was able to find a possible solution here... http://fox-gieg.com/tutorials/2005/undo-quicktime-7/
The other solution is to upgrade equipment, or re-install OS and other Apps to go backwards.
Hope this helps some people! -
JSP Plugin tag for applets with codebase - WLS 6.1 sp2
Could someone please tell me what I am doing wrong?
I have the following Plugin tag in my JSP.
<jsp:plugin type="applet"
code="com.xxx.efm.frontend.view.EFMApplet"
codebase="/lib"
archive="applets/EFMFrontend.jar, EfmCommon.jar, TrimmedWeblogic.jar, dom4j-full.jar,
/classes/"
jreversion="1.3"
nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
<jsp:params>
<jsp:param name="Delimiter" value="<%=delimiter%>" />
<jsp:param name="ComponentMap" value="<%=componentMapValues%>" />
<jsp:param name="ServerConfig" value="<%=serverConfigValues%>" />
<jsp:param name="GUIConfig" value="<%=guiConfigValues%>" />
</jsp:params>
</jsp:plugin>
I am trying to load the JSP using Netscape 4.7. When I don't have a plug-in installed
the page
displays "Click here to get the plugin". On clicking on it the browser pops up
a "Plugin not loaded" dialog.
All this is fine except that the dialog says it can retrieve the plugin from "/lib".
When I click on
"Get the plugin" button the new browser window tries to load the URL: http://localhost:2002/lib/?application/x-java-applet;version=1.3.
It totally ignores the netscape URL for plugin. Something similar happens with
IE as well.
I tried the same JSP without the codebase tag and all worked fine (except for
my applets). Yeah, I can append a "/lib" to each of
my jars in my archive and it just might work. But should I be doing anything different?.
Any help is appreciated.
Thanks,
Gopal
I am facing the same problem with netscape (4.7x). Gopal, did you find any
solution?
IE works fine for me. I use the foll pluginurl
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#V
ersion=1,3,1,1"
_Jp
"Gopal" <[email protected]> wrote in message
news:[email protected]...
>
> Could someone please tell me what I am doing wrong?
>
> I have the following Plugin tag in my JSP.
>
> <jsp:plugin type="applet"
> code="com.xxx.efm.frontend.view.EFMApplet"
> codebase="/lib"
> archive="applets/EFMFrontend.jar, EfmCommon.jar,
TrimmedWeblogic.jar, dom4j-full.jar,
> /classes/"
> jreversion="1.3"
>
nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
>
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab"
>
>
> <jsp:params>
> <jsp:param name="Delimiter" value="<%=delimiter%>" />
> <jsp:param name="ComponentMap" value="<%=componentMapValues%>" />
> <jsp:param name="ServerConfig" value="<%=serverConfigValues%>" />
> <jsp:param name="GUIConfig" value="<%=guiConfigValues%>" />
> </jsp:params>
> </jsp:plugin>
>
> I am trying to load the JSP using Netscape 4.7. When I don't have a
plug-in installed
> the page
> displays "Click here to get the plugin". On clicking on it the browser
pops up
> a "Plugin not loaded" dialog.
> All this is fine except that the dialog says it can retrieve the plugin
from "/lib".
> When I click on
> "Get the plugin" button the new browser window tries to load the URL:
http://localhost:2002/lib/?application/x-java-applet;version=1.3.
> It totally ignores the netscape URL for plugin. Something similar happens
with
> IE as well.
>
> I tried the same JSP without the codebase tag and all worked fine (except
for
> my applets). Yeah, I can append a "/lib" to each of
> my jars in my archive and it just might work. But should I be doing
anything different?.
> Any help is appreciated.
>
> Thanks,
> Gopal
-
How to use different xsl's for user first time logon in OAM
Hi,
We have a requirement to use different stylesheets (xsls) for employees and customers in OAM. How we can configure different XSLs for user first time logon to OAM (i.e for change password and configuring challenge and responses).
Any pointers on this is appreciated.
Thanks in advance..
SrikanthXSLs displayed are controlled by the StyleCookie. So if you can set the value of this cookie to be different front customers and employees, they will see different styles.
You can do this in various locations -> from the web server, from the url, custom plugins, etc....
-Raj -
How to upload file to server?
Hi all,
I am writing a code to upload a zip file to client server. I am using Flash Builder 4.6, Extension Builder 2.1 on a Win 7 machine. My request includes login and password authentication and other params. I am sending the file contents as byte array. But, the return code I get from the server suggests that it does not receive any file. It gets null in the file parameter.
Here is my code,
var request:URLRequest = new URLRequest("http://<url>api/plugin.php/");
request.method = URLRequestMethod.POST;
var fileStream:FileStream = new FileStream();
fileStream.open(PKG_FILE, FileMode.READ);
var byteArr:ByteArray = new ByteArray();
fileStream.readBytes(byteArr, 0, fileStream.bytesAvailable);
request.data = "login=" +
LOGIN +
"&password=" +
MD5.hash(PASSWORD) +
"&pkg=" +
byteArr +
"&pkg_name=" +
PKG_NAME;
var loader:URLLoader = new URLLoader();
// Call OnSuccessfulExportif export completes
loader.addEventListener(Event.COMPLETE, OnSuccessfulExport);
// Call OnUnsuccessfulExportif export failed
loader.addEventListener(IOErrorEvent.IO_ERROR, OnUnsuccessfulExport);
loader.load(request);
======================================================
private function OnSuccessfulExport(event:Event):void
trace(event);
I get a callback on OnSuccessfulExport function, but the value returned from the server in event.target.data is that the server received no file.
Am I missing something here?storing:
The data of your uploaded document is stored in your context node.
Read this data, turn it into a table with one of the SCMS* functions.
store it in a table, or write it into a file. Whichever you choose.
downloading again:
read all data from your table or file
turn it into an xstring using one of the SMCS* functions
put the xstring in the context node bound to your downloadfile element
The principle is deadsimple. The only thing that really matters is where you want to store the file. And that is more of technical ABAP R/3 question, if not a functional question than a webdynpro for abap one. -
How do I setup a DNS record to point to an internal IP with a port.
I am trying to setup a DNS entry on my AD server to point to a web sever that I have setup to run certain services. All of these services run through IIS on port 82 for example service A is internally 192.168.0.1:82/info/login and service B is 192.168.0.1:82/tech/login.
I am trying to give these services easy to use names like for example info.mycompany.com and tech.mycompany.com so that it is easy to access for the employees but I am obviously missing something because I have had no luck setting up anything. My
company is still using SBS 2003 as it's AD and DNS server so I am working with flint and bear skin here.
I am also trying to do the same thing for the external access to these services but where as I have the internal address for these services I have the external static IP. When using the external IP with the port from outside the network everything
works fine but I would like for it to to have a simple name identical to the internal names but accessible from the outside. I frankly feel out of my depth on both of these issues and I would really appreciate any help that can be lent. Thank you.You cant set a dns record (that would be used by a browser) to point to an ip and port, srv records can but that requires the application to look them up.
To have info.mycompany.com point to 192.168.0.1:82/info/login you
would add a cname or A record to the dns pointing to that IP, then in IIS you would assign that dns name to the host headers. Also in IIS you would need to use
URL rewrite plugin with this you would setup a redirect for that host header {HTTP_HOST} to point to that link. -
How do I install the plug-in for Solaris??
Where are the steps documented to use the 1.4 plug-in
with Netscape 4.x on Solaris?
I was expecting a big README when I unpacked the
product.
I thought maybe all I had to do was set
NPX_PLUGIN_PATH=/disk2/j2re1.4/plugin/sparc/ns4
but it still uses the older built-in plug-in.
This is Solaris 2.8, Netscape 4.79, Java plug-in 1.4I tried to do the same thing on Linux (RedHat 7.1),
and it turned out quite tricky. The instructions at
http://java.sun.com/j2se/1.4/jre/install-solaris.html#plugin
obviously ain't telling the whole thing!
(1)
I thought maybe all I had to do was set
NPX_PLUGIN_PATH=/disk2/j2re1.4/plugin/sparc/ns4
but it still uses the older built-in plug-in.(2)
The second thing is to tell the browser to enable Java
Plug-In. In the Netscape's "Preferences | Advanced" menu there is a checkbox "Enable Java Plugin" right
under the checkbox "Enable Java". So, try to check
that "Enable Java Plugin" checkbox.
... What? You can't check the box because it is greyed out? Ah, that's right: Netscape Navigator and Sun Java Plug-In
have somewhat different ideas about what MIME types
signify the applet's being able to handle applets.
Click on "Help|Plugins", or go to the URL
about:plugins. It should show that "Java(TM) Plug-in 1.4.0-b92" (or whatever version you have) is now
responsible for handling a whole bunch of types,
but the list of types probably does not include
"application/x-java-vm". Presumably, it is this
type that the plugin must declare to be able
to handle in order for Netscape to recognize the
plugin as a proper Java plug-in. What can you do
about it? On Usenet (
http://groups.google.com/groups?q="enable+java+plugin"&hl=en&lr=&selm=wyofzvfrc1.fsf%40leo.tools.intra&rnum=3
) people have suggested pacthing
$JAVA_HOME/jre/plugin/ns4/javaplugin140.so so that
it would declare the ability to handle that missing
type. This is how I did it:
mv ns4 ns4.orig
mkdir ns4
cd ns4
perl -p -e 's/x-java-bean;version=1.1.1::/x-java-vm::Applet Support, /g' ../ns4.orig/javaplugin140.so > javaplugin140.so
(3) This indeed made my browser understand that the
plugin is a genuine Java plugin, and I can now
check the "Use Java Plugin" checkbox. Unfortunately,
when I actually try to use it on an applet,
the plugin never gets to work.
One problem was that the plug-in could not find the
java_vm program; I took care of that somehow. Then,
java_vm could not find libjvm.so, then libjava.so.
I fixed that by setting
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client
(4)
After that, java_vm started complaining about something
yet different; now it "Could not find Java VM symbols".
I gave up, and called that a day.
I wish Sun posted some "real-life" installation instructions indeed.
--Vladimir -
Problem starting Eclipse Mars, "
I have been running Eclipse Kepler on a very large C/C++ project for a few years. Recently, I have experienced a drastic slow-down in the UI, which I have not been able to resolve. So, I have decided to upgrade to the latest version of Eclipse in order to see if that will fix my problem. Unfortunately, I have encountered several problems with the newer version of Eclipse.
I am running Eclipse Mars on CentOS 6.6. I have downloaded it from Eclipse, not using an RPM or other package for my OS. I also downloaded Oracle's JRE 1.8.0.45, and configured the eclipse.ini to use that version of Java. Finally, I have pointed Eclipse to my existing Kepler workspace in order to retain all of that precious information.
When Eclipse starts up, it displays my existing workspace, and also an error message:
'Setup check' has encountered a problem.
An internal error occurred during: "Setup check".
The details state:
An internal error occurred during: "Setup check".
java.lang.NullPointerException
Opening the error log view shows a ton of messages like this, all of which relate to some GIF file or other:
eclipse.buildId=4.5.0.I20150603-2000
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product
This is a continuation of log file /swdev/.metadata/.bak_0.log
Created Time: 2015-07-07 16:54:13.613
org.eclipse.core.runtime
Error
Tue Jul 07 16:54:13 EDT 2015
Invalid input url:platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/types.gif
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/types.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290)
at org.eclipse.core.runtime.FileLocator.find(FileLocator.java:152)
at org.eclipse.jface.resource.URLImageDescriptor.getStream(URLImageDescriptor.java:140)
at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:105)
at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:100)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:270)
at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:291)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:224)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:202)
at org.eclipse.ui.internal.dialogs.ViewLabelProvider.getImage(ViewLabelProvider.java:93)
at org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnLabelProvider.java:35)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:154)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:949)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:114)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:1029)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:473)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2176)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:843)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:818)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:791)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:611)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:762)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalSetExpanded(AbstractTreeViewer.java:2047)
at org.eclipse.jface.viewers.AbstractTreeViewer.setExpandedElements(AbstractTreeViewer.java:2429)
at org.eclipse.ui.internal.dialogs.ShowViewDialog.restoreWidgetValues(ShowViewDialog.java:338)
at org.eclipse.ui.internal.dialogs.ShowViewDialog.createDialogArea(ShowViewDialog.java:177)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:768)
at org.eclipse.jface.window.Window.create(Window.java:430)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
at org.eclipse.jface.window.Window.open(Window.java:792)
at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:94)
at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:75)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)
at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:147)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1327)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
Any assistance would be greatly appreciated.Am 07.07.2015 um 23:15 schrieb Tape Five:
> When Eclipse starts up, it displays my existing workspace, and also an error message:
>
> 'Setup check' has encountered a problem.
> An internal error occurred during: "Setup check".
>
> The details state:
>
> An internal error occurred during: "Setup check".
> java.lang.NullPointerException
Please submit a bugzilla against Oomph and attach the entire stack trace of this NullPointerException.
Cheers
/Eike
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper -
Flash player and kaspersky browser add-ons
Hallo,
I use Internet Explorer 9 (32 bit) on windows 7 (64 bit) with Adobe flash player (version 11,5,502,135 installed) and also the following kaspersky browser add-ons from software "kaspersky internet security 2013":
Name Content Blocker Plugin
Name Virtual Keyboard Plugin
Name Safe Money Plugin
Name URL Advisor Plugin
Name Links untersuchen
Some time - once per month - I like to go to cinema and therefor I use cineplex online ticket booking system, which is based on adobe flash player. But ever I want to reserve online a cinema ticket, I got an error message in browser from some add-on, probable from flash player add-on "Shockwave Flash Object" by Adobe Systems Incorporated, and cannot use the web page to reserve a ticket in online ticket system of CINEPLEX: https://booking.cineplex.de/TicketBoxXNGFrontend/booking_ng.jsp?perf_i d=1E871000023VYZJHTG&site_id=31 The web page from booking.cineplex is since many years the same, but flash player is often updated and kaspersky lab add-ons are very young.
Could anybody confirm problems between flash player add-on and the kaspersky lab add-ons, because if I deactivate all kaspersky add-ons, there are no problems to use the webpage from CINEPLEX and their online ticket system based on flash player. Support of Kaspersky Lab denies any problems with their software regarding this issue, but I don't believe, that they had tested it with the booking.cineplex site.
Regards
hfreiwaldHi Chris,
thank your for the hint. But this site is already on whitelist in all moduls of kaspersky. I assume the error comes not from possible blocking content of the web site, but from blocking something functions from flash player "Shockwave Flash Object" add-on, but I could not exactly determine this. Because this problem is difficulty to delimit, I use IE 9 only without Kaspersky add-ons, otherwise I get angry each time, if the access to cinema portal site does not work.
Perhaps someone else has an idea. -
Automatically download and open file configuration
I have deployed an application with jnlp and whenever I click on a link , It ask for prompt with option of opening application with java web start.But I want it will not ask for prompt and will opened automatically.
Type '''about:addons''' in URL
*Goto Plugins > Java > Change to "Always Active" -
Play a flash file inside a container or component like jframe or jpanel
sir ,
i want to embed a flash file inside a jframe or jpanel,
is it possible ,please give me related reference of URL providing
plugin for this.
i will be very thankful for this great help.
it is very importent for me.
byeI think JMF will support flash files.
-
Do you know how to use Flash? can you help?
hi all,
Do you know how to use Flash?
I have been trying for months to find someone who can use
flash, who can help me, with no luck.
I need my links on my website updating, just a couple of them
need the text changing as i need
to change the name/title of some pages. I have tried to do it
myself (using a trial version of flash,
as i dont have flash). the site was made using dreamweaver.
the files are .FLA
and before anyone says 'get the person who made the site to
do it'....He wont, ive tried.
when i tried to change them myself i cocked them up and now
they dont work at all, see my
website and you will see; www.stevenallenphotography.co.uk
so, if you can use flash please can you help me? all i need
doing is the file updating with some
of the link titles/names changing, i.e. one link is
'exhibitions' which needs changing to 'published work',
please get in touch if you can help.
thanks,
steven.I used divx in my site once its really very nice! but i use it in different host not .mac...try this divx web player with video selector code --------<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
width="640" height="480"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<embed id="np_plugin" type="video/divx"
width="640" height="480"
pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object>
<script type="text/javascript">
// This code detects which browser we are
// running into (IE or others) and assigns
// the correct element (object or embed) to
// the "plugin" variable, that we will use.
var plugin;
if(navigator.userAgent.indexOf('MSIE') != -1)
plugin = document.getElementById('ie_plugin');
else
plugin = document.getElementById('np_plugin');
// This is a local JS function used by our form
// element to call the plugin functions using
// the "plugin" variable that we defined above
function openNewMovie()
var url = document.forms['videoSelector'].movie.value;
if(url != '')
plugin.Open(url);
</script><form name="videoSelector">
Choose a video to play:
<select name="movie" onChange="javascript:openNewMovie();">
<option value="" selected>Video Selector
<option value="http://www.yourdomain.com/folderdivx/name.divx">title1 divx
<option value="http://www.yourdomain.com/folderdivx/name.divx">title2 divx
</select>
</form> ---------------------
Hope this help! -
SWFLoader loded swf and relative path issue
Hi,
Before explaining the problem, let me describe the usecase.
I have dashboard flex application hosted on Host1.
I have another flex application which acts as plugin to dashboard and is hosted on Host2.
I am using proxy to load plugin into dashboard using SWFLoader. With proxy SWFLoader in dashboard thinks that the plugin is coming from same host.
For plugin to load I specify SWFLoader source something like - source="Proxy/Host2WebappDir/plugin.swf.
Everything is fine upto this point. plugin.swf get loads successfully without any issue.
Now the problem -
If plugin.swf made some request - the url path of that requrest is expected to be relative - i.e. if it make request say getIndianStates.xml, I am expecting the request should look for resource at "Proxy/Host2WebappDir/getIndianStates.xml". Instead it tries to look for getIndianStates.xml into dashboard hosting directory on Host1.
Can this issue be resolved without making any modification in source of plugin.swf.
Thanks in advance,
Prithveesingh Zankat.I don’t know if any way to fix this without changing the URL the plugin wants to load. Now if the plugin stores that URL in a publicly accessible variable, you might be able to access it from the main SWF and change it. But it would be better to have the plugin detect relative paths and make sure they are relative to the SWF. The SWFLoader component uses a LoaderUtil class to do that for SWFs it loads, but loads that don’t use SWFLoader need similar fix ups.
-
How to use class loaders?
Hi all,
I wrote a very simple plugin engine. What I would like to do is allow for each plugin loaded, to be done in such a manner that it can be unloaded and/or reloaded at runtime without the entire application bein restarted. I know this is possible as I have seen some app servers that allow this. Basically, I want to make sure that when I null out the class loader, that the class is removed from memory. How I am testing this is simple. Load a plugin which adds a menu item. Attempt to unload the class (via nulling the class loader), and clicking on the menu item. This would normally go into the class loaded, but if it is unloaded, then it should throw some sort of exception (is this correct?). Below is what I have to load a plugin. The goal here is to be able to load a plugin with its own classloader, so that I can unload it later while not having to shut down the application. Also, one thing I am confused on. It seems no matter what I use for the URL object (in the try..catch block when creating it), it always finds my plugins with the path attribute I pass in. So I am a bit confused as to what the purpose of the String argument for the URL constructor is for. Lastly, reading the API for ClassLoader and methods like findClass, loadClass, etc, it seems that it will ALWAYS go to the parent class loader first to try to load the class. If the parent is null (as is in this case because I am creating a new class loader each time a plugin is to be loaded), it uses the bootstrap loader, which is the JVM loader. The problem I have with this is how do you force the loader to be the one you are creating, and not the JVM loader. I don't kow if the JVM loader is able to find my class or not, but I assume it is finding it because the URL constructor seems to take in anything and still find my plugin classes. So I am wondering if there is a better way to enforce or ensure that each new URLClassLoader instance is infact in control of the class it loads, and not the JVM class loader which would make it impossible to unload a single class.
public boolean loadPlugin(String path)
URL urls[] = new URL[1];
try
urls[0] = new URL("file://" + path);
catch(MalformedURLException murle)
System.out.println("Malformed URL");
URLClassLoader loader = new URLClassLoader(urls);
try
Plugin plugin = (Plugin)loader.loadClass(path).newInstance();
plugin.init(this); // add menu item.
loader = null; // attempt to unload class
return true;
catch(Exception e)
e.printStackTrace(System.out);
return false;
}Basically, I want to make
sure that when I null out the class loader, that the
class is removed from memory.The class is removed from memory when it is garbage, i.e. when there are no references to it left.
Note that:
- Every instance (i.e. object) of the class holds a reference to its class object.
- The classloader that loaded the class holds a reference to the class object.
Load a plugin which adds a menu item. Attempt
to unload the class (via nulling the class loader),
and clicking on the menu item.Obviously the class can't be unloaded while the menu item has a reference to an object of the class.
Also, one thing I
am confused on. It seems no matter what I use for the
URL object (in the try..catch block when creating it),
it always finds my plugins with the path attribute I
pass in.This obviously means that the bootstrap classloader finds your class. Remove the class from your classpath e.g. by moving it to a subdirectory.
Here is some sample code that should work. This is meant as a proof of concept, you probably want to do some things differently. I'm also writing this from the top of my head, so I can't guarantee that there are no errors here.//this file (Plugin.java) should be in your classpath
public interface Plugin {
//method declarations
}---//this file (MyPlugin.java) must NOT be in your classpath
public class MyPlugin implements Plugin {
//methods
}---//this file (MainClass.java) should be in your classpath
//this is the main program
//import stuff (e.g. URLClassLoader)
public class MainClass {
private ClassLoader loader;
private Class plugin_class;
private URL[] plugin_path; //set this
public static void main(String[] args) {
MainClass mc=new MainClass();
//load an instance of the plugin
Plugin p1=mc.getPlugin();
//now modify the "MyPlugin.class" file
//then you must load the new MyPlugin class
mc.reloadPlugin();
//load an instance of the new plugin
Plugin p2=mc.getPlugin();
//now p1 is the old MyPlugin and p2 the new MyPlugin
//if we don't need the old plugin anymore we can do this
p1=null;
//Now there are no more references to the old
//plugin class so it (and its classloader object)
//may be removed by the garbage collector
public MainClass() {
reloadPlugin();
public Plugin getPlugin() {
return (Plugin)plugin_class.newInstance();
public void reloadPlugin() {
loader=new URLClassLoader(plugin_path);
plugin_class=Class.forName("MyPlugin", true, loader);
}Now, for the sake of argument, suppose that we would change MainClass.getPlugin() to this: public MyPlugin getPlugin() {
return (MyPlugin)plugin_class.newInstance();
}Now MainClass uses MyPlugin so the MyPlugin class will be loaded when the MainClass class is loaded. However, this is not at all what we want.
If we change it back to the way it was we notice that when the MainClass class is loaded then only the Plugin (interface) class is loaded. This way the MyPlugin class won't be loaded until we load it manually through our own classloader, and this is exactly what we want.
This is why we usually handle all dynamically reloadable classes through interfaces instead of using the classes directly.
- Marcus
Maybe you are looking for
-
IMovie HD "help" no longer works
After importing the second video of my movie (from old 8mm film, put on disc) to edit, my iMovie "Help" no longer works. Worked after the first but not after the second. Says there is still 184GB available.
-
I've tried uninstalling, including all personal information, etc., then reinstalling without any importing of external data-- in other words, a very fresh and clean installation. Still, I can't get Silverlight to run at the Fidelity site. Internet Ex
-
Recieved this in an email just now. Sent by [email protected] Your Apple ID (my email address) was used to sign in from another IP Address. Please verify your identity today or your account willl be disabled due to concerns wehave for the safety and
-
Hi SAP Gurus, I would like to do SRM certification... can you mention of provide the list of material/books we need to refer... and do we have seperate certification for SRM 5 and SRM 7? Bcos i started my career from SRM 7... Please guide me on this.
-
Snow Leopard won't load.
My sister has a MacBook with an Intel Core 2 Duo processor. She has udated the OS. She tried to Upgrade to Snow Leopard using disk and got the message that is will not work on this computer. Woud it be better to download the Snow Leopard OS from Appl