小编ebo*_*ebo的帖子

在"加载捆绑[...]"期间发生内部错误

我已经开始使用Eclipse Luna和插件Aptana Studio 3了,它运行了一段时间,但在我以root身份运行Eclipse以将IDE更新到4.4.1之后,每次Eclipse启动时都会收到以下错误消息:

在"加载包:/opt/eclipse/configuration/org.eclipse.osgi/873/0/.cp/bundles/php.ruble"期间发生内部错误.org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1无法强制转换为java.lang.String

我也收到了其他Aptana捆绑包的错误消息.

我已经尝试重新安装Eclipse和Aptana Studio,但还没有任何工作.如果有人可以提供帮助,我会很高兴.抱歉英语不好,我不是母语人士.

这是一个日志示例:

!ENTRY org.eclipse.core.jobs 4 2 2014-09-27 19:19:23.753
!MESSAGE An internal error occurred during: "Loading bundle: /opt/eclipse/configuration/org.eclipse.osgi/873/0/.cp/bundles/php.ruble".
!STACK 0
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
    at org.jruby.util.OSEnvironment.getAsMapOfRubyStrings(OSEnvironment.java:90)
    at org.jruby.util.OSEnvironment.getSystemPropertiesMap(OSEnvironment.java:75)
    at org.jruby.RubyGlobal.defineGlobalEnvConstants(RubyGlobal.java:393)
    at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:358)
    at org.jruby.Ruby.init(Ruby.java:1078)
    at org.jruby.Ruby.newInstance(Ruby.java:186)
    at org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(SingletonLocalContextProvider.java:95)
    at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:166)
    at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:93)
    at org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1163)
    at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1223)
    at com.aptana.scripting.ScriptingEngine.getInitializedScriptingContainer(ScriptingEngine.java:292)
    at com.aptana.scripting.model.ScriptLoadJob.run(ScriptLoadJob.java:76)
    at com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:144)
    at com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:180)
    at com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:274)
    at com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:243)
    at com.aptana.scripting.model.BundleManager.loadScript(BundleManager.java:2032)
    at com.aptana.scripting.model.BundleManager$BundleLoadJob.run(BundleManager.java:129)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Run Code Online (Sandbox Code Playgroud)

aptana eclipse plugins

19
推荐指数
3
解决办法
2万
查看次数

端口8080已被"SYSTEM"使用

apache tomcat无法在端口8080上工作.我试图用netstat命令找出端口8080上运行的程序

**C:\Users\SGaiks>netstat -aon | find ":8080"

  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       4

  TCP    [::]:8080              [::]:0                 LISTENING       4**
Run Code Online (Sandbox Code Playgroud)

PID 4的程序在端口8080上运行,所以我在任务管理器中检查了哪个程序有PID 4,我得到SYSTEM(这里是详细信息,因为我无法发布截图)

Name :- SYSTEM
PID :- 4
Status :- Running
Username:- SYSTEM
CPU :- 01
Memory :- 88k
Description :- NT Kernal & System
Run Code Online (Sandbox Code Playgroud)

这究竟意味着什么?如何禁用使用端口8080的程序?

我已经看到许多类似的问题,但这没有帮助.

(不知道这样做是否正确) - >我还将端口更改为某个随机端口(localhost:2200)以在localhost上运行tomcat并成功运行.但我想让它在localhost:8080上运行

java apache tomcat localhost

5
推荐指数
1
解决办法
1万
查看次数

Stuck - Haskell编码的练习考试Q:返回字符串列表中最长的字符串

完整的练习考试题目是:

使用匿名函数和映射函数,定义Haskell函数,这些函数返回字符串列表中最长的字符串,例如对于["qw","asd","fghj","kl"],函数应返回"fghj".

我尝试这样做并继续失败并转向其他人,但我真的想知道如何解决这个问题.我似乎必须使用映射函数和匿名函数,但我不知道如何编写代码来使每个元素检查以找到最高的一个.

我知道使用像"foldr"这样的映射函数可以让你对每个元素执行重复操作并返回一个结果,这就是我们想要对这个问题做的事情(检查字符串列表中的每个字符串最长,然后返回一个串).

但是对于foldr,我不知道如何使用它来检查元素之间的检查,看哪个是"最长的"...任何帮助都将很乐意欣赏.

到目前为止,我一直在测试我是否甚至可以foldr用来测试每​​个元素的长度,但它甚至不起作用:

longstr :: [String] -> String
longstr lis = foldr (\n -> length n > 3) 0 lis
Run Code Online (Sandbox Code Playgroud)

我对haskell很新,因为这是一个3个月的课程而且只有1个月,我们有一个小的考试即将到来

string mapping haskell fold

1
推荐指数
1
解决办法
687
查看次数

仅对 PHP 数组中的正数求和

首先,感谢您看我的问题。

我只想使用 if,else 语句将 $numbers 中的正数相加。

$numbers = array (1, 8, 12, 7, 14, -13, 8, 1, -1, 14, 7);

$total = 0;

if ($numbers < 0 {
    $numbers = 0;
}
elseif (now i want only the positive numbers to add up in the $total.)
Run Code Online (Sandbox Code Playgroud)

我是一年级的学生,我正在努力理解其中的逻辑。

php arrays add

1
推荐指数
1
解决办法
2311
查看次数

如何写入文件并添加"和"

我正在使用BufferedWriter写入文件,当我输入此代码时

bfW.write("System.out.println("YOUR NEW PROGRAM IS COMPLETED");");
Run Code Online (Sandbox Code Playgroud)

它给了我这个错误:

 File_writer.java:93: error: ';' expected                  
 bfW.write("System.out.println("YOUR NEW PROGRAM IS COMPLETED");");   
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

java class file buffered bufferedwriter

0
推荐指数
1
解决办法
83
查看次数

标签 统计

java ×2

add ×1

apache ×1

aptana ×1

arrays ×1

buffered ×1

bufferedwriter ×1

class ×1

eclipse ×1

file ×1

fold ×1

haskell ×1

localhost ×1

mapping ×1

php ×1

plugins ×1

string ×1

tomcat ×1