Girdher Singh

Greenhorn
+ Follow
since Feb 12, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Girdher Singh

Hello everyone,

I am working on the development of a web application,as of now I am using Tomcat Server.I found that when I am doing some changes in the jsp files and wanted to see the changed things in the web application then at that time tomcat server is showing the older version of the jsp files.I also cleared the Catalina folder in under tomcat/work/Catalina.also before starting the tomcat server I did clear the tomcat module directory.

Please provide me what ever information you guys know about the tomcat caching .

Thanks
4 years ago
Hi ,

I am getting following error while application is trying to make some xml parsing. I am using xsl file.


com.knights.camelot.pos.receipt.templates.TemplateException: Failed to appply receipt template.
at com.knights.camelot.pos.receipt.templates.rml.RMLReceiptTemplate.apply(RMLReceiptTemplate.java:38)
at com.knights.camelot.pos.receipt.ReceiptGenerator.generateReceipt(ReceiptGenerator.java:73)
at com.knights.camelot.pos.model.SaleActivityModel.printReceipts(SaleActivityModel.java:910)
at com.knights.camelot.pos.actions.PrintReceiptAction$1.run(PrintReceiptAction.java:34)
at foxtrot.AbstractWorkerThread$2.run(AbstractWorkerThread.java:49)
at java.security.AccessController.doPrivileged(Native Method)
at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:45)
at foxtrot.workers.DefaultWorkerThread.run(DefaultWorkerThread.java:153)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: java.lang.RuntimeException: InvocationTargetException when invoking public java.lang.String com.knights.camelot.pos.model.PaymentModel.getPaymentDescription(): java.lang.NullPointerException
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
at com.knights.xml.ObjectXMLTransformer.transform(Unknown Source)
at com.knights.xml.ObjectXMLTransformer.transformToString(Unknown Source)
at com.knights.xml.ObjectXMLTransformer.transformToInputStream(Unknown Source)
at com.knights.camelot.pos.receipt.templates.rml.RMLReceiptTemplate.apply(RMLReceiptTemplate.java:36)
... 8 more
Caused by: javax.xml.transform.TransformerException: java.lang.RuntimeException: InvocationTargetException when invoking public java.lang.String com.knights.camelot.pos.model.PaymentModel.getPaymentDescription(): java.lang.NullPointerException
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(Unknown Source)
... 14 more
Caused by: java.lang.RuntimeException: InvocationTargetException when invoking public java.lang.String com.knights.camelot.pos.model.PaymentModel.getPaymentDescription(): java.lang.NullPointerException
at org.infohazard.domify.ElementAdapter.getWrapped(ElementAdapter.java:420)
at org.infohazard.domify.ElementAdapter.getNodeListAdapter(ElementAdapter.java:449)
at org.infohazard.domify.ElementAdapter.getFirstChild(ElementAdapter.java:625)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2SAX.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source)


Till now I have reached to a consensus that there is some issue with string. It is marked as null(default),it must be "".but I am not sure if I am wrong or right.


Here is the code which Is referenced in the code for exception





I am waiting for any kind of guidance.

This is the code which resides in the method,here I am firing a query and its data is getting stored in the a DTO. But,in my server logs when this query is trying to execute I am getting following error.






## Start Pgm ####
Exception in thread "main" java.sql.SQLException: UniVerse/SQL: An outer or inner join requires an ON clause.
at com.ibm.u2.jdbc.UniJDBCMsgFactory.createException(src/com/ibm/u2/jdbc/UniJDBCMsgFactory.java:101)
at com.ibm.u2.jdbc.UniJDBCExceptionSupport.addException(src/com/ibm/u2/jdbc/UniJDBCExceptionSupport.java:87)
at com.ibm.u2.jdbc.UniJDBCProtocolU2Impl.addServerError(src/com/ibm/u2/jdbc/UniJDBCProtocolU2Impl.java:2789)
at com.ibm.u2.jdbc.UniJDBCProtocolU2Impl.associateServerCursor(src/com/ibm/u2/jdbc/UniJDBCProtocolU2Impl.java:1655)
at com.ibm.u2.jdbc.UniJDBCProtocolU2Impl.associateCursor(src/com/ibm/u2/jdbc/UniJDBCProtocolU2Impl.java:1712)
at com.ibm.u2.jdbc.UniJDBCProtocolU2Impl.prepare(src/com/ibm/u2/jdbc/UniJDBCProtocolU2Impl.java:1895)
at com.ibm.u2.jdbc.UniJDBCProtocolU2Impl.doExecuteAll(src/com/ibm/u2/jdbc/UniJDBCProtocolU2Impl.java:2263)
at com.ibm.u2.jdbc.UniJDBCProtocolU2Impl.executeStatementQuery(src/com/ibm/u2/jdbc/UniJDBCProtocolU2Impl.java:606)
at com.ibm.u2.jdbc.UniJDBCStatementImpl.executeQuery(src/com/ibm/u2/jdbc/UniJDBCStatementImpl.java:224)


