• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Another Problem about Attached Files

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I submit a message with an attached file which size over 100KB, a 'java.lang.NullPointerExcepion' appears!

Scenario:JForum 2.1.6+Apache_Tomcat 5.5.17(on J2SE 1.4.2)+MySQL 5.0
Symptom:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
net.jforum.JForumExecutionContext.enableRollback(JForumExecutionContext.java:272)
net.jforum.JForum.service(JForum.java:209)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17



What should I do?
[originally posted on jforum.net by Shiny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update to lastest CVS version 8)
[originally posted on jforum.net by redhand]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
But when I trying to login CVS, I was refused:


D:\jchuang\BCrypt\My Documents\JForum\src>"D:\Program Files\cvsnt\cvs" -d:pserver:guest@cvs.dev.java.net:/cvs login
Logging in to :pserver:guest@cvs.dev.java.net:2401:/cvs
CVS password: ********
cvs [login aborted]: connect to cvs.dev.java.net:2401 failed: �ӱ��?�ݨ���ϼ������??���
��?�?ξ�ʾ?���?�?����



It seems that guest needs a password. But <enter> after entering any few characters, I am refused yet.

What should I do?
[originally posted on jforum.net by Shiny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guest password is empty so you have only to hit RETURN key when CVS ask for it
[originally posted on jforum.net by redhand]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also try it with empty password, just only return. But the result is the same. :?:
[originally posted on jforum.net by Shiny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Verify if your port 2401 is open

[originally posted on jforum.net by redhand]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot. Y'r a warm-hearted man.
I confirm that the trouble should be made by the gateway.
When I connect via home lan, it do!

But, When I build CVS source with ant, I encounter another trouble.
It failed with 1 error and 1 warning. The details is as follow:


D:\jchuang\BCrypt\My Documents\JForum\src\jforum>ant

Buildfile: build.xml

compile:

[javac] Compiling 310 source files to D:\jchuang\BCrypt\My Documents\JForum\

src\jforum\WEB-INF\classes

[javac] D:\jchuang\BCrypt\My Documents\JForum\src\jforum\src\net\jforum\cach

e\JBossCacheEngine.java:149: warning: getData() in org.jboss.cache.Node has been

deprecated

[javac] return node.getData().values();

[javac] ^

[javac] D:\jchuang\BCrypt\My Documents\JForum\src\jforum\src\net\jforum\view

\install\InstallAction.java:479: replace(char,char) in java.lang.String cannot b

e applied to (java.lang.String,java.lang.String)

[javac] connectionString = connectionString.replace(host

Key, hostKey + portKey);

[javac] ^

[javac] 1 error

[javac] 1 warning

BUILD FAILED

D:\jchuang\BCrypt\My Documents\JForum\src\jforum\build.xml:69: Compile failed; s

ee the compiler error output for details.

Total time: 28 seconds



My scenario is as follow: J2SDK 1.4.2_11, Ant 1.6.5.

I guess that I should modify the source, or change my scenario. But I'm not sure.
Can you help me?


By the way, I just knew that y'r a chinese. And me too. I think we will be friends.
[originally posted on jforum.net by Shiny]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!