Error "cannot locate object' launching app with Web Start
Hello,
I receive the error shown below when launching a Java application and cannot figure out where to begin with debugging. It was developed under Netbeans 5.0.
You can recreate the error by launching this application:
http://www.mikenaglich.net/ztest17.jnlp
Error text and JNLP file follow. I am really puzzled and would appreciate any help. Thanks.
Mike
Error Text
========
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
The system cannot locate the object specified. Error processing resource 'http://www.netbeans.org/jnlp/DTD/jnlp.dtd'.
App JNLP File
===========
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc.//DTD JNLP 1.5//EN" "http://www.netbeans.org/jnlp/DTD/jnlp.dtd">
<jnlp codebase="http://www.mikenaglich.net" href="ztest17.jnlp">
<information>
<title>ztest17</title>
<vendor>Mike Naglich</vendor>
<homepage href="www.mikenaglich.net"/>
<description> </description>
<icon href="default"/>
<offline-allowed/>
<shortcut online="true">
<desktop/>
</shortcut>
</information>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
</resources>
<resources>
<jar download="eager" href="dist/ztest17.jar" main="false"/>
</resources>
<resources locale="" os="">
<jar download="eager" href="dist/lib/swing-layout-1.0.1.jar" main="false" version=""/>
</resources>
<application-desc main-class="ztest17.Main"/>
</jnlp>
I receive the error shown below when launching a Java
application and cannot figure out where to begin with
debugging. There are a number of problems, potential problems,
redundancies and illogicalities in that JNLP file.
...It was developed under Netbeans 5.0. Uh-Huh. I am coming to recognise those
(damnable) NetBeans JNLP files.
You can recreate the error I don't think I need to, your error output and JNLP
file are quite instructive..
...by launching this
application:
http://www.mikenaglich.net/ztest17.jnlp
Error text and JNLP file follow. I am really puzzled
and would appreciate any help. Thanks.
Error Text
========
The XML page cannot be displayed
Cannot view XML input using style sheet. Please
correct the error and then click the Refresh button,
or try again later.
The system cannot locate the object specified. Error
processing resource
'http://www.netbeans.org/jnlp/DTD/jnlp.dtd'.
1) Whenever you see a message from Java,
JavaWS, or an application saying words the the
effect of 'cannot find..', try checking the URL of the
resource in a browser. If a browser comes
up '404' (not found), then the Java tool or app.
will be unable to access it either.
That is the first and fundamental problem with that
JNLP. The DOCTYPE element is not strictly needed
in a JNLP, and I would recommend removing it entirely
rather than try and hunt down any NetBeans DTD.
With the way NB writes JNLP's, I would not trust
a DTD written or controlled by them, in any case.
App JNLP File
===========OK.. I recommend replacing the current JNLP
with the one below, here is a summary of the
changes I made..
- removed DOCTYPE line with reference to '404' DTD
- compacted resource elements, removing empty attributes
- changed ztest17.jar to main='true'
- removed redundant 'download="eager"' attributes as well
as main="false" and version="" from swing-layout.. jar element
- removed broken(?) <icon> element and empty <description>
- changed homepage href to relative
Some of them are guesses, but I'd give it a 90%+
chance of working, if written like this.
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://www.mikenaglich.net" href="ztest17.jnlp">
<information>
<title>ztest17</title>
<vendor>Mike Naglich</vendor>
<homepage href="/"/>
<offline-allowed/>
<shortcut online="true">
<desktop/>
</shortcut>
</information>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<jar href="dist/ztest17.jar" main='true' />
<jar href="dist/lib/swing-layout-1.0.1.jar" />
</resources>
<application-desc main-class="ztest17.Main"/>
</jnlp> Note that a glance inside the ztest17.jar supports
it contains a manifest file tat specifies the main class,
so it might be possible to remove main='true'
altogether - best not for the moment, though.
Similar Messages
-
Error during precalculation Object variable or With block variable not set.
Hi
We are tyring to set up a precal server for broadcasting. The precal server is running on a windows 2003 server and the service is running under a local admin account.
When we try to run a test workbook, we get the email with the workbook, but there is no data in it.
The Precal server shows us the following log:
Connection transfer server BIPRD service sapgw00 system number
S:RSRPREC:000 BIPRD sapgw00 ALEX
S:RSRPREC:000 BIPRD sapgw00 ALEX
S:RSRPREC:000 BIPRD sapgw00 ALEX
S:RSRPREC:000 BIPRD sapgw00 ALEX
S:RSRPREC:000 BIPRD sapgw00 ALEX
Precalculation request type: E, printer: , variant:
Request dispatched to precalculation DLL
S:RSRPREC:000 E ALEX
S:RSRPREC:000 E ALEX
Unresolved exception occurred on the precalculation server
E
Error during precalculation Object variable or With block variable not set.
S:RSRPREC:000 Object[] args String[] paramnames Boolean[] CopyBack) ALEX
S:RSRPREC:000 DataTable iServerProperties DataTable iVarTable) Boolean[] CopyBack) ALEX
S:RSRPREC:000 DataTable iServerProperties DataTable iVarTable) Boolean[] CopyBack) ALEX
S:RSRPREC:000 DataTable iServerProperties DataTable iVarTable) Boolean[] CopyBack) ALEX
Application server requires status report
Application server requires status report
Has anyone seen this issue?
Please let us know, if anyone has any ideas.
ThanksDoes the query in the workbook require variable input, and, if so, have you provided a variant in the precalculation setting?
-
Dear All,
When I try to deploy WD application, it gives me this following error and doesn't deploy.
com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [MTW02SDEP02] with user name: [Administrator] Check your login information. Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during getInitialContext operation. No server is running. [Root exception is
Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.
at com.sap.engine.services.security.remote.login.RemoteLoginContextExt.<init>(RemoteLoginContextExt.java:34)
at com.sap.engine.services.jndi.implclient.LoginHelper.clientSideLogin(LoginHelper.java:81)
at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:355)
... 38 more
Caused by: com.sap.engine.services.rmi_p4.P4ConnectionException: Possible problem: no available running server node. Check your running servers.
at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:709)
at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:697)
at com.sap.engine.services.rmi_p4.Parser.newRequest(Parser.java:180)
at com.sap.engine.services.rmi_p4.Connection.run(Connection.java:427)
... 1 more
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
Deployment exception : The deployment of at least one item abortedHi
Try this
1. Is this is the remote server?
if yes make one entry in host file under C:\WINDOWS\system32\drivers\etc
format : <server ip> <servername>
restart NWDS
2.If not then put the Ip address instead of name inside Window--preference --Sap server Check.
3. Put some different UserId and Password who has deployment rights
Best Regards
Satish Kumar -
Getting error "cannot connect to the App Store"
getting error "cannot connect to the App Store"
YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
TMI?
GB -
Override the launch of Java Web Start
How can we stop the auto launch of Java web start and prompt the user to enter the desired location to download the jars.
And then launch the jars from that location.
Is there any solution for this.
Please help me in this regard
NanditaThe whole idea of WebStart is to relieve the user of the burden of downloading binaries themselves. The whole point is, they just click a link on a web page, some magic happens, and their app starts up.
Your idea is a complete waste of time. -
Deploying SWT application with web start
Hi there,
I was trying out to deploy the IBM's sample SWT application, FileViewer, with web start, but ended with the following exception which I couldn't figure out how this happened.
EXCEPTION : -
JNLPException[category: Download Error : Exception: java.net.ConnectException: Connection refused: connect : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
WRAPPED EXCEPTION : -
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I am now using JDK5.0. Even when I was trying out the JDK's sample Webpad, I got "Servlet JnlpDownloadServlet is not available" . Can anyone advise please?Hi Jim,
Try to replace,
<jnlp spec="1.0+" codebase="http://localhost:8080/fileviewer" href="index.jnlp">
with
<jnlp spec="1.0+" codebase="$$codebase" href="index.jnlp">
But i was using JNlpdownload servlet to do the task
Regards
Leo -
I am trying to use Sun's Comm API with Web Start so I can access COM1 from my application.
When the application starts, I receive an exception for the CommPortIdentifier. When I run this
application as a standalone, it works fine. I have to assume that there is a problem with the
deployment of the Comm API.
I have include the win32com.dll in a jar file and defined it in the nativelib tag in the jnlp file.
The comm.jar and the javax.comm.properties files are include in another jar. I am not sure
what is the proper way to deploy these files and cannot find any documentation on this.
Does anyone know the correct way to handle this?I have include the win32com.dll in a jar file and
defined it in the nativelib tag in the jnlp file.
The comm.jar and the javax.comm.properties files are
include in another jar. I am not sure
what is the proper way to deploy these files and
cannot find any documentation on this.
should like like this
<resources>
<j2se version="..." href="..."/>
<jar href="application.jar"/>
<jar href="comm.jar" />
</resources>
<resources os="Windows">
<nativelib href="win32com.dll"/>
</resources>
Then in the code in application.jar, call
System.loadLibrary("win32com");
/Dietz -
How to add scroll function in the applet launched by Java Web Start?
I have Java Web Start installed in order for the applet to launch.The applet size: width:700 height:1000
my compuer resolution:800*600
the applet launched by Java Web Start can only be seen partly,especially height.How to add scroll function in the applet launched by Java Web Start?
Thanks for help.
email:[email protected]You can very easily add a JScrollPane manually between the Applet and your content. Perhaps it would be beter if javaws did this automatically. In the browser, an applet can be any size. In Java Web Start an applet is directly contained within a JFrame, so it cannot be smaller than the minimum size of a JFrame, or Larger than the max.
-
Trying to use 1.4 beta 3 with Web Start
Hello,
I'm trying to use the JRE 1.4 beta 3 on Windows with
Web Start and it keeps giving me an error when trying
to get the JRE version. I looked at the Sun docs on
Web Start for using beta versions of the JRE and it states to put this in my .jnlp file, but it doesn't seem to work:
<j2se version="1.4-beta" href="http://java.sun.com/products/autodl/j2se" />
Has anyone got this to work?
Thanks,
Cory.I am having trouble with this as well. I have also tried the java1.4* for the version field and the client machine still states that it can not find the right runtime. Is there anything else you added?
thanks -
Launched thru Java web Start...?
Is there a way to find out whether my application is launched through Java Web Start or as a stand-alone application?
I have think of 2 round about ways -
- Getting the service names using javax.jnlp.ServiceManager.getServiceNames(), which returns null if launched as a standalone application.
- Getting the classloader name.
But, I am looking for one more concrete way of doing it, if any?Akhil,
I was looking for a solution for this very problem and came across a FAQ in another thread that was helpful. See http://vamphq.com/jwsfaq.html and more specifically http://vamphq.com/jwsfaq.html#under -
Java app with web service and servlets
Hi. I intend to make a java application which exposes some methods as a web service and as jsp/servlets. It's core functionality is not really web centric, but its more a java app with a web tier. I am not sure about how the architecture of such a system would look like using the java platform. I currently see three options:
1. Run everything in a servlet container like tomcat. I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web services. However, it would be really easy just to put everything into tomcat and use ServletContext to maintain some global objects.
2. Use a Java EE to seperate application/business logic and data access into session beans and entity beans. I hesitate to this because it seem a bit overkill because the system isn't very big or complex right now. It also means that I would have to learn to use EJB's instead of just using some POJOs.
3. Run the web tier in a servlet container and the main app in a separate JVM, and then connect the tier by sending serialized objects over TCP sockets. I don't like writing network code but at least there is some separation of the tiers.
What would you do? Maybe I have overlooked a much better solution to the problem?
Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) instead of the something quick and dirty that is hard to defend.jschell wrote:
Run everything in a servlet container like tomcatTomcat is a JEE container.Now I am confused. Maybe you mean Glassfish? Tomcat is definitely a web container(?).
Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) That pretty much makes it impossible then.
1. A "Right" solution is generally only proven by time.
2. It requires a great deal of knowledge about the business domain.Yeah, you are right. Let be try to rephrase it. What solution (pattern) would be considered the most common or appropriate when you have a Java App and want to expose a few methods as a website and web service?
I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web servicesHuh? Do you already have an exposed web service? If you already have a server which other clients communicate then where does this functionality that you don't want to be tomcat running now? Or where do you think that you want to run it? And if you are or do run it somewhere else then tomcat could access it the same way any other client accesses that server.Sorry, that sentence was written badly. I don't have anything right now. What I meant to write was that I will have a lot of application scope data, objects that are kept in memory as long as the server is running, shared by multiple servlet instances. -
Creating a Simple IOS / Android APP with web pages?
Hi all,
Recently I created a simple backend database driven website for a clients customers to see their info. The client wants to have his own "Company App", primarily for the marketing aspects. I was thinking that it might be possible to have a super simple basic app just showing/using the web pages that we already have.
I already made some pages with custom tailored css to iphone and could expand this concept to other models - android etc.
I have never tried to make an ios or andriod app before, but...
Q: Would it be possible to create a simple app DEMO that can display/use the css iphone page I already made? If I wanted to look more into this (and even work with other dev's) where would I start?Mobile Apps are standalone pieces of mobile software that you design, compile with Phone Gap and then upload to Google Play or Apple's App store. From there mobile users can purchase (most are free) download & install apps on their device. Apps include just about everything from GPS & traffic info, to sports, games, entertainment, health & fitness tracking. You name it, it's probably out there. A mobile app is not a web site, although the app may indeed be tied to the creator's web site so he can sell more apps. But an app is just an app. A web site is a web site. 2 different things.
If you want to explore Mobile App development, I recommend this introductory tutorial
Create & package Mobile app with DW, jQuery Mobile & PhoneGap
http://www.adobe.com/devnet/dreamweaver/articles/dw-phonegap-mobile-app.html
Nancy O. -
Error in RunLogicAgainstSelection: Object variable or With block variable n
Dear all,
I saw a threath with this issue and the same tittle but it is closed without answer.
I have this error when I run a package with a script logic. It stop run each time in a different code line (I see by the log file).
I am ussing BPC 7.5 MS SP3, SQL SERVER 2008, OFFICE 2010
Thanks in advace!
BRHi
Can you also check if BPC Services are working properly.
Could you please follow these steps on the BPC server :
1. unregister the following dlls : K2processing.dll, K2processingInternal.dll and K2Logic.dll (located in "\BPC\Websrvr\bin") by running the DOS command for each dll (in our example, the dlls are located in C:\BPC\Websrvr\bin folder):
regsvr32 /u C:\BPC\Websrvr\bin\K2Logic.dll
2. re-register the same dlls : K2processing.dll, K2processingInternal.dll and K2Logic.dll by running the DOS command for each dll (in our example, the dlls are located in C:\BPC\Websrvr\bin folder):
regsvr32 C:\BPC\Websrvr\bin\K2Logic.dll
Thanks,
Kiran -
With Apple discontinuing support jre 7 on its mountain lion, i am trying to find a way to launch my mac apps with oracle jre7. There are two situations occuring to me.
1. Oracle jre7 could be before hand installed and my app should be able to detect and launch
2 Or Bundle the oracle jre 7 with my Mac app and get into lauching it on mountain lion without any issues.
Is there a better way or apple providing support in this regards.
Help appreciated.Thanks NickClark_uk,
I am able to install the java 7, but the Mac app i am trying to launch is unable to detect the oracle jre 7 and works fine with app store jre's. So we may need to bundle the jre or modify our apps to detect the installed JRE.
I was looking at what would be the better approach in order to have my Mac app run with oracle jre 7.
Thanks -
Cannot buy music or apps with itunes card keep getting invalid address massage
cannot buy music or update apps. with itunes card keep getting invalid address massage
I also saw on another thread where it said the problem was in the address line. I have been using the same address and credit card info for years. I added an "e" to avenue. Previously I had Av. I fixed the problem after trying a dozen different things, unit, apt.ex....
Maybe you are looking for
-
How to update video drivers in Windows?
I just bought the new MBP this morning. I began crashing while playing Warhammer and it seems like it could be a driver issue. I tried installing two different drivers from laptopvideo2go.com but both of them made me immediately bluescreen whenever t
-
I can send emails. I cannot get into any local folders. I have gone into my server and had a tech support person check and all is correct there. If it does finally open one I cannot delete it as it will not respond. I have scanned with malwarebyte an
-
Ringtone off icon stucks in the middle of the screen
Dear All Just received my new iPhone 5s. Switching off the ringtone using the hardware switch will signed with a big grey icon on the screen telling me ringtone off. This icon normally diappears after a few seconds. But thats not the case with my new
-
Sequence Processing Render Quality: BEST
What exactly does putting sequence processing render quality into BEST accomplish, other than to make it take longer to render things? Does it actually result in a cleaner picture? If so, why wouldn't you ALWAYS render in BEST quality instead of GOOD
-
I just downloaded the latest version of Firefox. Every time I click on the Firefox icon to open it, a blank page appears for half a second, then disappears.