I am not able to figure out the reason behind ON clause statement. Could any body tell me why this error is happeneing. We have two environment one is QA and other is production in production it is working fine ,and in QA this exception is occurring. I am stuck....

thanks


I have created a folder structure which contains number of other jar files.Size of this folder is around 6 GB, When I am trying to import this folder in eclipse then I am getting java heap error.I tried with increasing the size of max perm size in eclipse.ini file

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m


I am stucking with this problem for so long any kind of help is appreciable.
Thanks,
I was going through the JNLP file,I found that single jar file is referenced twice in the same JNLP file. Actually ,I am creating a folder structure where I will put jar corresponding to there position in the respective JNLP files in the server. My aim is to create a single executable jar from this folder.

I am waiting for the suggestion..
4 years ago

Paul Clapham wrote:Okay. There are Java installers available and they've been around for quite a few years. So I assume (having never used them) they are pretty good products. Names I can find with a quick web search are Excelsior Jet, JSmooth, exe4j, install4j, launch4j.

Although I have to say, when people ask on forums how to create a native installer for Java code, the first answer is always "Well, you should really use Java Web Start, but...".



Thanks for your reply, But since creating an installer is new for me. could you guide me on how should I move from jnlp deployment to installer.All the jnlp files contains reference to other jnlp files or they contain jar files . where should I refer for this structure, while creating the installer.
4 years ago

Paul Clapham wrote:

Girdher Singh wrote:Now we want to change this to installer based application.Actually I did'nt know how this installation happens with jnlp.But Now we want to change this to .msi based installer.could you tell me how we can do so.



How jnlp installs in the client machine could you explain me that process little bit more can i find the files gets installed after installation process gets completed, what could be the location for that.



Could you please restrict the thread to one question only? If you want to use JNLP and understand implementation details, then fine, ask that question. But if you want to create an installer for your Java application instead, then ask about that. But two questions at the same time just leads to confusion.



OKay,My bad.Can we go ahead with the installer discussion.My requirement is to change the jnlp deployement to installer based installation.Could you tell something related to that
4 years ago

Maneesh Godbole wrote:You need to clarify more on what you mean by "installer". Usually it indicates an msi/dmg/deb (on windows, mac, or *nix)
If you mean installer in this sense, a simple download link will do



Here i did'nt get the meaning of download link.could you elaborate it more..

JNLP differs from "installers". It downloads and runs the latest/jars dependencies from the server, every time you launch the application. Installer will install and use the resources installed on the client. One obvious drawback is in case of installer, you need to worry about the update yourself.



How jnlp installs in the client machine could you explain me that process little bit more can i find the files gets installed after installation process gets completed, what could be the location for that.
4 years ago

Paul Clapham wrote:It sounds to me like formerly you were using JNLP (successfully? I can't tell) and now you want to switch to some other method of deployment. Is that correct?



absolutely correct..Now we want to change this to installer based application.Actually I did'nt know how this installation happens with jnlp.But Now we want to change this to .msi based installer.could you tell me how we can do so.
4 years ago
Hi ,

I am working on an application which is hosted on JBOSS server.When we click on the url in the browser then application gets downloaded and installed in the client pc.I tried hard to understand the application deployement process and menawhile I came up with a new requirement.In this requirement application will be packaged in a single installer file and will be pushed by a single person to the client pc's.Earlier my application was built in JNLP based deployment technology,as part of that when user clicks on the url then installed jawas(part of jre)started reading the jnlp files on that directory of server where we were trying to reach through the url.My doubts were here:-

1.How i can go ahead with this requirement.
2.In case of jnlp based deployement,is there any exe based files gets installed on client pc's,Here as far as i know jnlp files contained the jar files and refernces to othere jnlp files on the server.
During research of this questioin I came through a place where jnlp files gets deployed in client machine if i am not wrong.

C:\Users\mxs8028\AppData\LocalLow\Sun\Java\Deployment


Could any body answer my question .
4 years ago
I am not sure but it is pointing to the layout you are using.
5 years ago